mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
refactor: clean scripts and dependencies
This commit is contained in:
parent
1b1a784640
commit
0c9e504d1a
5 changed files with 9 additions and 9 deletions
|
@ -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",
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -19,6 +19,7 @@ export interface IServerProcess {
|
|||
bridge: IServerBridge;
|
||||
config: IVerdaccioConfig;
|
||||
childFork: any;
|
||||
silence: boolean;
|
||||
init(): Promise<any>;
|
||||
stop(): void;
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
BIN
yarn.lock
BIN
yarn.lock
Binary file not shown.
Loading…
Reference in a new issue