This repository has been archived by the owner on Jan 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(build): switch to kcd-scripts (#142)
- Loading branch information
Kent C. Dodds
authored
Sep 8, 2017
1 parent
da1e821
commit dd7b1fe
Showing
15 changed files
with
93 additions
and
214 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
registry=http://registry.npmjs.org/ | ||
save-exact=true | ||
package-lock=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
environment: | ||
matrix: | ||
- node_version: "6" | ||
- node_version: "8" | ||
|
||
branches: | ||
only: | ||
- master | ||
|
||
install: | ||
- ps: Install-Product node $env:node_version | ||
- yarn | ||
- npm i | ||
|
||
test_script: | ||
- node --version | ||
- npm test | ||
|
||
cache: | ||
- node_modules | ||
- "%LOCALAPPDATA%/Yarn" | ||
- ~/.npm | ||
|
||
build: off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const jestConfig = require('kcd-scripts/config').jest | ||
|
||
jestConfig.coveragePathIgnorePatterns = jestConfig.coveragePathIgnorePatterns.concat( | ||
['/bin/'], | ||
) | ||
module.exports = jestConfig |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
{ | ||
"name": "cross-env", | ||
"version": "0.0.0-semantically-released", | ||
"description": "Run scripts that set and use environment variables across platforms", | ||
"description": | ||
"Run scripts that set and use environment variables across platforms", | ||
"main": "dist/index.js", | ||
"bin": { | ||
"cross-env": "dist/bin/cross-env.js", | ||
|
@@ -11,78 +12,29 @@ | |
"node": ">=4.0" | ||
}, | ||
"scripts": { | ||
"start": "nps", | ||
"test": "nps test", | ||
"commitmsg": "opt --in commit-msg --exec \"validate-commit-msg\"", | ||
"precommit": "lint-staged && opt --in pre-commit --exec \"npm start validate\"" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"keywords": [], | ||
"add-contributor": "kcd-scripts contributors add", | ||
"build": "kcd-scripts build", | ||
"lint": "kcd-scripts lint", | ||
"test": "kcd-scripts test", | ||
"test:update": "npm test -- --updateSnapshot --coverage", | ||
"validate": "kcd-scripts validate", | ||
"precommit": "kcd-scripts precommit" | ||
}, | ||
"files": ["dist"], | ||
"keywords": ["cross-environment", "environment variable", "windows"], | ||
"author": "Kent C. Dodds <[email protected]> (http://kentcdodds.com/)", | ||
"license": "MIT", | ||
"dependencies": { | ||
"cross-spawn": "^5.1.0", | ||
"is-windows": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"all-contributors-cli": "^4.0.1", | ||
"babel-cli": "^6.24.1", | ||
"babel-core": "^6.23.1", | ||
"babel-jest": "^20.0.3", | ||
"babel-preset-env": "^1.2.0", | ||
"babel-preset-stage-2": "^6.22.0", | ||
"babel-register": "^6.23.0", | ||
"codecov": "^2.3.0", | ||
"commitizen": "^2.9.6", | ||
"cz-conventional-changelog": "^2.0.0", | ||
"eslint": "^3.17.0", | ||
"eslint-config-kentcdodds": "^12.0.0", | ||
"husky": "^0.14.3", | ||
"jest-cli": "^20.0.4", | ||
"lint-staged": "^3.3.1", | ||
"nps": "^5.0.3", | ||
"nps-utils": "^1.1.2", | ||
"opt-cli": "^1.5.1", | ||
"prettier-eslint-cli": "^4.1.1", | ||
"semantic-release": "^6.3.6", | ||
"validate-commit-msg": "^2.11.1" | ||
"kcd-scripts": "^0.3.4" | ||
}, | ||
"eslintConfig": { | ||
"extends": [ | ||
"kentcdodds", | ||
"kentcdodds/jest" | ||
], | ||
"rules": { | ||
"max-len": [ | ||
"error", | ||
80 | ||
] | ||
} | ||
}, | ||
"lint-staged": { | ||
"*.js": [ | ||
"prettier-eslint --write", | ||
"git add" | ||
] | ||
}, | ||
"jest": { | ||
"testEnvironment": "node", | ||
"coverageThreshold": { | ||
"global": { | ||
"branches": 100, | ||
"functions": 100, | ||
"lines": 100, | ||
"statements": 100 | ||
} | ||
} | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "node_modules/cz-conventional-changelog" | ||
} | ||
"extends": "./node_modules/kcd-scripts/eslint.js" | ||
}, | ||
"eslintIgnore": ["node_modules", "coverage", "dist"], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/kentcdodds/cross-env.git" | ||
|
Oops, something went wrong.