-
Notifications
You must be signed in to change notification settings - Fork 15
Add a Makefile to workflow #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| # .PHONY: Declares phony targets, which are commands that don't produce a file with the same name. | ||
| .PHONY: install start build test clean | ||
|
|
||
| # Install project dependencies | ||
| install: | ||
| npm install | ||
|
|
||
| # Start the development server | ||
| start: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @indevi change it to dev
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
| npm run dev | ||
|
|
||
| # Build the project for production | ||
| build: | ||
| npm run build | ||
|
|
||
| # Run project tests | ||
| test: | ||
| npm run test | ||
|
|
||
| # Clean up build artifacts and installed modules | ||
| clean: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @indevi it should be coming from package.json means add a clean script in package.json then use like npm run clean.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. okay considering the scope, its best i remove clean command |
||
| rm -rf dist node_modules | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add
make siteit should run bothnpm installthennpm run devThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hope this is what you are looking for here @saurabhraghuvanshii
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@indevi this is good but can you refer this https://github.com/layer5io/layer5/blob/master/Makefile once
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
refered and added a echo message