[refactor] improve npm clean and lint

This commit is contained in:
zombieFox 2019-08-19 08:57:23 +01:00
parent 7c39a18231
commit 770cdafec4

View File

@ -9,7 +9,9 @@
"build": "npm run clean-build; npm run build-web; npm run build-extension", "build": "npm run clean-build; npm run build-web; npm run build-extension",
"build-web": "gulp build", "build-web": "gulp build",
"build-extension": "web-ext build -s build/web -a build/extension", "build-extension": "web-ext build -s build/web -a build/extension",
"lint-webext": "web-ext lint -s", "lint": "npm run lint-extension",
"lint-extension": "web-ext lint -s build/web",
"clean": "npm run clean-dev; npm run clean-build",
"clean-dev": "rm -rf dev", "clean-dev": "rm -rf dev",
"clean-build": "rm -rf build", "clean-build": "rm -rf build",
"deploy-gh-pages": "npm run clean-build; gulp build; gh-pages -d build/web" "deploy-gh-pages": "npm run clean-build; gulp build; gh-pages -d build/web"