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)",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
"dev": "node esbuild.config.mjs",
|
||||
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
|
||||
"version": "node version-bump.mjs && git add manifest.json versions.json"
|
||||
"dev": "echo Use command: make dev",
|
||||
"build": "echo Use command: make release",
|
||||
"version": "echo Use command: make version"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue