0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-03-18 02:22:46 -05:00

refactor: clean scripts and dependencies

This commit is contained in:
Juan Picado @jotadeveloper 2017-12-02 11:31:40 +01:00 committed by juanpicado
parent 1b1a784640
commit 0c9e504d1a
5 changed files with 14 additions and 68 deletions

View file

@ -71,10 +71,9 @@
"babel-preset-stage-3": "6.24.1",
"babel-register": "^6.26.0",
"babel-runtime": "6.26.0",
"codacy-coverage": "2.0.3",
"codecov": "2.2.0",
"coveralls": "2.13.1",
"cross-env": "^5.1.1",
"cross-env": "5.1.1",
"css-loader": "0.28.7",
"element-react": "1.4.3",
"element-theme-default": "1.4.12",
@ -140,9 +139,8 @@
"pretest": "npm run code:build",
"test": "cross-env jest",
"pre:ci": "npm run build:webui",
"test:only": "mocha ./test/functional ./test/unit",
"coverage:publish": "codecov",
"lint": "eslint .",
"lint": "npm run flow && eslint .",
"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",

View file

@ -10,8 +10,9 @@ export default class VerdaccioProcess implements IServerProcess {
bridge: IServerBridge;
config: IVerdaccioConfig;
childFork: any;
silence: boolean;
constructor(config: IVerdaccioConfig, bridge: IServerBridge, silence = true) {
constructor(config: IVerdaccioConfig, bridge: IServerBridge, silence: boolean = true) {
this.config = config;
this.bridge = bridge;
this.silence = silence;

View file

@ -19,6 +19,7 @@ export interface IServerProcess {
bridge: IServerBridge;
config: IVerdaccioConfig;
childFork: any;
silence: boolean;
init(): Promise<any>;
stop(): void;
}

View file

@ -2,7 +2,7 @@
import _ from 'lodash';
import smartRequest, {PromiseAssert} from '../../functional/lib/request';
import type {IRequestPromise} from './../functional/types';
import type {IRequestPromise} from '../../functional/lib/types';
describe('Request Functional', () => {
@ -17,7 +17,7 @@ describe('Request Functional', () => {
const requestPromise: IRequestPromise = new PromiseAssert((resolve, reject) => {
resolve(1);
});
// $FlowFixMe
requestPromise.then((result) => {
expect(result).toBe(1);
done();
@ -45,7 +45,7 @@ describe('Request Functional', () => {
url: restTest,
method: 'GET'
};
// $FlowFixMe
smartRequest(options).status(200).then((result)=> {
expect(JSON.parse(result).name).toBe('aaa');
done();
@ -57,7 +57,7 @@ describe('Request Functional', () => {
url: 'http://www.google.fake',
method: 'GET'
};
// $FlowFixMe
smartRequest(options).status(404).then((result)=> {
// this never is resolved
}, function(error) {

View file

@ -1196,10 +1196,6 @@ block-stream@*:
dependencies:
inherits "~2.0.0"
bluebird@^2.3, bluebird@^2.9.x:
version "2.11.0"
resolved "https://registry.npmjs.org/bluebird/-/bluebird-2.11.0.tgz#534b9033c022c9579c56ba3b3e5a5caafbb650e1"
bluebird@^3.4.7:
version "3.5.1"
resolved "https://registry.npmjs.org/bluebird/-/bluebird-3.5.1.tgz#d9551f9de98f1fcda1e683d17ee91a0602ee2eb9"
@ -1478,7 +1474,7 @@ chain-function@^1.0.0:
version "1.0.0"
resolved "https://registry.npmjs.org/chain-function/-/chain-function-1.0.0.tgz#0d4ab37e7e18ead0bdc47b920764118ce58733dc"
chalk@^1.0.0, chalk@^1.1.0, chalk@^1.1.1, chalk@^1.1.3:
chalk@^1.0.0, chalk@^1.1.1, chalk@^1.1.3:
version "1.1.3"
resolved "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
dependencies:
@ -1613,18 +1609,6 @@ coa@~1.0.1:
dependencies:
q "^1.1.2"
codacy-coverage@2.0.2:
version "2.0.2"
resolved "https://registry.npmjs.org/codacy-coverage/-/codacy-coverage-2.0.2.tgz#394f2f3c0e2b8ee924281e633df51e29b94dd8d9"
dependencies:
bluebird "^2.9.x"
commander "^2.x"
joi "^6.4.x"
lcov-parse "0.x"
lodash "^4.17.4"
log-driver "^1.x"
request-promise "^0.x"
code-point-at@^1.0.0:
version "1.1.0"
resolved "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
@ -1702,7 +1686,7 @@ combined-stream@^1.0.5, combined-stream@~1.0.5:
dependencies:
delayed-stream "~1.0.0"
commander@2.11.x, commander@^2.11.0, commander@^2.9.0, commander@^2.x, commander@~2.11.0:
commander@2.11.x, commander@^2.11.0, commander@^2.9.0, commander@~2.11.0:
version "2.11.0"
resolved "https://registry.npmjs.org/commander/-/commander-2.11.0.tgz#157152fd1e7a6c8d98a5b715cf376df928004563"
@ -1977,16 +1961,6 @@ cosmiconfig@^2.1.1:
parse-json "^2.2.0"
require-from-string "^1.1.0"
coveralls@2.13.1:
version "2.13.1"
resolved "https://registry.npmjs.org/coveralls/-/coveralls-2.13.1.tgz#d70bb9acc1835ec4f063ff9dac5423c17b11f178"
dependencies:
js-yaml "3.6.1"
lcov-parse "0.0.10"
log-driver "1.2.5"
minimist "1.2.0"
request "2.79.0"
create-ecdh@^4.0.0:
version "4.0.0"
resolved "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.0.tgz#888c723596cdf7612f6498233eebd7a35301737d"
@ -4511,7 +4485,7 @@ jest@^21.2.1:
dependencies:
jest-cli "^21.2.1"
joi@^6.10.1, joi@^6.4.x:
joi@^6.10.1:
version "6.10.1"
resolved "https://registry.npmjs.org/joi/-/joi-6.10.1.tgz#4d50c318079122000fe5f16af1ff8e1917b77e06"
dependencies:
@ -4532,13 +4506,6 @@ js-tokens@^3.0.0, js-tokens@^3.0.2:
version "3.0.2"
resolved "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz#9866df395102130e38f7f996bceb65443209c25b"
js-yaml@3.6.1:
version "3.6.1"
resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-3.6.1.tgz#6e5fe67d8b205ce4d22fad05b7781e8dadcc4b30"
dependencies:
argparse "^1.0.7"
esprima "^2.6.0"
js-yaml@^3.4.3, js-yaml@^3.6.0, js-yaml@^3.7.0, js-yaml@^3.8.4:
version "3.10.0"
resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-3.10.0.tgz#2e78441646bd4682e963f22b6e92823c309c62dc"
@ -4734,10 +4701,6 @@ lcid@^1.0.0:
dependencies:
invert-kv "^1.0.0"
lcov-parse@0.0.10, lcov-parse@0.x:
version "0.0.10"
resolved "https://registry.npmjs.org/lcov-parse/-/lcov-parse-0.0.10.tgz#1b0b8ff9ac9c7889250582b70b71315d9da6d9a3"
ldjson-stream@^1.2.1:
version "1.2.1"
resolved "https://registry.npmjs.org/ldjson-stream/-/ldjson-stream-1.2.1.tgz#91beceda5ac4ed2b17e649fb777e7abfa0189c2b"
@ -4899,14 +4862,6 @@ lodash@4.17.4, lodash@^4.0.0, lodash@^4.1.0, lodash@^4.14.0, lodash@^4.15.0, lod
version "4.17.4"
resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"
lodash@^3.10.0:
version "3.10.1"
resolved "https://registry.npmjs.org/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6"
log-driver@1.2.5, log-driver@^1.x:
version "1.2.5"
resolved "https://registry.npmjs.org/log-driver/-/log-driver-1.2.5.tgz#7ae4ec257302fd790d557cb10c97100d857b0056"
log-symbols@^1.0.2:
version "1.0.2"
resolved "https://registry.npmjs.org/log-symbols/-/log-symbols-1.0.2.tgz#376ff7b58ea3086a0f09facc74617eca501e1a18"
@ -5113,7 +5068,7 @@ minimist@0.0.8:
version "0.0.8"
resolved "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d"
minimist@1.2.0, minimist@^1.1.0, minimist@^1.1.1, minimist@^1.1.3, minimist@^1.2.0:
minimist@^1.1.0, minimist@^1.1.1, minimist@^1.1.3, minimist@^1.2.0:
version "1.2.0"
resolved "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284"
@ -6579,16 +6534,7 @@ repeating@^2.0.0:
dependencies:
is-finite "^1.0.0"
request-promise@^0.x:
version "0.4.3"
resolved "https://registry.npmjs.org/request-promise/-/request-promise-0.4.3.tgz#3c8ddc82f06f8908d720aede1d6794258e22121c"
dependencies:
bluebird "^2.3"
chalk "^1.1.0"
lodash "^3.10.0"
request "^2.34"
request@2, request@^2.34, request@^2.72.0, request@^2.79.0:
request@2, request@^2.72.0, request@^2.79.0:
version "2.83.0"
resolved "https://registry.npmjs.org/request/-/request-2.83.0.tgz#ca0b65da02ed62935887808e6f510381034e3356"
dependencies: