Make npm run clean platform agnostic (#1901)

* Make npm run clean platform agnostic
* Use rimraf-standalone.js instead of a global install
This commit is contained in:
Benjamin Staneck 2017-06-13 00:58:30 +02:00 committed by CHaBou
parent 056c88f741
commit 38db5095d9
2 changed files with 3719 additions and 2 deletions

3716
bin/rimraf-standalone.js Normal file

File diff suppressed because it is too large Load diff

View file

@ -13,7 +13,7 @@
"postinstall": "install-app-deps && npm run rebuild-node-pty", "postinstall": "install-app-deps && npm run rebuild-node-pty",
"rebuild-node-pty": "electron-rebuild -f -w app/node_modules/node-pty -m app", "rebuild-node-pty": "electron-rebuild -f -w app/node_modules/node-pty -m app",
"dist": "npm run build && cross-env BABEL_ENV=production babel --out-file app/dist/bundle.js --no-comments --minified app/dist/bundle.js && build", "dist": "npm run build && cross-env BABEL_ENV=production babel --out-file app/dist/bundle.js --no-comments --minified app/dist/bundle.js && build",
"clean": "npm cache clear && rm -rf node_modules && rm -rf app/node_modules && rm -rf app/dist" "clean": "node ./bin/rimraf-standalone.js node_modules && node ./bin/rimraf-standalone.js ./app/node_modules && node ./bin/rimraf-standalone.js ./app/dist"
}, },
"xo": { "xo": {
"extends": "xo-react", "extends": "xo-react",
@ -35,7 +35,8 @@
"app/dist/**", "app/dist/**",
"app/static/**", "app/static/**",
"assets/**", "assets/**",
"website/**" "website/**",
"bin/**"
] ]
}, },
"babel": { "babel": {