Skip to content

Commit 6a9983b

Browse files
committed
remove lerna to simplify folder structure
1 parent 02a8935 commit 6a9983b

File tree

30 files changed

+2562
-309
lines changed

30 files changed

+2562
-309
lines changed
File renamed without changes.

docs/unit-test.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,3 @@
11
# Unit Test
22

3-
To test your Vue component, you can enable either `AVA` or `Karma` during the process of generating a new project.
4-
5-
![preview](https://ooo.0o0.ooo/2017/05/23/5924596cbe646.png)
6-
7-
## AVA
8-
9-
Basically the default setup is based on AVA's offical [Vue.js recipe](https://github.com/avajs/ava/blob/master/docs/recipes/vue.md).
10-
11-
Check out `./test/test.js` for an example test case, and `./test/helpers/setup.js` for how we transform `.vue` and `.js` files.
12-
13-
## Karma
14-
15-
By default Karma uses mocha and chrome to run your tests, you can choose your own assetion library like [chai](http://chaijs.com).
16-
17-
To run it in watch mode, you can type: `yarn test -- --watch`.
18-
19-
For all the available options, please head to [poi-preset-karma](https://github.com/egoist/poi/tree/master/packages/poi-preset-karma#options)
3+
Refer to [Tyu](https://github.com/egoist/tyu) which is using Jest under the hood.

lerna.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

package.json

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,38 @@
11
{
2-
"private": true,
32
"name": "create-vue-app",
43
"version": "0.0.0",
5-
"description": "create-vue-app mono-repo",
6-
"main": "index.js",
4+
"description": "Create Vue app with no build configurations",
75
"scripts": {
8-
"test": "lerna bootstrap && lerna run test && npm run lint",
6+
"test": "npm run lint && ava",
7+
"ava": "ava test/test.js",
98
"lint": "xo"
109
},
10+
"bin": "cli.js",
11+
"files": [
12+
"sao.js",
13+
"cli.js",
14+
"template"
15+
],
1116
"repository": "[email protected]:egoist/create-vue-app.git",
1217
"author": "EGOIST <[email protected]>",
1318
"license": "MIT",
1419
"devDependencies": {
20+
"ava": "^0.24.0",
1521
"eslint-config-rem": "^3.1.0",
1622
"lerna": "^2.0.0-rc.5",
1723
"xo": "^0.18.2"
1824
},
25+
"dependencies": {
26+
"cac": "^4.2.0",
27+
"sao": "^0.22.2",
28+
"superb": "^1.3.0",
29+
"template-vue": "^2.5.10",
30+
"update-notifier": "^2.1.0"
31+
},
1932
"xo": {
2033
"extends": "rem/prettier",
2134
"ignores": [
22-
"packages/template-vue/template/**/*"
35+
"template/**"
2336
],
2437
"rules": {
2538
"ava/no-ignored-test-files": 0

packages/create-vue-app/package.json

Lines changed: 0 additions & 22 deletions
This file was deleted.

packages/template-vue/package.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

packages/template-vue/template/package.json

Lines changed: 0 additions & 50 deletions
This file was deleted.

packages/template-vue/template/test/helpers/setup.js

Lines changed: 0 additions & 12 deletions
This file was deleted.

packages/template-vue/template/test/test.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

packages/template-vue/test.js

Lines changed: 0 additions & 73 deletions
This file was deleted.

0 commit comments

Comments
 (0)