Skip to content

Commit

Permalink
chore(lerna): clean
Browse files Browse the repository at this point in the history
  • Loading branch information
deot committed Jun 19, 2020
1 parent 521bc7a commit e92ecd9
Show file tree
Hide file tree
Showing 36 changed files with 766 additions and 851 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ node_modules
# misc
.sass-cache
connect.lock
coverage/*
coverage
libpeerconnection.log
npm-debug.log
testem.log
Expand Down
18 changes: 18 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = (api) => {
// 编译缓存
api && api.cache.forever();

return {
presets: ['@babel/preset-env'],
plugins: [
[
"@babel/plugin-proposal-class-properties",
{
"loose": true
}
],
"@babel/plugin-transform-runtime"

]
};
};
54 changes: 41 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,33 +29,61 @@
"url": "https://github.com/wya-team/wya-doc/issues"
},
"engines": {
"node": ">=10"
},
"dependencies": {
"@wya/utils": "^1.6.0"
"node": ">=12"
},
"dependencies": {},
"devDependencies": {
"@babel/cli": "^7.10.1",
"@babel/core": "^7.10.2",
"@babel/helper-module-imports": "^7.10.1",
"@babel/plugin-proposal-class-properties": "^7.10.1",
"@babel/plugin-transform-regenerator": "^7.10.1",
"@babel/plugin-transform-runtime": "^7.10.1",
"@babel/preset-env": "^7.10.1",
"@babel/runtime": "^7.10.2",
"@rollup/plugin-buble": "^0.21.1",
"@rollup/plugin-commonjs": "^11.0.2",
"@rollup/plugin-node-resolve": "^7.1.1",
"@rollup/plugin-replace": "^2.3.1",
"babel-eslint": "^10.0.3",
"eslint": "^6.6.0",
"cross-env": "^7.0.0",
"cssnano": "^4.1.10",
"eslint": "^6.8.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-plugin-babel": "^5.3.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-html": "^6.0.0",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-markdown": "^1.0.1",
"eslint-plugin-vue": "^6.0.1",
"eslint-plugin-vue": "^6.2.2",
"eslint-watch": "^6.0.1",
"lerna": "^3.20.2"
"husky": "^4.2.3",
"lerna": "^3.20.2",
"lint-staged": "^10.0.7",
"postcss-nested": "^4.2.1",
"postcss-preset-env": "^6.7.0",
"postcss-simple-vars": "^5.0.2",
"regenerator-runtime": "0.11.1",
"rollup": "^2.1.0",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-postcss": "^3.1.1",
"rollup-plugin-uglify": "^6.0.4",
"rollup-plugin-vue": "^5.0.1",
"vue-template-compiler": "^2.6.11"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "node ./scripts/commit-lint"
}
},
"lint-staged": {
"{src,bin}/**/*": [
"{packages}/*/src/**/*.{js,jsx,wya}": [
"esw --fix",
"git add"
],
"*.md": [
"esw --ext '.md' --fix",
"git add"
]
},
"pre-commit": [
"lint-staged"
]
}
}
8 changes: 0 additions & 8 deletions packages/cli/__tests__/cli.test.js

This file was deleted.

7 changes: 0 additions & 7 deletions packages/cli/__tests__/doc.test.js

This file was deleted.

45 changes: 18 additions & 27 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,17 @@
"node": ">=12"
},
"dependencies": {
"@babel/core": "^7.7.5",
"@babel/plugin-proposal-class-properties": "^7.7.4",
"@babel/plugin-proposal-decorators": "^7.7.4",
"@babel/plugin-proposal-export-default-from": "^7.7.4",
"@babel/plugin-proposal-export-namespace-from": "^7.7.4",
"@babel/plugin-proposal-function-bind": "^7.7.4",
"@babel/plugin-syntax-dynamic-import": "^7.7.4",
"@babel/plugin-syntax-jsx": "^7.7.4",
"@babel/plugin-transform-modules-commonjs": "^7.7.5",
"@babel/preset-env": "^7.7.6",
"@babel/preset-env-standalone": "^7.7.7",
"@babel/runtime": "^7.7.4",
"@babel/standalone": "^7.7.7",
"@babel/core": "^7.10.2",
"@babel/plugin-proposal-class-properties": "^7.10.1",
"@babel/plugin-proposal-decorators": "^7.10.1",
"@babel/plugin-proposal-export-default-from": "^7.10.1",
"@babel/plugin-proposal-export-namespace-from": "^7.10.1",
"@babel/plugin-proposal-function-bind": "^7.10.1",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-syntax-jsx": "^7.10.1",
"@babel/plugin-transform-modules-commonjs": "^7.10.1",
"@babel/preset-env": "^7.10.2",
"@babel/runtime": "^7.10.2",
"@wya/doc-playground": "^1.0.0",
"@wya/doc-utils": "^1.0.0",
"@wya/http": "^1.4.5",
Expand All @@ -49,14 +47,12 @@
"@wya/socket": "^1.1.0",
"@wya/utils": "^1.6.1",
"@wya/vc": "^2.0.0-alpha.58",
"babel-loader": "^8.0.6",
"babel-loader": "^8.1.0",
"babel-plugin-import": "^1.13.0",
"babel-plugin-syntax-jsx": "^6.18.0",
"babel-plugin-transform-vue-jsx": "^3.7.0",
"babel-plugin-transform-vue-jsx": "^4.0.1",
"cac": "^6.5.3",
"chalk": "^3.0.0",
"chokidar": "^3.3.0",
"codemirror": "^5.49.2",
"css-loader": "^3.3.0",
"friendly-errors-webpack-plugin": "^1.7.0",
"fs-extra": "^8.1.0",
Expand All @@ -65,22 +61,17 @@
"html-webpack-plugin": "^3.2.0",
"js-beautify": "^1.10.2",
"lodash": "^4.17.15",
"markdown-it": "^10.0.0",
"markdown-it-anchor": "^5.2.5",
"markdown-it-chain": "^1.3.0",
"markdown-it-container": "^2.0.0",
"node-sass": "^4.13.0",
"node-sass": "^4.14.1",
"portfinder": "^1.0.25",
"sass-loader": "^8.0.0",
"sass-resources-loader": "^2.0.1",
"sass-loader": "^8.0.2",
"sass-resources-loader": "^2.0.3",
"upath": "^1.2.0",
"url-loader": "^3.0.0",
"vue": "^2.6.10",
"vue": "^2.6.11",
"vue-loader": "^15.7.2",
"vue-router": "^3.1.3",
"vue-style-loader": "^4.1.2",
"vue-template-compiler": "^2.6.10",
"vue-template-es2015-compiler": "^1.9.1",
"vue-template-compiler": "^2.6.11",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.10",
"webpack-dev-server": "^3.9.0",
Expand Down
8 changes: 8 additions & 0 deletions packages/cli/src/__tests__/cli.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const { expect } = require('chai');
const cli = require('..');

describe('index.js', () => {
it('验证api', () => {
expect(typeof cli).to.equal('object');
});
});
3 changes: 0 additions & 3 deletions packages/cli/src/docs/doc.browser.js

This file was deleted.

59 changes: 0 additions & 59 deletions packages/cli/src/docs/doc.config.js

This file was deleted.

13 changes: 0 additions & 13 deletions packages/cli/src/docs/en-US/components/footer.vue

This file was deleted.

13 changes: 0 additions & 13 deletions packages/cli/src/docs/en-US/components/header.vue

This file was deleted.

24 changes: 0 additions & 24 deletions packages/cli/src/docs/en-US/components/index.vue

This file was deleted.

Loading

0 comments on commit e92ecd9

Please sign in to comment.