mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-03-11 02:15:57 -05:00
Merge remote-tracking branch 'origin/4.x' into refactor-eslint
This commit is contained in:
commit
b215c74ad3
6 changed files with 759 additions and 818 deletions
|
@ -8,3 +8,5 @@ build/
|
||||||
*.md
|
*.md
|
||||||
*.lock
|
*.lock
|
||||||
*.yaml
|
*.yaml
|
||||||
|
Dockerfile
|
||||||
|
*.rpi
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
FROM node:10.14.1-alpine as builder
|
FROM node:10.14.1-alpine as builder
|
||||||
|
|
||||||
ENV NODE_ENV=production \
|
ENV NODE_ENV=production \
|
||||||
VERDACCIO_BUILD_REGISTRY=https://registry.npmjs.org/
|
VERDACCIO_BUILD_REGISTRY=https://registry.verdaccio.org
|
||||||
|
|
||||||
RUN apk --no-cache add openssl ca-certificates wget && \
|
RUN apk --no-cache add openssl ca-certificates wget && \
|
||||||
apk --no-cache add g++ gcc libgcc libstdc++ linux-headers make python && \
|
apk --no-cache add g++ gcc libgcc libstdc++ linux-headers make python && \
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
This directory is for config examples.
|
This directory is for config example.
|
||||||
|
|
|
@ -156,7 +156,7 @@
|
||||||
"webpack": "4.20.2",
|
"webpack": "4.20.2",
|
||||||
"webpack-bundle-analyzer": "3.0.2",
|
"webpack-bundle-analyzer": "3.0.2",
|
||||||
"webpack-cli": "3.1.1",
|
"webpack-cli": "3.1.1",
|
||||||
"webpack-dev-server": "3.1.9",
|
"webpack-dev-server": "3.1.11",
|
||||||
"webpack-merge": "4.1.4",
|
"webpack-merge": "4.1.4",
|
||||||
"whatwg-fetch": "3.0.0"
|
"whatwg-fetch": "3.0.0"
|
||||||
},
|
},
|
||||||
|
@ -178,8 +178,8 @@
|
||||||
"pretest": "npm run code:build",
|
"pretest": "npm run code:build",
|
||||||
"test": "npm run test:unit",
|
"test": "npm run test:unit",
|
||||||
"test:clean": "npx jest --clearCache",
|
"test:clean": "npx jest --clearCache",
|
||||||
"test:unit": "cross-env NODE_ENV=test BABEL_ENV=test TZ=UTC FORCE_COLOR=1 jest --config ./jest.config.js --maxWorkers 2",
|
"test:unit": "cross-env NODE_ENV=test BABEL_ENV=test TZ=UTC FORCE_COLOR=1 jest --config ./jest.config.js --maxWorkers 2 --passWithNoTests" ,
|
||||||
"test:functional": "cross-env NODE_ENV=test jest --config ./test/jest.config.functional.js --testPathPattern ./test/functional/index*",
|
"test:functional": "cross-env NODE_ENV=test jest --config ./test/jest.config.functional.js --testPathPattern ./test/functional/index* --passWithNoTests",
|
||||||
"test:e2e": "cross-env BABEL_ENV=test jest --config ./test/jest.config.e2e.js",
|
"test:e2e": "cross-env BABEL_ENV=test jest --config ./test/jest.config.e2e.js",
|
||||||
"test:size": "bundlesize",
|
"test:size": "bundlesize",
|
||||||
"test:all": "npm run build:webui && npm run test && npm run test:functional && npm run test:e2e && npm run test:size",
|
"test:all": "npm run build:webui && npm run test && npm run test:functional && npm run test:e2e && npm run test:size",
|
||||||
|
|
|
@ -10,7 +10,12 @@ const path = require('path');
|
||||||
app.param('revision', validate_name);
|
app.param('revision', validate_name);
|
||||||
app.param('token', validate_name);
|
app.param('token', validate_name);
|
||||||
*/
|
*/
|
||||||
describe('api endpoint app.param()', () => runTest('../endpoint/index.js'));
|
describe('api endpoint app.param()', () => {
|
||||||
|
|
||||||
|
// to avoid a failure on run test
|
||||||
|
test('empty block', () => {});
|
||||||
|
runTest('../endpoint/index.js');
|
||||||
|
});
|
||||||
|
|
||||||
function runTest(file) {
|
function runTest(file) {
|
||||||
return function() {
|
return function() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue