Skip to content
This repository was archived by the owner on Apr 30, 2018. It is now read-only.

Commit d9e6e91

Browse files
author
Kent C. Dodds
committed
chore(scripts): Use cross-env to set environment variables
So windows users feel the love ❤️
1 parent 00f1658 commit d9e6e91

File tree

1 file changed

+8
-48
lines changed

1 file changed

+8
-48
lines changed

package.json

Lines changed: 8 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,13 @@
2424
"main": "dist/formly.js",
2525
"license": "MIT",
2626
"scripts": {
27-
"build:dist": "better-npm-run build:dist",
28-
"build:prod": "better-npm-run build:prod",
27+
"build:dist": "cross-env NODE_ENV=development webpack --config node_modules/kcd-common-tools/shared/webpack.config.js --progress --colors",
28+
"build:prod": "cross-env NODE_ENV=production webpack --config node_modules/kcd-common-tools/shared/webpack.config.js --progress --colors",
2929
"build": "npm run build:dist & npm run build:prod",
30-
"test": "better-npm-run test test:single",
31-
"test:mac": "COVERAGE=true NODE_ENV=test karma start",
32-
"test:watch": "better-npm-run test",
33-
"test:debug": "better-npm-run test:debug",
34-
"test:ci": "better-npm-run test:ci",
30+
"test": "cross-env COVERAGE=true NODE_ENV=test karma start --single-run",
31+
"test:watch": "cross-env COVERAGE=true NODE_ENV=test karma start",
32+
"test:debug": "cross-env NODE_ENV=test karma start --browsers Chrome",
33+
"test:ci": "cross-env NODE_ENV=test:ci karma start",
3534
"start:mac": "npm run test:mac",
3635
"start": "npm run test:watch",
3736
"check-coverage": "istanbul check-coverage --statements 93 --branches 89 --functions 92 --lines 92",
@@ -42,46 +41,6 @@
4241
"postpublish": "publish-latest --user-email [email protected] --user-name formly-bot",
4342
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
4443
},
45-
"betterScripts": {
46-
"build:dist": {
47-
"env": {
48-
"NODE_ENV": "development"
49-
},
50-
"command": "webpack --config node_modules/kcd-common-tools/shared/webpack.config.js --progress --colors"
51-
},
52-
"build:prod": {
53-
"env": {
54-
"NODE_ENV": "production"
55-
},
56-
"command": "webpack --config node_modules/kcd-common-tools/shared/webpack.config.js --progress --colors"
57-
},
58-
"test:watch": {
59-
"env": {
60-
"COVERAGE": "true",
61-
"NODE_ENV": "test"
62-
},
63-
"command": "karma start"
64-
},
65-
"test": {
66-
"env": {
67-
"COVERAGE": "true",
68-
"NODE_ENV": "test"
69-
},
70-
"command": "karma start --single-run"
71-
},
72-
"test:debug": {
73-
"env": {
74-
"NODE_ENV": "test"
75-
},
76-
"command": "karma start --browsers Chrome"
77-
},
78-
"test:ci": {
79-
"env": {
80-
"NODE_ENV": "test:ci"
81-
},
82-
"command": "karma start"
83-
}
84-
},
8544
"config": {
8645
"ghooks": {
8746
"commit-msg": "./node_modules/.bin/validate-commit-msg && npm run code-checks && npm t && npm run check-coverage"
@@ -97,12 +56,13 @@
9756
"angular-mocks": "1.4.5",
9857
"api-check": "7.5.3",
9958
"babel": "5.8.23",
59+
"babel-eslint": "4.1.3",
10060
"babel-loader": "5.3.2",
101-
"better-npm-run": "benoror/better-npm-run#0.0.1",
10261
"chai": "3.3.0",
10362
"codecov.io": "0.1.6",
10463
"commitizen": "1.0.5",
10564
"cracks": "3.0.2",
65+
"cross-env": "1.0.1",
10666
"cz-conventional-changelog": "1.1.2",
10767
"eslint": "1.5.1",
10868
"eslint-config-kentcdodds": "4.0.0",

0 commit comments

Comments
 (0)