mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-11-08 23:25:51 +01:00
chore: update babel conf peer environment
This commit is contained in:
parent
30e1941771
commit
9ca3d83355
22
.babelrc
22
.babelrc
@ -26,7 +26,19 @@
|
||||
]
|
||||
},
|
||||
"test": {
|
||||
"presets": [ "es2015-node4", "stage-2", "stage-3", "flow", "react"],
|
||||
"presets": [["env", {
|
||||
"targets": {
|
||||
"node": "6.10"
|
||||
}
|
||||
}], "flow", "react"],
|
||||
"plugins": [
|
||||
"transform-class-properties",
|
||||
"transform-object-rest-spread"
|
||||
]
|
||||
},
|
||||
"testE2E": {
|
||||
/** for an issue on puppeteer env we need to use es2015-node4 **/
|
||||
"presets": [ "es2015-node4", "flow"],
|
||||
"plugins": [
|
||||
"transform-class-properties",
|
||||
"transform-object-rest-spread"
|
||||
@ -44,6 +56,14 @@
|
||||
"transform-class-properties"
|
||||
]
|
||||
},
|
||||
"registry-docker": {
|
||||
"presets": [
|
||||
["env", {
|
||||
"targets": {
|
||||
"node": "9"
|
||||
}
|
||||
}], "flow"]
|
||||
},
|
||||
"development": {
|
||||
"presets": ["flow"],
|
||||
"plugins": ["flow-runtime"]
|
||||
|
@ -22,7 +22,7 @@ RUN npm config set registry http://registry.npmjs.org/ && \
|
||||
yarn global add -s flow-bin@0.52.0 && \
|
||||
yarn install --production=false && \
|
||||
yarn run lint && \
|
||||
yarn run code:build && \
|
||||
yarn run code:docker-build && \
|
||||
yarn run build:webui && \
|
||||
yarn run test:unit -- --silent true --coverage false --bail && \
|
||||
yarn cache clean && \
|
||||
|
@ -149,10 +149,10 @@
|
||||
"flow": "flow",
|
||||
"pretest": "npm run code:build",
|
||||
"test": "cross-env NODE_ENV=test BABEL_ENV=test TZ=UTC jest --maxWorkers 2",
|
||||
"test:e2e": "cross-env BABEL_ENV=registry jest --config ./jest.e2e.config.js --maxWorkers 2",
|
||||
"test:all": "npm run test && npm run test:e2e",
|
||||
"test:unit": "cross-env NODE_ENV=test BABEL_ENV=test TZ=UTC jest '(/test/unit.*\\.spec|/test/webui/.*\\.spec)\\.js' --maxWorkers 2",
|
||||
"test:func": "cross-env NODE_ENV=test BABEL_ENV=test jest '(/test/functional.*\\.func)\\.js' --maxWorkers 2",
|
||||
"test:e2e": "cross-env BABEL_ENV=testE2E jest --config ./jest.e2e.config.js --maxWorkers 2",
|
||||
"test:all": "npm run test && npm run test:e2e",
|
||||
"pre:ci": "npm run lint && npm run build:webui",
|
||||
"commitmsg": "commitlint -e $GIT_PARAMS",
|
||||
"coverage:publish": "codecov",
|
||||
@ -160,6 +160,7 @@
|
||||
"lint:css": "stylelint 'src/**/*.scss' --syntax scss",
|
||||
"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",
|
||||
"code:docker-build": "cross-env BABEL_ENV=registry-docker babel src/ --out-dir build/ --ignore src/webui/ --copy-files",
|
||||
"pre:webpack": "rimraf static/*",
|
||||
"dev:webui": "cross-env BABEL_ENV=ui babel-node tools/dev.server.js",
|
||||
"build:webui": "npm run pre:webpack && BABEL_ENV=ui webpack --config tools/webpack.prod.config.babel.js",
|
||||
|
Loading…
Reference in New Issue
Block a user