Browse Source

Cleanup npm commands to be more sensible.

Now they're more akin to how other builds work.
clean = clean build dir
distclean = remove distribution dir.
pull/3202/head
TheGoddessInari 7 years ago
parent
commit
fcb4d7d3fe
  1. 46
      package.json

46
package.json

@ -4,13 +4,13 @@
"start": "electron electron/main.js", "start": "electron electron/main.js",
"start:debug": "electron electron/main.js --enable-logging", "start:debug": "electron electron/main.js --enable-logging",
"test": "./node_modules/.bin/mocha test/tests/**/*.spec.js", "test": "./node_modules/.bin/mocha test/tests/**/*.spec.js",
"sencha:clean": "rimraf ./build/production", "clean": "rimraf ./build/production",
"sencha:compile": "sencha app build && cpy app/package.json build/production/Rambox/", "compile": "sencha app build && cpy app/package.json build/production/Rambox/",
"sencha:recompile": "npm run sencha:clean && npm run sencha:compile", "recompile": "npm run distclean && npm run compile",
"clean": "rimraf ./dist", "distclean": "rimraf ./dist",
"clean:win": "rimraf ./dist/win-{ia32-,}unpacked", "distclean:win": "rimraf ./dist/win-{ia32-,}unpacked",
"clean:linux": "rimraf ./dist/linux-{ia32-,}unpacked", "distclean:linux": "rimraf ./dist/linux-{ia32-,}unpacked",
"clean:osx": "rimraf ./dist/macos-unpacked", "distclean:osx": "rimraf ./dist/macos-unpacked",
"pack": "electron-builder --dir", "pack": "electron-builder --dir",
"pack:osx": "electron-builder --macos --dir", "pack:osx": "electron-builder --macos --dir",
"pack:win": "electron-builder --win --ia32 --x64 --dir", "pack:win": "electron-builder --win --ia32 --x64 --dir",
@ -29,22 +29,22 @@
"build:win32": "electron-builder --win --ia32", "build:win32": "electron-builder --win --ia32",
"build:win64": "electron-builder --win --x64", "build:win64": "electron-builder --win --x64",
"build:all": "electron-builder -mwl --ia32 --x64", "build:all": "electron-builder -mwl --ia32 --x64",
"setup": "npm run sencha:clean && npm run sencha:compile && npm run build", "setup": "npm run clean && npm run compile && npm run build",
"setup:osx": "npm run sencha:clean && npm run sencha:compile && npm run build:osx", "setup:osx": "npm run clean && npm run compile && npm run build:osx",
"setup:win": "npm run sencha:clean && npm run sencha:compile && npm run build:win", "setup:win": "npm run clean && npm run compile && npm run build:win",
"setup:win32": "npm run sencha:clean && npm run sencha:compile && npm run build:win32", "setup:win32": "npm run clean && npm run compile && npm run build:win32",
"setup:win64": "npm run sencha:clean && npm run sencha:compile && npm run build:win64", "setup:win64": "npm run clean && npm run compile && npm run build:win64",
"setup:linux": "npm run sencha:clean && npm run sencha:compile && npm run build:linux", "setup:linux": "npm run clean && npm run compile && npm run build:linux",
"setup:linux32": "npm run sencha:clean && npm run sencha:compile && npm run build:linux32", "setup:linux32": "npm run clean && npm run compile && npm run build:linux32",
"setup:linux64": "npm run sencha:clean && npm run sencha:compile && npm run build:linux64", "setup:linux64": "npm run clean && npm run compile && npm run build:linux64",
"repack": "npm run sencha:clean && npm run sencha:compile && npm run clean && npm run pack", "repack": "npm run clean && npm run compile && npm run distclean && npm run pack",
"repack:osx": "npm run sencha:clean && npm run sencha:compile && npm run clean:osx && npm run pack:macos", "repack:osx": "npm run clean && npm run compile && npm run distclean:osx && npm run pack:macos",
"repack:win": "npm run sencha:clean && npm run sencha:compile && npm run clean:win && npm run pack:win", "repack:win": "npm run clean && npm run compile && npm run distclean:win && npm run pack:win",
"repack:win32": "npm run sencha:clean && npm run sencha:compile && npm run clean:win && npm run pack:win32", "repack:win32": "npm run clean && npm run compile && npm run distclean:win && npm run pack:win32",
"repack:win64": "npm run sencha:clean && npm run sencha:compile && npm run clean:win && npm run pack:win64", "repack:win64": "npm run clean && npm run compile && npm run distclean:win && npm run pack:win64",
"repack:linux": "npm run sencha:clean && npm run sencha:compile && npm run clean:linux && npm run pack:linux", "repack:linux": "npm run clean && npm run compile && npm run distclean:linux && npm run pack:linux",
"repack:linux32": "npm run sencha:clean && npm run sencha:compile && npm run clean:linux && npm run pack:linux32", "repack:linux32": "npm run clean && npm run compile && npm run distclean:linux && npm run pack:linux32",
"repack:linux64": "npm run sencha:clean && npm run sencha:compile && npm run clean:linux && npm run pack:linux64", "repack:linux64": "npm run clean && npm run compile && npm run distclean:linux && npm run pack:linux64",
"dist": "npm run repack" "dist": "npm run repack"
}, },
"build": { "build": {

Loading…
Cancel
Save