mirror of
https://github.com/vale981/apollo-server
synced 2025-03-06 02:01:40 -05:00

Primarily because the results that prettier is giving on Travis are not the same as those that are exhibited locally. Namely, the result of running the `npm run lint` command locally returns different files than on TravisCI. This makes it almost entirely impossible to determine what is wrong with the files. It's likely enough that it's running in post-commit, but I'd be happy to re-introduce this commit if someone can figure out what is wrong! For now though, it's interfering with the ability to merge PRs. As another option, perhaps CircleCI workflows would allow us to have separate fail badges for Lint tests rather than testing the linting in every Node.js version of the build matrix and polluting the true success and failure of the unarguably more important tests themselves (rather than the formatting of the code which is being tested).
58 lines
1.9 KiB
JSON
58 lines
1.9 KiB
JSON
{
|
|
"private": true,
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/apollographql/apollo-server.git"
|
|
},
|
|
"scripts": {
|
|
"compile": "lerna exec -- npm run compile",
|
|
"lint":
|
|
"prettier-check --ignore-path .gitignore \"{docs/{,source/**},.,packages/**,test}/{*.{j,t}s*,*.md,*.json}\"",
|
|
"lint-fix":
|
|
"prettier --write --ignore-path .gitignore \"{docs/{,source/**},.,packages/**,test}/{*.{j,t}s*,*.md,*.json}\"",
|
|
"prebootstrap": "npm install",
|
|
"postinstall": "lerna bootstrap",
|
|
"pretest": "npm run compile",
|
|
"test": "npm run testonly --",
|
|
"posttest": "npm run lint",
|
|
"testonly":
|
|
"mocha --reporter spec --full-trace --timeout 5000 ./test/tests.js",
|
|
"coverage":
|
|
"istanbul cover -x \"*.test.js\" _mocha -- --timeout 5000 --full-trace --reporter dot ./test/tests.js",
|
|
"pretravis": "npm run compile",
|
|
"travis":
|
|
"istanbul cover -x \"*.test.js\" _mocha -- --timeout 5000 --full-trace ./test/tests.js",
|
|
"postcoverage":
|
|
"remap-istanbul --input coverage/coverage.raw.json --type lcovonly --output coverage/lcov.info",
|
|
"release": "lerna publish",
|
|
"precommit": "lint-staged"
|
|
},
|
|
"lint-staged": {
|
|
"*.ts*": ["prettier --write", "git add"],
|
|
"*.js*": ["prettier --write", "git add"],
|
|
"*.json*": ["prettier --write", "git add"],
|
|
"*.md*": ["prettier --write", "git add"]
|
|
},
|
|
"devDependencies": {
|
|
"@types/chai": "4.1.2",
|
|
"@types/mocha": "2.2.48",
|
|
"@types/node": "9.4.7",
|
|
"@types/sinon": "4.3.0",
|
|
"chai": "4.1.2",
|
|
"graphql": "0.11.7",
|
|
"husky": "0.14.3",
|
|
"istanbul": "1.1.0-alpha.1",
|
|
"lerna": "2.9.0",
|
|
"lint-staged": "6.1.1",
|
|
"mocha": "5.0.4",
|
|
"npm-check-updates": "2.14.1",
|
|
"prettier": "1.11.1",
|
|
"prettier-check": "2.0.0",
|
|
"remap-istanbul": "0.10.1",
|
|
"sinon": "4.4.4",
|
|
"supertest": "3.0.0",
|
|
"supertest-as-promised": "4.0.2",
|
|
"typescript": "2.7.2"
|
|
}
|
|
}
|