mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-02-17 23:45:29 -05:00
refactor: 🔨 add cross-env to npm script for Windows
This commit is contained in:
parent
136de84cc5
commit
38c15bfe2a
2 changed files with 17 additions and 5 deletions
11
package.json
11
package.json
|
@ -53,8 +53,10 @@
|
|||
"babel-cli": "6.26.0",
|
||||
"babel-core": "6.26.0",
|
||||
"babel-eslint": "8.0.1",
|
||||
"babel-jest": "^21.2.0",
|
||||
"babel-loader": "7.1.2",
|
||||
"babel-plugin-flow-runtime": "0.11.1",
|
||||
"babel-plugin-transform-async-to-generator": "^6.24.1",
|
||||
"babel-plugin-transform-decorators-legacy": "1.3.4",
|
||||
"babel-plugin-transform-es2015-classes": "^6.24.1",
|
||||
"babel-plugin-transform-runtime": "6.23.0",
|
||||
|
@ -68,11 +70,10 @@
|
|||
"babel-preset-stage-3": "6.24.1",
|
||||
"babel-register": "^6.26.0",
|
||||
"babel-runtime": "6.26.0",
|
||||
"babel-jest": "^21.2.0",
|
||||
"babel-plugin-transform-async-to-generator": "^6.24.1",
|
||||
"codacy-coverage": "2.0.2",
|
||||
"codecov": "2.2.0",
|
||||
"coveralls": "2.13.1",
|
||||
"cross-env": "^5.1.1",
|
||||
"css-loader": "0.28.7",
|
||||
"element-react": "1.4.1",
|
||||
"element-theme-default": "1.4.9",
|
||||
|
@ -133,7 +134,7 @@
|
|||
"release": "standard-version -a -s",
|
||||
"prepublish": "in-publish && npm run build:webui || not-in-publish",
|
||||
"flow": "flow",
|
||||
"test": "BABEL_ENV=registry mocha --require babel-register ./test/functional ./test/unit --reporter=spec --full-trace",
|
||||
"test": "cross-env BABEL_ENV=registry mocha --require babel-register ./test/functional ./test/unit --reporter=spec --full-trace",
|
||||
"pre:ci": "npm run build:webui",
|
||||
"test:ci": "npm run test:coverage",
|
||||
"test:only": "mocha ./test/functional ./test/unit",
|
||||
|
@ -142,8 +143,8 @@
|
|||
"coverage:publish": "nyc report --reporter=lcov | codecov",
|
||||
"lint": "eslint .",
|
||||
"lint:css": "stylelint 'src/**/*.scss' --syntax scss",
|
||||
"dev:start": "BABEL_ENV=registry babel-node src/lib/cli",
|
||||
"code:build": "BABEL_ENV=registry babel src/ --out-dir build/ --ignore src/webui/ --copy-files",
|
||||
"dev:start": "cross-env BABEL_ENV=registry babel-node src/lib/cli",
|
||||
"code:build": "cross-env BABEL_ENV=registry babel src/ --out-dir build/ --ignore src/webui/ --copy-files",
|
||||
"pre:webpack": "npm run lint && rimraf static/*",
|
||||
"dev:webui": "babel-node tools/dev.server.js",
|
||||
"build:webui": "npm run pre:webpack && BABEL_ENV=ui webpack --config tools/webpack.prod.config.babel.js",
|
||||
|
|
11
yarn.lock
11
yarn.lock
|
@ -1966,6 +1966,13 @@ create-hmac@^1.1.0, create-hmac@^1.1.2, create-hmac@^1.1.4:
|
|||
safe-buffer "^5.0.1"
|
||||
sha.js "^2.4.8"
|
||||
|
||||
cross-env@^5.1.1:
|
||||
version "5.1.1"
|
||||
resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-5.1.1.tgz#b6d8ab97f304c0f71dae7277b75fe424c08dfa74"
|
||||
dependencies:
|
||||
cross-spawn "^5.1.0"
|
||||
is-windows "^1.0.0"
|
||||
|
||||
cross-spawn@^3.0.0:
|
||||
version "3.0.1"
|
||||
resolved "https://registry.npmjs.org/cross-spawn/-/cross-spawn-3.0.1.tgz#1256037ecb9f0c5f79e3d6ef135e30770184b982"
|
||||
|
@ -3887,6 +3894,10 @@ is-utf8@^0.2.0:
|
|||
version "0.2.1"
|
||||
resolved "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72"
|
||||
|
||||
is-windows@^1.0.0:
|
||||
version "1.0.1"
|
||||
resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.1.tgz#310db70f742d259a16a369202b51af84233310d9"
|
||||
|
||||
is-wsl@^1.1.0:
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-1.1.0.tgz#1f16e4aa22b04d1336b66188a66af3c600c3a66d"
|
||||
|
|
Loading…
Add table
Reference in a new issue