launcher: clean script

make launcher clean command cross-platform script
This commit is contained in:
Gleb Bahmutov
2017-09-25 07:30:51 -07:00
parent a0c08bbdf3
commit 573b357595
3 changed files with 14 additions and 5 deletions

View File

@@ -9,7 +9,7 @@
"test": "npm run unit",
"unit": "bin-up mocha --reporter mocha-multi-reporters --reporter-options configFile=../../mocha-reporter-config.json",
"clean-deps": "rm -rf node_modules",
"clean": "rm lib/*.js lib/**/*.js || true",
"clean": "node scripts/clean.js || true",
"clean-js": "npm run clean",
"lint": "npm run format-ts && npm run lint-ts && npm run lint-coffee && npm run lint-js",
"lint-js": "bin-up eslint --fix *.js",
@@ -34,6 +34,7 @@
"bin-up": "^1.1.0",
"chai": "^3.5.0",
"prettier": "^1.4.2",
"shelljs": "^0.7.8",
"sinon": "^1.17.3",
"sinon-chai": "^2.8.0",
"tslint": "5.4.3",

View File

@@ -0,0 +1,8 @@
#!/usr/bin/env node
const shell = require('shelljs')
shell.set('-v') // verbose
shell.rm('lib/*.js')
shell.rm('lib/**/*.js')

View File

@@ -244,10 +244,10 @@ buildCypressApp = (platform, version, options = {}) ->
Promise.resolve()
.then(checkPlatform)
.then(cleanupPlatform)
.then(buildPackages)
.then(copyPackages)
.then(npmInstallPackages)
# .then(cleanupPlatform)
# .then(buildPackages)
# .then(copyPackages)
# .then(npmInstallPackages)
.then(createRootPackage)
.then(copyPackageProxies(distDir))
.then(convertCoffeeToJs)