Browse Source

add some npm administration functions

b3z 5 months ago
parent
commit
f35290e841
1 changed files with 3 additions and 0 deletions
  1. 3 0
      package.json

+ 3 - 0
package.json

@@ -7,6 +7,9 @@
         "watch": "tsc -w",
         "lint": "tslint -c tslint.json -p tsconfig.json",
         "start": "npm run build && electron ./dist/index.js",
+        "clean": "rm -rf node_modules",
+        "reinstall": "npm run clean && npm install",
+        "rebuild node part": "npm run clean && npm install && npm run build",
         "package-mac": "electron-packager . --overwrite --platform=darwin --arch=x64 --icon=assets/icons/mac/icon.icns --prune=true --out=release-builds",
         "package-win": "electron-packager . electron-tutorial-app --overwrite --asar=true --platform=win32 --arch=ia32 --icon=assets/icons/win/icon.ico --prune=true --out=release-builds --version-string.CompanyName=CE --version-string.FileDescription=CE --version-string.ProductName=\"Information Management System\"",
         "package-linux": "electron-packager . electron-tutorial-app --overwrite --asar=true --platform=linux --arch=x64 --icon=assets/icons/png/1024x1024.png --prune=true --out=release-builds",