File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11.PHONY : clean install dev valid test prod
22.DEFAULT_GOAL := dev
3+ DENO_DEV = NODE_ENV=development deno run --watch
4+ DENO_PROD = NODE_ENV=production deno run
5+ DENO_OPTIONS = --allow-env --allow-read --allow-run
36ZIP_CHROME_FILE ="extension.chrome.zip"
47BUNDLE = ./deno-bundle.ts
58
@@ -14,8 +17,7 @@ install:
1417
1518dev :
1619 rm -rf ./public/build
17- NODE_ENV=development \
18- deno run --watch --allow-env --allow-read --allow-run $(BUNDLE )
20+ $(DENO_DEV ) $(DENO_OPTIONS ) $(BUNDLE )
1921
2022valid :
2123 deno fmt --unstable-component
@@ -27,7 +29,6 @@ test: valid
2729
2830prod : test
2931 rm -rf ./public/build $(ZIP_CHROME_FILE )
30- NODE_ENV=production \
31- deno run --allow-env --allow-read --allow-run $(BUNDLE )
32+ $(DENO_PROD ) $(DENO_OPTIONS ) $(BUNDLE )
3233 zip -r $(ZIP_CHROME_FILE ) ./public ./manifest.json > /dev/null
3334 ls -l public/build/; ls -l extension.chrome.zip
You can’t perform that action at this time.
0 commit comments