Skip to content

Commit

Permalink
fix: add cross-env for devdependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaojue committed May 6, 2019
1 parent c025517 commit b0d334f
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 54 deletions.
3 changes: 2 additions & 1 deletion example/01-helloWorld/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
"description": "daruk hellowrold",
"main": "index.js",
"scripts": {
"dev": "TS_NODE_FILES=true NODE_ENV=dev ts-node index.ts",
"dev": "cross-env TS_NODE_FILES=true NODE_ENV=dev ts-node index.ts",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "xiaojue",
"license": "MIT",
"devDependencies": {
"cross-env": "^5.2.0",
"ts-node": "^8.1.0"
},
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion example/02-comments/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "daruk mv dog app",
"main": "index.ts",
"scripts": {
"dev": "TS_NODE_FILES=true NODE_ENV=dev ts-node --project ./tsconfig.json ./index.ts",
"dev": "cross-env TS_NODE_FILES=true NODE_ENV=dev ts-node --project ./tsconfig.json ./index.ts",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
Expand All @@ -14,6 +14,7 @@
"author": "xiaojue",
"license": "MIT",
"devDependencies": {
"cross-env": "^5.2.0",
"ts-node": "^8.1.0"
},
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion example/03-weather/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
"description": "daruk weather",
"main": "index.js",
"scripts": {
"dev": "TS_NODE_FILES=true NODE_ENV=dev ts-node index.ts",
"dev": "cross-env TS_NODE_FILES=true NODE_ENV=dev ts-node index.ts",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "xiaojue",
"license": "MIT",
"devDependencies": {
"cross-env": "^5.2.0",
"ts-node": "^8.1.0"
},
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion example/04-timers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
"description": "daruk timers",
"main": "index.js",
"scripts": {
"dev": "TS_NODE_FILES=true NODE_ENV=dev ts-node index.ts",
"dev": "cross-env TS_NODE_FILES=true NODE_ENV=dev ts-node index.ts",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "xiaojue",
"license": "MIT",
"devDependencies": {
"cross-env": "^5.2.0",
"ts-node": "^8.1.0"
},
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion example/05-lifecycle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
"description": "daruk lifecycle",
"main": "index.js",
"scripts": {
"dev": "TS_NODE_FILES=true NODE_ENV=dev ts-node index.ts",
"dev": "cross-env TS_NODE_FILES=true NODE_ENV=dev ts-node index.ts",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "xiaojue",
"license": "MIT",
"devDependencies": {
"cross-env": "^5.2.0",
"ts-node": "^8.1.0"
},
"dependencies": {
Expand Down
3 changes: 2 additions & 1 deletion example/06-extensionBaseClass/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
"description": "daruk hellowrold",
"main": "index.js",
"scripts": {
"dev": "TS_NODE_FILES=true NODE_ENV=dev ts-node index.ts",
"dev": "cross-env TS_NODE_FILES=true NODE_ENV=dev ts-node index.ts",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "xiaojue",
"license": "MIT",
"devDependencies": {
"cross-env": "^5.2.0",
"ts-node": "^8.1.0"
},
"dependencies": {
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"contributors:generate": "all-contributors generate",
"build": "rimraf -rf ./build && tsc",
"cov": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
"test": "TS_NODE_FILES=true nyc --cache mocha --timeout 15000 --exit ./test/{,/**/}*.test.ts",
"test": "cross-env TS_NODE_FILES=true nyc --cache mocha --timeout 15000 --exit ./test/{,/**/}*.test.ts",
"tslint": "tslint --project . ./src/**/*.ts",
"publish": "npm run build && cnpm publish"
},
Expand Down Expand Up @@ -38,16 +38,17 @@
"chai": "^4.1.2",
"mocha": "^5.2.0",
"nyc": "^13.1.0",
"rimraf": "^2.6.3",
"sinon": "^7.3.0",
"supertest": "^3.3.0",
"ts-node": "^8.1.0",
"tslint": "^5.12.1",
"tslint-config-alloy": "^0.2.1",
"tslint-config-prettier": "^1.17.0",
"typescript": "^3.0.1",
"cross-env": "^5.2.0",
"v8-analytics": "^1.3.7",
"v8-profiler-node8": "^6.0.1",
"rimraf": "^2.6.3"
"v8-profiler-node8": "^6.0.1"
},
"dependencies": {
"@types/koa": "^2.0.46",
Expand Down
60 changes: 15 additions & 45 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -431,10 +431,6 @@ builtin-modules@^1.1.1:
version "1.1.1"
resolved "https://registry.npm.taobao.org/builtin-modules/download/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f"

bytes@3.1.0:
version "3.1.0"
resolved "https://registry.npm.taobao.org/bytes/download/bytes-3.1.0.tgz#f6cf7933a360e0588fa9fde85651cdc7f805d1f6"

cache-content-type@^1.0.0:
version "1.0.1"
resolved "https://registry.npm.taobao.org/cache-content-type/download/cache-content-type-1.0.1.tgz#035cde2b08ee2129f4a8315ea8f00a00dba1453c"
Expand Down Expand Up @@ -518,15 +514,6 @@ cliui@^4.0.0:
strip-ansi "^4.0.0"
wrap-ansi "^2.0.0"

co-body@^6.0.0:
version "6.0.0"
resolved "https://registry.npm.taobao.org/co-body/download/co-body-6.0.0.tgz#965b9337d7f5655480787471f4237664820827e3"
dependencies:
inflation "^2.0.0"
qs "^6.5.2"
raw-body "^2.3.3"
type-is "^1.6.16"

co@^4.6.0:
version "4.6.0"
resolved "https://registry.npm.taobao.org/co/download/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184"
Expand Down Expand Up @@ -648,10 +635,6 @@ cookies@~0.7.1:
depd "~1.1.2"
keygrip "~1.0.3"

copy-to@^2.0.1:
version "2.0.1"
resolved "https://registry.npm.taobao.org/copy-to/download/copy-to-2.0.1.tgz#2680fbb8068a48d08656b6098092bdafc906f4a5"

core-util-is@1.0.2, core-util-is@~1.0.0:
version "1.0.2"
resolved "https://registry.npm.taobao.org/core-util-is/download/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
Expand All @@ -662,14 +645,21 @@ cron@^1.4.1:
dependencies:
moment-timezone "^0.5.x"

cross-env@^5.2.0:
version "5.2.0"
resolved "https://registry.npm.taobao.org/cross-env/download/cross-env-5.2.0.tgz#6ecd4c015d5773e614039ee529076669b9d126f2"
dependencies:
cross-spawn "^6.0.5"
is-windows "^1.0.0"

cross-spawn@^4:
version "4.0.2"
resolved "https://registry.npm.taobao.org/cross-spawn/download/cross-spawn-4.0.2.tgz#7b9247621c23adfdd3856004a823cbe397424d41"
dependencies:
lru-cache "^4.0.1"
which "^1.2.9"

cross-spawn@^6.0.0:
cross-spawn@^6.0.0, cross-spawn@^6.0.5:
version "6.0.5"
resolved "https://registry.npm.taobao.org/cross-spawn/download/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4"
dependencies:
Expand Down Expand Up @@ -1077,7 +1067,7 @@ http-assert@^1.3.0:
deep-equal "~1.0.1"
http-errors "~1.7.1"

http-errors@1.7.2, http-errors@^1.3.1, http-errors@^1.6.3, http-errors@~1.7.1:
http-errors@^1.3.1, http-errors@^1.6.3, http-errors@~1.7.1:
version "1.7.2"
resolved "https://registry.npm.taobao.org/http-errors/download/http-errors-1.7.2.tgz#4f5029cf13239f31036e5b2e55292bcfbcc85c8f"
dependencies:
Expand All @@ -1102,7 +1092,7 @@ http-signature@~1.2.0:
jsprim "^1.2.2"
sshpk "^1.7.0"

iconv-lite@0.4.24, iconv-lite@^0.4.24, iconv-lite@^0.4.4:
iconv-lite@^0.4.24, iconv-lite@^0.4.4:
version "0.4.24"
resolved "https://registry.npm.taobao.org/iconv-lite/download/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b"
dependencies:
Expand All @@ -1118,10 +1108,6 @@ imurmurhash@^0.1.4:
version "0.1.4"
resolved "https://registry.npm.taobao.org/imurmurhash/download/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea"

inflation@^2.0.0:
version "2.0.0"
resolved "https://registry.npm.taobao.org/inflation/download/inflation-2.0.0.tgz#8b417e47c28f925a45133d914ca1fd389107f30f"

inflight@^1.0.4:
version "1.0.6"
resolved "https://registry.npm.taobao.org/inflight/download/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9"
Expand Down Expand Up @@ -1193,6 +1179,10 @@ is-typedarray@~1.0.0:
version "1.0.0"
resolved "https://registry.npm.taobao.org/is-typedarray/download/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a"

is-windows@^1.0.0:
version "1.0.2"
resolved "https://registry.npm.taobao.org/is-windows/download/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d"

is@^3.3.0:
version "3.3.0"
resolved "https://registry.npm.taobao.org/is/download/is-3.3.0.tgz#61cff6dd3c4193db94a3d62582072b44e5645d79"
Expand Down Expand Up @@ -1315,13 +1305,6 @@ keygrip@~1.0.3:
version "1.0.3"
resolved "https://registry.npm.taobao.org/keygrip/download/keygrip-1.0.3.tgz#399d709f0aed2bab0a059e0cdd3a5023a053e1dc"

koa-bodyparser@^4.2.1:
version "4.2.1"
resolved "https://registry.npm.taobao.org/koa-bodyparser/download/koa-bodyparser-4.2.1.tgz#4d7dacb5e6db1106649b595d9e5ccb158b6f3b29"
dependencies:
co-body "^6.0.0"
copy-to "^2.0.1"

koa-compose@^3.0.0:
version "3.2.1"
resolved "https://registry.npm.taobao.org/koa-compose/download/koa-compose-3.2.1.tgz#a85ccb40b7d986d8e5a345b3a1ace8eabcf54de7"
Expand Down Expand Up @@ -1910,23 +1893,14 @@ punycode@^2.1.0:
version "2.1.1"
resolved "https://registry.npm.taobao.org/punycode/download/punycode-2.1.1.tgz#b58b010ac40c22c5657616c8d2c2c02c7bf479ec"

qs@^6.5.1, qs@^6.5.2:
qs@^6.5.1:
version "6.7.0"
resolved "https://registry.npm.taobao.org/qs/download/qs-6.7.0.tgz#41dc1a015e3d581f1621776be31afb2876a9b1bc"

qs@~6.5.2:
version "6.5.2"
resolved "https://registry.npm.taobao.org/qs/download/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36"

raw-body@^2.3.3:
version "2.4.0"
resolved "https://registry.npm.taobao.org/raw-body/download/raw-body-2.4.0.tgz#a1ce6fb9c9bc356ca52e89256ab59059e13d0332"
dependencies:
bytes "3.1.0"
http-errors "1.7.2"
iconv-lite "0.4.24"
unpipe "1.0.0"

rc@^1.2.7:
version "1.2.8"
resolved "https://registry.npm.taobao.org/rc/download/rc-1.2.8.tgz#cd924bf5200a075b83c188cd6b9e211b7fc0d3ed"
Expand Down Expand Up @@ -2436,10 +2410,6 @@ uglify-js@^3.1.4:
commander "~2.20.0"
source-map "~0.6.1"

unpipe@1.0.0:
version "1.0.0"
resolved "https://registry.npm.taobao.org/unpipe/download/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec"

uri-js@^4.2.2:
version "4.2.2"
resolved "https://registry.npm.taobao.org/uri-js/download/uri-js-4.2.2.tgz#94c540e1ff772956e2299507c010aea6c8838eb0"
Expand Down

0 comments on commit b0d334f

Please sign in to comment.