-
Notifications
You must be signed in to change notification settings - Fork 0
/
node.mk
24 lines (18 loc) · 634 Bytes
/
node.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package.json: must_rebuild
cat <<< $$(jq ".version = \"$(final_version)\"" package.json) > package.json
src/version.js: must_rebuild
echo "// ***** automatically generated. Do not edit! *****" > src/version.js
echo "export default \"$(final_version)\";" >> src/version.js
src/version.cjs: must_rebuild
echo "// ***** automatically generated. Do not edit! *****" > src/version.cjs
echo "module.exports = \"$(final_version)\";" >> src/version.cjs
eslint: node_modules src/version.js
yarn eslint
fix_eslint: node_modules
eslint --fix src
node_modules:
yarn install
clean:
rm -rf node_modules
rm -rf dist
rm -f yarn.lock