make package scripts consistent - fixes #43

This commit is contained in:
Brian Mann
2017-05-17 12:20:06 -04:00
parent 166c55b68d
commit 2e892fb542
15 changed files with 37 additions and 63 deletions
-2
View File
@@ -46,8 +46,6 @@ Each package is responsible for building itself and testing itself and can do so
**clean-deps**: Remove any dependencies installed (usually by npm or bower)
**clean-all**: Run *clean* and *clean-deps* scripts
**test-all**: Run all tests in watch mode
**test-all-once**: Run all tests
-3
View File
@@ -17,11 +17,8 @@ const packageNameFromPath = (fullPath) => {
.replace('packages/', '')
}
const nonPackageDirs = ['docs/']
const getDirs = () => {
return globAsync('packages/*/')
.then((dirs) => dirs.concat(nonPackageDirs))
.map((dir) => path.join(process.cwd(), dir).replace(/\/$/, ''))
}
+1 -1
View File
@@ -46,6 +46,6 @@ gulp.task('cname', () => {
return gulp.src('CNAME').pipe(gulp.dest('public'))
})
gulp.task('prep:build', (cb) => {
gulp.task('post:build', (cb) => {
runSequence('clean:js', 'revision', 'clean:public', 'copyTmpToPublic', 'clean:tmp', 'cname', cb)
})
+4 -6
View File
@@ -6,16 +6,14 @@
"version": "3.3.1"
},
"scripts": {
"build": "npm run clean && hexo generate && npm run prep-build",
"postinstall": "npm run build",
"build": "npm run clean && hexo generate",
"postbuild": "gulp post:build",
"clean": "hexo clean",
"clean-all": "npm run clean && npm run clean-deps",
"clean-deps": "rm -rf node_modules",
"convert": "node ./cy_scripts/convert.js",
"deploy": "npm run build && hexo deploy",
"prep-build": "gulp prep:build",
"prep-start": "gulp prep:start",
"start": "hexo server --port 2222",
"watch-dev": "hexo server --port 2222"
"start": "hexo server --port 2222"
},
"devDependencies": {
"colors": "^1.1.2",
+7 -12
View File
@@ -6,19 +6,14 @@
"cypress": "bin/cypress"
},
"scripts": {
"install-app": "node cli.js --exec install",
"postinstall": "npm run all install && npm run all build-dev",
"deploy:docs": "npm run all deploy -- --package docs",
"start": "node start.js",
"watch-dev": "npm run all watch-dev",
"test": "mocha --watch",
"test-once": "mocha",
"test-all": "npm run all test -- --serial",
"test-all-once": "npm run all test-once -- --serial",
"test-all-unit-once": "npm run all test-unit-once -- --serial",
"test-all-integration-once": "npm run all test-integration-once -- --serial",
"test-all-e2e-once": "npm run all test-e2e-once -- --serial",
"all": "node cli.js --exec run"
"watch": "npm run all watch",
"build": "npm run all build",
"all": "node cli.js --exec run",
"test": "echo 'This runs just the CLI tests' && mocha",
"test-watch": "mocha --watch",
"test-e2e": "blah",
"postinstall": "npm run all install && npm run build"
},
"author": "",
"license": "MIT",
+2 -3
View File
@@ -4,14 +4,13 @@
"description": "Desktop GUI for managing Cypress projects.",
"main": "lib/gui.js",
"scripts": {
"build-dev": "zunder build-dev",
"build": "zunder build-dev",
"build-prod": "node ./scripts/build-prod.js",
"run-prod": "npm run build-prod && npm run server",
"watch": "zunder watch",
"server": "zunder serve-prod --port 8000",
"watch-dev": "zunder watch",
"clean": "zunder clean",
"clean-deps": "rm -rf node_modules",
"clean-all": "npm run clean && npm run clean-deps",
"lint": "eslint --fix lib/*.js src/*.js* src/**/*.js*",
"test": "npm run build-dev",
"pretest": "npm run lint"
+3 -3
View File
@@ -3,11 +3,11 @@
"version": "1.0.0",
"description": "",
"scripts": {
"build-dev": "gulp build",
"build": "gulp build",
"watch": "gulp watch",
"clean-deps": "rm -rf node_modules",
"test": "gulp test",
"test-watch": "gulp test:watch",
"watch-dev": "gulp watch"
"test-watch": "gulp test:watch"
},
"devDependencies": {
"@cypress/bower-kendo-ui": "0.0.2",
+1 -2
View File
@@ -8,8 +8,7 @@
"start": "./bin/cypress-electron",
"test": "mocha --compilers coffee:../coffee/register",
"postinstall": "./bin/cypress-electron --install",
"clean-deps": "rm -rf node_modules",
"clean-all": "npm run clean-deps"
"clean-deps": "rm -rf node_modules"
},
"bin": {
"cypress-electron": "./bin/cypress-electron"
+2 -2
View File
@@ -5,8 +5,8 @@
"main": "index.js",
"scripts": {
"clean-deps": "rm -rf node_modules",
"test-lib": "NODE_ENV=test mocha",
"test": "cypress run",
"test": "NODE_ENV=test mocha",
"test-e2e": "cypress run",
"build": "./bin/build.sh && gulp build",
"predeploy": "npm run build",
"deploy": "gulp deploy",
+5 -7
View File
@@ -4,15 +4,13 @@
"description": "Cypress Chrome Extension",
"main": "index.js",
"scripts": {
"watch-dev": "gulp watch",
"build-dev": "gulp build",
"watch": "gulp watch",
"build": "gulp build",
"build-prod": "gulp build",
"test": "npm run test-unit-once",
"test-once": "npm run test-unit-once",
"test-unit-once": "NODE_ENV=test mocha --require test-setup.js",
"test": "NODE_ENV=test mocha --require test-setup.js",
"test-watch": "npm run test -- --watch",
"clean": "gulp clean",
"clean-deps": "rm -rf node_modules",
"clean-all": "npm run clean && npm run clean-deps"
"clean-deps": "rm -rf node_modules"
},
"files": [
"app",
+4 -5
View File
@@ -5,12 +5,11 @@
"main": "index.js",
"types": "./index.d.ts",
"scripts": {
"clean-deps": "rm -rf node_modules",
"clean-all": "npm run clean-deps",
"lint": "tslint --type-check --project ../ts --fix --format stylish launcher/lib/*.ts launcher/lib/**/*.ts",
"build-dev": "npm run lint",
"build": "npm run lint",
"pretest": "npm run lint",
"test": "mocha"
"test": "mocha",
"clean-deps": "rm -rf node_modules",
"lint": "tslint --type-check --project ../ts --fix --format stylish launcher/lib/*.ts launcher/lib/**/*.ts"
},
"repository": {
"type": "git",
+3 -6
View File
@@ -4,15 +4,12 @@
"main": "lib/reporter",
"browser": "src/main",
"scripts": {
"build-dev": "node ./scripts/build-dev.js",
"build": "node ./scripts/build-dev.js",
"build-prod": "node ./scripts/build-prod.js",
"watch": "node ./scripts/watch.js",
"clean": "zunder clean",
"clean-deps": "rm -rf node_modules",
"clean-all": "npm run clean && npm run clean-deps",
"test": "npm run test-unit-once",
"test-once": "npm run test-unit-once",
"test-unit-once": "node ./scripts/test.js",
"watch-dev": "node ./scripts/watch.js"
"test": "node ./scripts/test.js"
},
"repository": {
"type": "git",
+3 -6
View File
@@ -12,15 +12,12 @@
},
"homepage": "https://github.com/cypress-io/cypress-core-runner#readme",
"scripts": {
"build-dev": "node ./scripts/build-dev.js",
"build": "node ./scripts/build-dev.js",
"build-prod": "node ./scripts/build-prod.js",
"watch": "node ./scripts/watch.js",
"clean": "zunder clean",
"clean-deps": "rm -rf node_modules",
"clean-all": "npm run clean && npm run clean-deps",
"test": "npm run test-unit-once",
"test-once": "npm run test-unit-once",
"test-unit-once": "node ./scripts/test.js",
"watch-dev": "node ./scripts/watch.js",
"test": "node ./scripts/test.js",
"lint": "eslint src/**/*.jsx src/**/*.js"
},
"files": [
+1 -4
View File
@@ -6,10 +6,7 @@
"scripts": {
"test": "NODE_ENV=test mocha",
"test-watch": "NODE_ENV=test mocha --watch",
"test-once": "npm run test-unit-once",
"test-unit-once": "NODE_ENV=test mocha",
"clean-deps": "rm -rf node_modules",
"clean-all": "npm run clean-deps"
"clean-deps": "rm -rf node_modules"
},
"repository": {
"type": "git",
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "static",
"main": "index.js",
"scripts": {
"build-dev": "gulp build",
"build": "gulp build",
"test": "echo 'Nothing to test yet'"
},
"devDependencies": {