0
Fork 0
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:
Juan Picado @jotadeveloper 2019-01-09 08:54:11 +01:00
commit b215c74ad3
No known key found for this signature in database
GPG key ID: 18AC54485952D158
6 changed files with 759 additions and 818 deletions

View file

@ -8,3 +8,5 @@ build/
*.md *.md
*.lock *.lock
*.yaml *.yaml
Dockerfile
*.rpi

View file

@ -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 && \

View file

@ -1 +1 @@
This directory is for config examples. This directory is for config example.

View file

@ -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",

View file

@ -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() {

1558
yarn.lock

File diff suppressed because it is too large Load diff