forked from dwmkerr/chatgpt-diagrams-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
26 lines (22 loc) · 836 Bytes
/
Copy pathmakefile
File metadata and controls
26 lines (22 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
.PHONY: help
help: # Show help for each of the Makefile recipes.
@grep -E '^[a-zA-Z0-9 -]+:.*#' Makefile | sort | while read -r l; do printf "\033[1;32m$$(echo $$l | cut -f 1 -d':')\033[00m:$$(echo $$l | cut -f 2- -d'#')\n"; done
.PHONY: build
build: # build the extension bundle
rm -rf ./dist
npm run build
.PHONY: test
test: # test the code
npm run prettier # check formatting
npm run lint # check lintin
npm run tsc # validate that we can compile
npm run test # run the unit tests
.PHONY: release
release: # build the release package
npm run build
rm -rf ./release && mkdir -p ./release
cd ./dist && zip ../release/chatgpt-diagrams-extension.zip . -r
ls ./release
.PHONY: serve-samples
serve-samples: # serve the sample ChatGPT pages.
(cd samples/ && python -m http.server 3000)