Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Makefile
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

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add make site it should run both npm install then npm run dev

# Start the development server
start:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@indevi change it to dev

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:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The 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.

rm -rf dist node_modules
Loading