mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-26 10:59:23 -06:00
launcher: clean script
make launcher clean command cross-platform script
This commit is contained in:
@@ -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",
|
||||
|
||||
8
packages/launcher/scripts/clean.js
Normal file
8
packages/launcher/scripts/clean.js
Normal 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')
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user