Skip to content

Commit

Permalink
patch: sort out organize deps
Browse files Browse the repository at this point in the history
  • Loading branch information
ealush committed Nov 6, 2020
1 parent 25c58ce commit c3e4449
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 219 deletions.
2 changes: 1 addition & 1 deletion config/rollup/getPlugins.js
Expand Up @@ -34,7 +34,7 @@ module.exports = function ({ dev = false, format, min, libraryName, version }) {
alias({ entries: aliases }),
resolve(),
commonjs({
include: /node_modules\/(anyone|n4s|wait)/,
include: /node_modules\/(anyone|n4s|wait|context)/,
}),
babel({
configFile: filePaths.BABEL_CONFIG_PATH,
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -64,6 +64,7 @@
"semver": "^7.3.2",
"typescript": "^4.0.5",
"validator": "^13.1.17",
"vest": "^2.2.3",
"wait": "^0.4.1"
}
}
19 changes: 0 additions & 19 deletions packages/n4s/package.json
Expand Up @@ -55,25 +55,6 @@
"url": "https://github.com/ealush/vest/issues"
},
"homepage": "https://github.com/ealush/vest/tree/latest/packages/n4s",
"devDependencies": {
"@ampproject/rollup-plugin-closure-compiler": "^0.25.2",
"@babel/cli": "^7.8.4",
"@babel/core": "^7.9.0",
"@babel/plugin-transform-object-assign": "^7.8.3",
"@babel/preset-env": "^7.9.0",
"babel-eslint": "^10.0.2",
"babel-jest": "^26.6.3",
"eslint": "^7.12.1",
"faker": "^4.1.0",
"jest": "^26.6.3",
"lodash": "^4.17.15",
"rollup": "^2.33.1",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-terser": "^6.1.0",
"validator": "^13.0.0"
},
"scripts": {
"build": "rollup -c ./config/rollup/rollup.config.js",
"test": "jest"
Expand Down
8 changes: 0 additions & 8 deletions packages/vest/package.json
Expand Up @@ -48,13 +48,5 @@
"anyone": "^0.0.7",
"context": "^1.1.0",
"n4s": "^2.1.1"
},
"dependencies": {
"babel-jest": "^26.6.3",
"eslint-config-prettier": "^6.15.0",
"jest": "^26.6.3",
"jest-cli": "^26.6.3",
"onchange": "^7.0.2",
"rollup": "^2.33.1"
}
}
37 changes: 0 additions & 37 deletions packages/vest/playground/index.js

This file was deleted.

13 changes: 13 additions & 0 deletions playground/playground.mjs
@@ -0,0 +1,13 @@
import vest, { test, enforce } from 'vest';

const v = vest.create('playground', (data = {}) => {
test('username', 'Must not be empty', () => {
enforce(data.username).isNotEmpty();
});
});

v({
username: 'ealush',
});

console.log(v.get());

0 comments on commit c3e4449

Please sign in to comment.