1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-13 03:35:52 +01:00

chore: update babel conf peer environment

This commit is contained in:
Juan Picado @jotadeveloper 2018-04-08 21:05:32 +02:00
parent 30e1941771
commit 9ca3d83355
No known key found for this signature in database
GPG Key ID: 18AC54485952D158
3 changed files with 25 additions and 4 deletions

@ -26,7 +26,19 @@
] ]
}, },
"test": { "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": [ "plugins": [
"transform-class-properties", "transform-class-properties",
"transform-object-rest-spread" "transform-object-rest-spread"
@ -44,6 +56,14 @@
"transform-class-properties" "transform-class-properties"
] ]
}, },
"registry-docker": {
"presets": [
["env", {
"targets": {
"node": "9"
}
}], "flow"]
},
"development": { "development": {
"presets": ["flow"], "presets": ["flow"],
"plugins": ["flow-runtime"] "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 global add -s flow-bin@0.52.0 && \
yarn install --production=false && \ yarn install --production=false && \
yarn run lint && \ yarn run lint && \
yarn run code:build && \ yarn run code:docker-build && \
yarn run build:webui && \ yarn run build:webui && \
yarn run test:unit -- --silent true --coverage false --bail && \ yarn run test:unit -- --silent true --coverage false --bail && \
yarn cache clean && \ yarn cache clean && \

@ -149,10 +149,10 @@
"flow": "flow", "flow": "flow",
"pretest": "npm run code:build", "pretest": "npm run code:build",
"test": "cross-env NODE_ENV=test BABEL_ENV=test TZ=UTC jest --maxWorkers 2", "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: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: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", "pre:ci": "npm run lint && npm run build:webui",
"commitmsg": "commitlint -e $GIT_PARAMS", "commitmsg": "commitlint -e $GIT_PARAMS",
"coverage:publish": "codecov", "coverage:publish": "codecov",
@ -160,6 +160,7 @@
"lint:css": "stylelint 'src/**/*.scss' --syntax scss", "lint:css": "stylelint 'src/**/*.scss' --syntax scss",
"dev:start": "cross-env BABEL_ENV=registry babel-node src/lib/cli", "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: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/*", "pre:webpack": "rimraf static/*",
"dev:webui": "cross-env BABEL_ENV=ui babel-node tools/dev.server.js", "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", "build:webui": "npm run pre:webpack && BABEL_ENV=ui webpack --config tools/webpack.prod.config.babel.js",