Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# ask
# Ask
Command line interface tool for coded projects
58 changes: 58 additions & 0 deletions types/node/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
ASK_VERSION := "0.0.4"

.PHONY: reload-makefile
# Reload Makefile from latest Ask version
reload-makefile:
curl -o Makefile https://raw.githubusercontent.com/ask-ell/ask/refs/heads/release/types/node/Makefile

.PHONY: help
# Show help
help:
@cat $(MAKEFILE_LIST) | docker run --rm -i xanders/make-help

.env:
cp .env.sample .env

.PHONY: install
# Install dependencies
install:
npm install
date > node_modules/last_install

node_modules/last_install:
@make install

.PHONY: build
# Build project
build:
npm run build
mkdir -p build
date > build/last_build

build/last_build:
@make build

.PHONY: serve
# Run project in development mode
serve: .env node_modules/last_install
npm run start:dev

.PHONY: format
# Format project
format:
npm run format

.PHONY: lint
# Format project
lint:
npm run lint

.PHONY: test
# Run tests
test: node_modules/last_install
npm run test

.PHONY: test-watch
# Run tests in watch mode
test-watch: node_modules/last_install
npm run test:watch