feat: standard run at root level

Simplify & uniformize standard confirmation.
Single pass for all packages, which is faster.

Unfortunately, it breaks atom's linter-js-standard.
This commit is contained in:
Julien Fontanet 2017-10-29 22:20:03 +01:00
parent 11b1ff478e
commit c84f61d388
25 changed files with 59 additions and 226 deletions

View File

@ -1,8 +1,10 @@
{
"devDependencies": {
"babel-eslint": "^8.0.1",
"exec-promise": "^0.7.0",
"husky": "^0.14.3",
"promise-toolbox": "^0.9.5"
"promise-toolbox": "^0.9.5",
"standard": "^10.0.3"
},
"engines": {
"yarn": "^1.2.1"
@ -11,8 +13,15 @@
"scripts": {
"commitmsg": "yarn test",
"prepublish": "scripts/run-script prepublish",
"pretest": "standard --fix",
"test": "scripts/run-script test"
},
"standard": {
"ignore": [
"packages/*/dist"
],
"parser": "babel-eslint"
},
"workspaces": [
"packages/*"
]

View File

@ -33,7 +33,6 @@
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-eslint": "^8.0.1",
"babel-plugin-lodash": "^3.2.11",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.5.2",
@ -41,15 +40,14 @@
"cross-env": "^5.0.1",
"dependency-check": "^2.9.1",
"jest": "^21.2.1",
"rimraf": "^2.6.1",
"standard": "^10.0.2"
"rimraf": "^2.6.1"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"commitmsg": "npm test",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"dev-test": "jest --bail --watch",
"posttest": "standard && dependency-check ./package.json",
"posttest": "dependency-check ./package.json",
"prebuild": "rimraf dist/",
"predev": "npm run prebuild",
"prepublish": "npm run build",
@ -77,11 +75,5 @@
"<rootDir>/src"
],
"testRegex": "\\.spec\\.js$"
},
"standard": {
"ignore": [
"dist"
],
"parser": "babel-eslint"
}
}

View File

@ -52,7 +52,6 @@
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-eslint": "^8.0.1",
"babel-plugin-lodash": "^3.2.11",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-preset-env": "^1.6.0",
@ -60,8 +59,7 @@
"cross-env": "^5.0.5",
"dependency-check": "^2.9.1",
"jest": "^21.2.1",
"rimraf": "^2.6.1",
"standard": "^10.0.3"
"rimraf": "^2.6.1"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
@ -69,7 +67,7 @@
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"dev-test": "jest --bail --watch",
"plot": "gnuplot -p memory-test.gnu",
"posttest": "standard && dependency-check ./package.json",
"posttest": "dependency-check ./package.json",
"prebuild": "rimraf dist/",
"predev": "npm run prebuild",
"prepublish": "npm run build",
@ -97,11 +95,5 @@
"<rootDir>/src"
],
"testRegex": "\\.spec\\.js$"
},
"standard": {
"ignore": [
"dist"
],
"parser": "babel-eslint"
}
}

View File

@ -25,24 +25,15 @@
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-eslint": "^8.0.1",
"babel-preset-es2015": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"dependency-check": "^2.9.1",
"standard": "^10.0.2"
"dependency-check": "^2.9.1"
},
"scripts": {
"build": "babel --source-maps --out-dir=dist/ src/",
"depcheck": "dependency-check ./package.json",
"dev": "babel --watch --source-maps --out-dir=dist/ src/",
"lint": "standard",
"posttest": "yarn run lint && yarn run depcheck",
"posttest": "yarn run depcheck",
"prepublish": "yarn run build"
},
"standard": {
"ignore": [
"dist/**"
],
"parser": "babel-eslint"
}
}

View File

@ -50,7 +50,6 @@
},
"devDependencies": {
"babel-cli": "^7.0.0-beta.3",
"babel-eslint": "^8.0.1",
"babel-plugin-lodash": "^3.2.11",
"babel-preset-env": "^7.0.0-beta.3",
"babel-preset-flow": "^7.0.0-beta.3",
@ -60,8 +59,7 @@
"dependency-check": "^2.9.1",
"flow-bin": "^0.57.3",
"jest": "^21.2.1",
"rimraf": "^2.6.2",
"standard": "^10.0.3"
"rimraf": "^2.6.2"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
@ -73,7 +71,7 @@
"prebuild": "rimraf dist/",
"predev": "npm run prebuild",
"prepublish": "npm run build",
"pretest": "standard --fix && flow status",
"pretest": "flow status",
"test": "jest"
},
"config": {
@ -87,11 +85,5 @@
"<rootDir>/src"
],
"testRegex": "\\.spec\\.js$"
},
"standard": {
"ignore": [
"dist"
],
"parser": "babel-eslint"
}
}

View File

@ -32,7 +32,6 @@
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-eslint": "^8.0.1",
"babel-plugin-lodash": "^3.2.11",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.5.2",
@ -41,14 +40,13 @@
"dependency-check": "^2.9.1",
"event-to-promise": "^0.8.0",
"jest": "^21.2.1",
"rimraf": "^2.6.1",
"standard": "^10.0.2"
"rimraf": "^2.6.1"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"dev-test": "jest --bail --watch",
"posttest": "standard && dependency-check ./package.json --entry dist/collection.js index.js unique-index.js view.js",
"posttest": "dependency-check ./package.json --entry dist/collection.js index.js unique-index.js view.js",
"prebuild": "rimraf dist/",
"predev": "yarn run prebuild",
"prepublish": "yarn run build",
@ -76,11 +74,5 @@
"<rootDir>/src"
],
"testRegex": "\\.spec\\.js$"
},
"standard": {
"ignore": [
"dist"
],
"parser": "babel-eslint"
}
}

View File

@ -30,23 +30,20 @@
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-eslint": "^8.0.1",
"babel-plugin-lodash": "^3.2.9",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.5.2",
"babel-preset-stage-0": "^6.24.1",
"cross-env": "^5.0.1",
"dependency-check": "^2.9.1",
"rimraf": "^2.6.1",
"standard": "^10.0.2"
"rimraf": "^2.6.1"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"clean": "rimraf dist/",
"depcheck": "dependency-check ./package.json --entry api-errors.js",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"lint": "standard",
"posttest": "yarn run lint && yarn run depcheck",
"posttest": "yarn run depcheck",
"prebuild": "yarn run clean",
"predev": "yarn run clean",
"prepublish": "yarn run build"
@ -67,11 +64,5 @@
],
"stage-0"
]
},
"standard": {
"ignore": [
"dist"
],
"parser": "babel-eslint"
}
}

View File

@ -34,22 +34,20 @@
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-eslint": "^8.0.1",
"babel-plugin-lodash": "^3.2.11",
"babel-preset-env": "^1.5.2",
"babel-preset-stage-3": "^6.24.1",
"cross-env": "^5.0.1",
"dependency-check": "^2.9.1",
"jest": "^21.2.1",
"rimraf": "^2.6.1",
"standard": "^10.0.2"
"rimraf": "^2.6.1"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"commitmsg": "npm test",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"dev-test": "jest --bail --watch",
"posttest": "standard && dependency-check ./package.json",
"posttest": "dependency-check ./package.json",
"prebuild": "rimraf dist/",
"predev": "npm run prebuild",
"prepublish": "npm run build",
@ -84,11 +82,5 @@
"<rootDir>/src"
],
"testRegex": "\\.spec\\.js$"
},
"standard": {
"ignore": [
"dist"
],
"parser": "babel-eslint"
}
}

View File

@ -28,7 +28,6 @@
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-eslint": "^8.0.1",
"babel-plugin-lodash": "^3.2.11",
"babel-preset-env": "^1.5.2",
"babel-preset-stage-3": "^6.24.1",
@ -36,14 +35,13 @@
"deep-freeze": "^0.0.1",
"dependency-check": "^2.9.1",
"jest": "^21.2.1",
"rimraf": "^2.6.1",
"standard": "^10.0.2"
"rimraf": "^2.6.1"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"dev-test": "jest --bail --watch",
"posttest": "standard && dependency-check ./package.json",
"posttest": "dependency-check ./package.json",
"prebuild": "rimraf dist/",
"predev": "yarn run prebuild",
"prepublish": "yarn run build",
@ -71,11 +69,5 @@
"<rootDir>/src"
],
"testRegex": "\\.spec\\.js$"
},
"standard": {
"ignore": [
"dist"
],
"parser": "babel-eslint"
}
}

View File

@ -34,19 +34,16 @@
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-eslint": "^8.0.1",
"babel-plugin-transform-runtime": "^6.15.0",
"babel-preset-latest": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"dependency-check": "^2.9.1",
"standard": "^10.0.2"
"dependency-check": "^2.9.1"
},
"scripts": {
"build": "NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"depcheck": "dependency-check ./package.json",
"dev": "NODE_DEV=development babel --watch --source-maps --out-dir=dist/ src/",
"lint": "standard",
"posttest": "yarn run lint && yarn run depcheck",
"posttest": "yarn run depcheck",
"prepublish": "yarn run build"
},
"babel": {
@ -57,11 +54,5 @@
"latest",
"stage-0"
]
},
"standard": {
"ignore": [
"dist"
],
"parser": "babel-eslint"
}
}

View File

@ -37,7 +37,6 @@
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-eslint": "^8.0.1",
"babel-plugin-lodash": "^3.2.11",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.3.3",
@ -45,15 +44,14 @@
"cross-env": "^5.1.1",
"dependency-check": "^2.8.0",
"jest": "^21.2.1",
"rimraf": "^2.6.1",
"standard": "^10.0.1"
"rimraf": "^2.6.1"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"commitmsg": "npm test",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"dev-test": "jest --bail --watch",
"posttest": "standard && dependency-check ./package.json",
"posttest": "dependency-check ./package.json",
"prebuild": "rimraf dist/",
"predev": "npm run prebuild",
"prepublish": "npm run build",
@ -88,11 +86,5 @@
"<rootDir>/src"
],
"testRegex": "\\.spec\\.js$"
},
"standard": {
"ignore": [
"dist"
],
"parser": "babel-eslint"
}
}

View File

@ -43,7 +43,6 @@
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-eslint": "^8.0.1",
"babel-plugin-lodash": "^3.2.11",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.5.2",
@ -51,15 +50,14 @@
"cross-env": "^5.0.1",
"dependency-check": "^2.9.1",
"jest": "^21.2.1",
"rimraf": "^2.6.1",
"standard": "^10.0.2"
"rimraf": "^2.6.1"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"commitmsg": "npm test",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"dev-test": "jest --bail --watch",
"posttest": "standard && dependency-check ./package.json",
"posttest": "dependency-check ./package.json",
"prebuild": "rimraf dist/",
"predev": "npm run prebuild",
"prepublish": "npm run build",
@ -87,11 +85,5 @@
"<rootDir>/src"
],
"testRegex": "\\.spec\\.js$"
},
"standard": {
"ignore": [
"dist"
],
"parser": "babel-eslint"
}
}

View File

@ -37,22 +37,19 @@
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-eslint": "^8.0.1",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-latest": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"cross-env": "^5.0.1",
"dependency-check": "^2.9.1",
"rimraf": "^2.6.1",
"standard": "^10.0.2"
"rimraf": "^2.6.1"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"clean": "rimraf dist/",
"depcheck": "dependency-check ./package.json",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"lint": "standard",
"posttest": "yarn run lint && yarn run depcheck",
"posttest": "yarn run depcheck",
"prebuild": "yarn run clean",
"predev": "yarn run clean",
"prepublish": "yarn run build"
@ -65,11 +62,5 @@
"latest",
"stage-0"
]
},
"standard": {
"ignore": [
"dist"
],
"parser": "babel-eslint"
}
}

View File

@ -41,22 +41,19 @@
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-eslint": "^8.0.1",
"babel-plugin-lodash": "^3.2.10",
"babel-preset-env": "^1.5.2",
"babel-preset-stage-0": "^6.24.1",
"cross-env": "^5.0.1",
"dependency-check": "^2.9.1",
"rimraf": "^2.6.1",
"standard": "^10.0.2"
"rimraf": "^2.6.1"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"clean": "rimraf dist/",
"depcheck": "dependency-check ./package.json",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"lint": "standard",
"posttest": "yarn run lint && yarn run depcheck",
"posttest": "yarn run depcheck",
"prebuild": "yarn run clean",
"predev": "yarn run clean",
"prepublish": "yarn run build"
@ -76,11 +73,5 @@
],
"stage-0"
]
},
"standard": {
"ignore": [
"dist"
],
"parser": "babel-eslint"
}
}

View File

@ -38,22 +38,19 @@
},
"devDependencies": {
"babel-cli": "^6.18.0",
"babel-eslint": "^8.0.1",
"babel-plugin-transform-runtime": "^6.15.0",
"babel-preset-env": "^1.5.2",
"babel-preset-stage-3": "^6.16.0",
"cross-env": "^5.0.1",
"dependency-check": "^2.9.1",
"rimraf": "^2.5.4",
"standard": "^10.0.2"
"rimraf": "^2.5.4"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"clean": "rimraf dist/",
"depcheck": "dependency-check ./package.json",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"lint": "standard",
"posttest": "yarn run lint && yarn run depcheck",
"posttest": "yarn run depcheck",
"prebuild": "yarn run clean",
"predev": "yarn run clean",
"prepublish": "yarn run build"
@ -73,11 +70,5 @@
],
"stage-3"
]
},
"standard": {
"ignore": [
"dist"
],
"parser": "babel-eslint"
}
}

View File

@ -37,20 +37,17 @@
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-eslint": "^8.0.1",
"babel-plugin-lodash": "^3.2.9",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"dependency-check": "^2.9.1",
"standard": "^10.0.2"
"dependency-check": "^2.9.1"
},
"scripts": {
"build": "NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"depcheck": "dependency-check ./package.json",
"dev": "NODE_DEV=development babel --watch --source-maps --out-dir=dist/ src/",
"lint": "standard",
"posttest": "yarn run lint && yarn run depcheck",
"posttest": "yarn run depcheck",
"prepublish": "yarn run build"
},
"babel": {
@ -62,11 +59,5 @@
"es2015",
"stage-0"
]
},
"standard": {
"ignore": [
"dist"
],
"parser": "babel-eslint"
}
}

View File

@ -15,13 +15,13 @@ exports.configurationSchema = {
required: ['foo']
}
// This (optional) schema is used to test the configuration
// This (optional) schema is used to test the configuration
// of the plugin.
exports.testSchema = {
type: 'object',
properties: {
test: {
type: 'string'
type: 'string'
}
},
required: ['test']

View File

@ -37,21 +37,19 @@
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-eslint": "^8.0.1",
"babel-plugin-lodash": "^3.2.11",
"babel-preset-env": "^1.5.2",
"babel-preset-stage-3": "^6.24.1",
"cross-env": "^5.0.1",
"dependency-check": "^2.9.1",
"jest": "^21.2.1",
"rimraf": "^2.6.1",
"standard": "^10.0.2"
"rimraf": "^2.6.1"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"dev-test": "jest --bail --watch",
"posttest": "standard && dependency-check ./package.json",
"posttest": "dependency-check ./package.json",
"prebuild": "rimraf dist/",
"predev": "yarn run prebuild",
"prepublish": "yarn run build",
@ -78,11 +76,5 @@
"<rootDir>/src"
],
"testRegex": "\\.spec\\.js$"
},
"standard": {
"ignore": [
"dist"
],
"parser": "babel-eslint"
}
}

View File

@ -36,22 +36,19 @@
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-eslint": "^8.0.1",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.5.2",
"babel-preset-stage-3": "^6.24.1",
"cross-env": "^5.0.1",
"dependency-check": "^2.9.1",
"rimraf": "^2.6.1",
"standard": "^10.0.2"
"rimraf": "^2.6.1"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"clean": "rimraf dist/",
"depcheck": "dependency-check ./package.json",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"lint": "standard",
"posttest": "yarn run lint && yarn run depcheck",
"posttest": "yarn run depcheck",
"prebuild": "yarn run clean",
"predev": "yarn run clean",
"prepublish": "yarn run build"
@ -71,11 +68,5 @@
],
"stage-3"
]
},
"standard": {
"ignore": [
"dist"
],
"parser": "babel-eslint"
}
}

View File

@ -37,21 +37,18 @@
},
"devDependencies": {
"babel-cli": "^6.18.0",
"babel-eslint": "^8.0.1",
"babel-preset-env": "^1.0.0",
"babel-preset-stage-0": "^6.16.0",
"cross-env": "^5.1.1",
"dependency-check": "^2.6.0",
"rimraf": "^2.5.4",
"standard": "^10.0.3"
"rimraf": "^2.5.4"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"clean": "rimraf dist/",
"depcheck": "dependency-check ./package.json",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"lint": "standard",
"posttest": "npm run lint && npm run depcheck",
"posttest": "npm run depcheck",
"prebuild": "npm run clean",
"predev": "npm run clean",
"prepublish": "npm run build"
@ -69,12 +66,6 @@
"stage-0"
]
},
"standard": {
"ignore": [
"dist"
],
"parser": "babel-eslint"
},
"config": {
"ghooks": {
"commit-msg": "npm test"

View File

@ -38,22 +38,19 @@
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-eslint": "^8.0.1",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-latest": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"cross-env": "^5.0.1",
"dependency-check": "^2.9.1",
"rimraf": "^2.6.1",
"standard": "^10.0.2"
"rimraf": "^2.6.1"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"clean": "rimraf dist/",
"depcheck": "dependency-check ./package.json",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"lint": "standard",
"posttest": "yarn run lint && yarn run depcheck",
"posttest": "yarn run depcheck",
"prebuild": "yarn run clean",
"predev": "yarn run clean",
"prepublish": "yarn run build"
@ -66,11 +63,5 @@
"latest",
"stage-0"
]
},
"standard": {
"ignore": [
"dist"
],
"parser": "babel-eslint"
}
}

View File

@ -43,23 +43,20 @@
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-eslint": "^8.0.1",
"babel-plugin-lodash": "^3.2.11",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.5.2",
"babel-preset-stage-3": "^6.24.1",
"cross-env": "^5.0.1",
"dependency-check": "^2.9.1",
"rimraf": "^2.6.1",
"standard": "^10.0.2"
"rimraf": "^2.6.1"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
"clean": "rimraf dist/",
"depcheck": "dependency-check ./package.json",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"lint": "standard",
"posttest": "npm run lint && npm run depcheck",
"posttest": "npm run depcheck",
"prebuild": "npm run clean",
"predev": "npm run clean",
"prepublish": "npm run build"
@ -80,11 +77,5 @@
],
"stage-3"
]
},
"standard": {
"ignore": [
"dist"
],
"parser": "babel-eslint"
}
}

View File

@ -31,7 +31,6 @@
},
"devDependencies": {
"babel-cli": "^6.18.0",
"babel-eslint": "^8.0.1",
"babel-plugin-transform-runtime": "^6.15.0",
"babel-preset-env": "^1.0.0",
"babel-preset-stage-0": "^6.16.0",
@ -39,8 +38,7 @@
"dependency-check": "^2.6.0",
"mocha": "^4.0.1",
"must": "^0.13.2",
"rimraf": "^2.5.4",
"standard": "^10.0.3"
"rimraf": "^2.5.4"
},
"scripts": {
"build": "cross-env NODE_ENV=production babel --source-maps --out-dir=dist/ src/",
@ -48,8 +46,7 @@
"depcheck": "dependency-check ./package.json",
"dev": "cross-env NODE_ENV=development babel --watch --source-maps --out-dir=dist/ src/",
"dev-test": "mocha --watch --reporter=min \"dist/**/*.spec.js\"",
"lint": "standard",
"posttest": "npm run lint && npm run depcheck",
"posttest": "npm run depcheck",
"prebuild": "npm run clean",
"predev": "npm run clean",
"prepublish": "npm run build",
@ -71,12 +68,6 @@
"stage-0"
]
},
"standard": {
"ignore": [
"dist"
],
"parser": "babel-eslint"
},
"config": {
"ghooks": {
"commit-msg": "npm test"

View File

@ -12,10 +12,14 @@ require('exec-promise')(() =>
url: 'https://github.com/vatesfr/xen-orchestra.git'
}
delete pkg.standard
const { devDependencies } = pkg
if (devDependencies !== undefined) {
delete devDependencies.ghooks
delete devDependencies.husky
delete devDependencies.standard
delete devDependencies['babel-eslint']
}
return Promise.all([

View File

@ -5791,7 +5791,7 @@ standard-engine@~7.0.0:
minimist "^1.1.0"
pkg-conf "^2.0.0"
standard@^10.0.1, standard@^10.0.2, standard@^10.0.3:
standard@^10.0.3:
version "10.0.3"
resolved "https://registry.yarnpkg.com/standard/-/standard-10.0.3.tgz#7869bcbf422bdeeaab689a1ffb1fea9677dd50ea"
dependencies: