Convert from npm scripts to a makefile
This commit is contained in:
parent
5e456894c0
commit
e27025b586
2 changed files with 25 additions and 3 deletions
22
makefile
Normal file
22
makefile
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
.PHONY: dev release clean
|
||||||
|
|
||||||
|
OUT_DIR=dist
|
||||||
|
ENTRYPOINT=main.js
|
||||||
|
|
||||||
|
RELEASE_SCRIPT=utils/release.py
|
||||||
|
|
||||||
|
|
||||||
|
dev:
|
||||||
|
node esbuild.config.mjs
|
||||||
|
|
||||||
|
release:
|
||||||
|
tsc --noEmit --skipLibCheck
|
||||||
|
node esbuild.config.mjs production
|
||||||
|
|
||||||
|
version:
|
||||||
|
node version-bump.mjs
|
||||||
|
git add manifest.json versions.json
|
||||||
|
|
||||||
|
clean:
|
||||||
|
# rm -f *.js
|
||||||
|
rm -rf $(OUT_DIR)
|
||||||
|
|
@ -4,9 +4,9 @@
|
||||||
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
|
"description": "This is a sample plugin for Obsidian (https://obsidian.md)",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "node esbuild.config.mjs",
|
"dev": "echo Use command: make dev",
|
||||||
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
|
"build": "echo Use command: make release",
|
||||||
"version": "node version-bump.mjs && git add manifest.json versions.json"
|
"version": "echo Use command: make version"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "",
|
"author": "",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue