|
11 | 11 | },
|
12 | 12 | "scripts": {
|
13 | 13 | "start": "npm run watch",
|
14 |
| - "build": "babel source --out-dir distribution", |
| 14 | + "build": "cross-env BABEL_ENV=production babel source --out-dir distribution", |
15 | 15 | "watch": "npm run build -- --watch",
|
16 | 16 | "commit": "git-cz",
|
17 | 17 | "commitmsg": "npm run build && node distribution/cli.js --edit",
|
18 | 18 | "changelog": "conventional-changelog --preset angular --infile changelog.md --same-file --output-unreleased",
|
19 | 19 | "push": "git push && git push --tags && hub release create \"v$npm_package_version\" --message=\"v$npm_package_version\n$(conventional-changelog -p angular)\" && npm publish",
|
20 | 20 | "prepretest": "npm run lint",
|
21 | 21 | "pretest": "npm run deps",
|
22 |
| - "test": "ava", |
23 |
| - "lint": "xo *.js", |
| 22 | + "test": "nyc ava -c=4", |
| 23 | + "lint": "xo", |
24 | 24 | "deps": "npm run build && dependency-check . --missing && dependency-check . --extra --no-dev -i conventional-changelog-angular -i conventional-changelog-lint-config-angular",
|
25 | 25 | "commitlint": "node distribution/cli.js --from=HEAD~1",
|
26 | 26 | "preversion": "npm run build && npm test",
|
|
30 | 30 | "travis:lint:commits": "./scripts/lint:commits.sh"
|
31 | 31 | },
|
32 | 32 | "ava": {
|
| 33 | + "files": [ |
| 34 | + "source/**/*.test.js", |
| 35 | + "!distribution/**/*" |
| 36 | + ], |
| 37 | + "source": [ |
| 38 | + "source/**/*.js", |
| 39 | + "!distribution/**/*" |
| 40 | + ], |
33 | 41 | "babel": "inherit",
|
34 | 42 | "require": [
|
35 | 43 | "babel-register",
|
36 | 44 | "babel-polyfill"
|
37 | 45 | ]
|
38 | 46 | },
|
39 | 47 | "babel": {
|
| 48 | + "env": { |
| 49 | + "development": { |
| 50 | + "sourceMaps": "inline", |
| 51 | + "plugins": [ |
| 52 | + "add-module-exports", |
| 53 | + "istanbul", |
| 54 | + [ |
| 55 | + "transform-runtime", |
| 56 | + { |
| 57 | + "polyfill": false, |
| 58 | + "regenerator": true |
| 59 | + } |
| 60 | + ] |
| 61 | + ] |
| 62 | + }, |
| 63 | + "production": { |
| 64 | + "ignore": ["**/*.test.js"] |
| 65 | + } |
| 66 | + }, |
40 | 67 | "presets": [
|
41 | 68 | [
|
42 | 69 | "env",
|
|
59 | 86 | ]
|
60 | 87 | ]
|
61 | 88 | },
|
| 89 | + "nyc": { |
| 90 | + "all": true, |
| 91 | + "sourceMap": false, |
| 92 | + "instrument": false, |
| 93 | + "include": [ |
| 94 | + "source/**/*.js" |
| 95 | + ] |
| 96 | + }, |
| 97 | + "xo": { |
| 98 | + "plugins": [ |
| 99 | + "flow-check" |
| 100 | + ], |
| 101 | + "rules": { |
| 102 | + "flow-check/check": "error" |
| 103 | + } |
| 104 | + }, |
62 | 105 | "config": {
|
63 | 106 | "commitizen": {
|
64 | 107 | "path": "cz-conventional-changelog-lint"
|
|
89 | 132 | },
|
90 | 133 | "license": "MIT",
|
91 | 134 | "devDependencies": {
|
| 135 | + "ansi-styles": "3.1.0", |
92 | 136 | "ava": "0.18.2",
|
93 | 137 | "babel-cli": "6.18.0",
|
94 | 138 | "babel-plugin-add-module-exports": "0.2.1",
|
| 139 | + "babel-plugin-istanbul": "4.1.3", |
95 | 140 | "babel-plugin-transform-runtime": "6.23.0",
|
96 | 141 | "babel-polyfill": "6.20.0",
|
97 | 142 | "babel-preset-env": "1.2.1",
|
98 | 143 | "babel-preset-stage-0": "6.16.0",
|
99 | 144 | "babel-register": "6.24.1",
|
100 | 145 | "conventional-changelog-cli": "1.2.0",
|
101 | 146 | "conventional-recommended-bump": "0.3.0",
|
| 147 | + "cross-env": "5.0.1", |
102 | 148 | "cz-conventional-changelog-lint": "0.1.3",
|
103 | 149 | "denodeify": "1.2.1",
|
104 | 150 | "dependency-check": "2.7.0",
|
105 |
| - "execa": "0.6.0", |
| 151 | + "eslint-plugin-flow-check": "1.1.1", |
| 152 | + "execa": "0.6.3", |
| 153 | + "globby": "6.1.0", |
| 154 | + "has-ansi": "3.0.0", |
| 155 | + "import-from": "2.1.0", |
| 156 | + "nyc": "10.3.2", |
106 | 157 | "path-exists": "3.0.0",
|
| 158 | + "resolve-from": "3.0.0", |
107 | 159 | "rimraf": "2.6.1",
|
108 |
| - "unexpected": "10.20.0", |
109 |
| - "xo": "0.17.1" |
| 160 | + "xo": "0.18.2" |
110 | 161 | },
|
111 | 162 | "dependencies": {
|
112 | 163 | "babel-polyfill": "6.20.0",
|
|
0 commit comments