Skip to content

Commit f0a1702

Browse files
committed
update 2.0.0
1 parent 27d67cd commit f0a1702

File tree

171 files changed

+3517
-1817
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

171 files changed

+3517
-1817
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,5 @@ node_modules
1010
.npm
1111

1212
test/*
13-
test2/*
1413

1514
docs/_book

meta.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ module.exports = {
3636
"filters": {
3737
"src/components/views/todo/**/*": "vuex",
3838
"src/store/**/*": "vuex",
39-
"typings/interface/todo.d.ts": "vuex",
4039
"typings/interface/state.d.ts": "vuex"
4140
},
42-
"completeMessage": "{{#inPlace}}To get started:\n\n npm install\n npm run dev.{{else}}To get started:\n\n cd {{destDirName}}\n npm install\n npm run dev.{{/inPlace}}"
41+
"completeMessage": "{{#inPlace}}To get started:\n\n npm install\n npm run dev.{{else}}To get started:\n\n cd {{destDirName}}\n yarn\n yarn dll\n npm run dev.{{/inPlace}}"
4342
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-cli-template-typescript",
3-
"version": "1.1.0",
3+
"version": "2.0.0",
44
"license": "MIT",
55
"description": "Vue use typescript",
66
"scripts": {

template/.postcssrc.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// https://github.com/michael-ciniawsky/postcss-load-config
22

33
module.exports = {
4-
"plugins": {
4+
plugins: {
55
// to edit target browsers: use "browserlist" field in package.json
66
// 浏览器配置在 package.json 那里编辑
7-
"autoprefixer": {},
8-
"postcss-assets": {
7+
autoprefixer: {},
8+
'postcss-assets': {
99
relative: true,
1010
loadPaths: ['./src/assets/images']
1111
}

template/.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist/
2+
node_modules/

template/.prettierrc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"singleQuote": true,
3+
"semi": false,
4+
"tabWidth": 4,
5+
"overrides": [
6+
{
7+
"files": "src/**/*.ts",
8+
"options": {
9+
"parser": "typescript"
10+
}
11+
},
12+
{
13+
"files": "src/**/*.scss",
14+
"options": {
15+
"singleQuote": false,
16+
"semi": true
17+
}
18+
}
19+
]
20+
}

template/.stylelintrc.js

Lines changed: 84 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,101 +1,112 @@
11
/**
2-
* sass 规范
2+
* stylelint 配置
33
* @author Allenice <994298628@qq.com>
4-
* @since 2017-06-30 05:15:45
4+
* @date 2017-07-20 09:57:50
55
*/
66

7-
// 这里 js 使用双引号是因为想可以自由转换成 json
8-
97
module.exports = {
10-
"ignoreFiles": ["node_modules/**/*.scss"],
11-
"extends": "stylelint-config-standard",
12-
"plugins": ['stylelint-order'],
13-
"rules": {
14-
"color-hex-case": null,
15-
"color-hex-length": null,
16-
"max-empty-lines": 1,
17-
"indentation": 4,
8+
ignoreFiles: ['node_modules/**/*.scss'],
9+
extends: 'stylelint-config-standard',
10+
plugins: ['stylelint-order'],
11+
rules: {
12+
'color-hex-case': 'upper',
13+
'color-hex-length': null,
14+
'max-empty-lines': 1,
15+
indentation: 4,
1816
// 字符串使用双引号
19-
"string-quotes": "double",
17+
'string-quotes': 'double',
2018
// 使用了 autoprefix 不需要前缀
21-
"property-no-vendor-prefix": true,
22-
"selector-type-no-unknown": null,
23-
"selector-pseudo-element-colon-notation": null,
24-
"selector-pseudo-class-no-unknown": null,
25-
"number-leading-zero": null,
19+
'property-no-vendor-prefix': true,
20+
'selector-type-no-unknown': null,
21+
'selector-pseudo-element-colon-notation': null,
22+
'selector-pseudo-class-no-unknown': null,
23+
'number-leading-zero': null,
2624
// 属性顺序
27-
"property-no-unknown": [true, {
28-
ignoreProperties: ["composes"]
29-
}],
25+
'property-no-unknown': [
26+
true,
27+
{
28+
ignoreProperties: ['composes']
29+
}
30+
],
3031
// 属性顺序
31-
"order/order": [
32-
"dollar-variables",
33-
"custom-properties",
34-
"declarations",
35-
"rules",
36-
"at-rules"
32+
'order/order': [
33+
'dollar-variables',
34+
'custom-properties',
35+
'at-rules',
36+
'declarations',
37+
'rules'
3738
],
38-
"order/properties-order": [
39-
"display",
40-
"float",
41-
"position",
39+
'order/properties-order': [
40+
'display',
41+
'float',
42+
'position',
43+
{
44+
order: 'flexible',
45+
properties: ['left', 'top', 'right', 'bottom']
46+
},
47+
'width',
48+
'height',
4249
{
43-
"order": "flexible",
44-
"properties": [
45-
"left",
46-
"top",
47-
"right",
48-
"bottom",
50+
order: 'flexible',
51+
properties: [
52+
'min-width',
53+
'max-width',
54+
'min-height',
55+
'max-height',
56+
'line-height'
4957
]
5058
},
51-
"width",
52-
"height",
53-
"min-width",
54-
"min-height",
55-
"padding",
59+
'padding',
5660
{
57-
"order": "flexible",
58-
"properties": [
59-
"padding-left",
60-
"padding-top",
61-
"padding-right",
62-
"padding-bottom"
61+
order: 'flexible',
62+
properties: [
63+
'padding-left',
64+
'padding-top',
65+
'padding-right',
66+
'padding-bottom'
6367
]
6468
},
65-
"margin",
69+
'margin',
6670
{
67-
"order": "flexible",
68-
"properties": [
69-
"margin-left",
70-
"margin-top",
71-
"margin-right",
72-
"margin-bottom"
71+
order: 'flexible',
72+
properties: [
73+
'margin-left',
74+
'margin-top',
75+
'margin-right',
76+
'margin-bottom'
7377
]
7478
},
75-
"border",
79+
'border',
7680
{
77-
"order": "flexible",
78-
"properties": [
79-
"border-left",
80-
"border-top",
81-
"border-right",
82-
"border-bottom",
83-
"border-radius"
81+
order: 'flexible',
82+
properties: [
83+
'border-left',
84+
'border-top',
85+
'border-right',
86+
'border-bottom',
87+
'border-radius'
8488
]
8589
},
86-
"background",
90+
'background',
8791
{
88-
"order": "flexible",
89-
"properties": [
90-
"background-image",
91-
"background-position",
92-
"background-repeat",
93-
"background-size"
92+
order: 'flexible',
93+
properties: [
94+
'background-image',
95+
'background-position',
96+
'background-repeat',
97+
'background-size',
98+
'background-color'
9499
]
95100
},
96-
"color",
97-
"font",
98-
"text"
101+
'color',
102+
{
103+
order: 'flexible',
104+
properties: ['font-weight', 'font-size']
105+
},
106+
{
107+
order: 'flexible',
108+
properties: ['text-align']
109+
}
99110
]
100111
}
101112
}

template/.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"prettier.stylelintIntegration": true
3+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"$color-primary": {
3+
"prefix": "$color-primary",
4+
"body": "\\$color-primary",
5+
"description": "#2AAEFF Default color"
6+
},
7+
"#2AAEFF": {
8+
"prefix": "#2AAEFF",
9+
"body": "\\$color-primary",
10+
"description": "#2AAEFF Default color"
11+
},
12+
"$font-family": {
13+
"prefix": "$font-family",
14+
"body": "\\$font-family",
15+
"description":
16+
"\"Helvetica Neue\", \"Helvetica\", \"Roboto\", \"sans-serif\", \"Arial\";"
17+
},
18+
"$font-thin": {
19+
"prefix": "$font-thin",
20+
"body": "\\$font-thin",
21+
"description": "100;"
22+
},
23+
"$font-light": {
24+
"prefix": "$font-light",
25+
"body": "\\$font-light",
26+
"description": "300;"
27+
},
28+
"$font-regular": {
29+
"prefix": "$font-regular",
30+
"body": "\\$font-regular",
31+
"description": "400;"
32+
},
33+
"$font-medium": {
34+
"prefix": "$font-medium",
35+
"body": "\\$font-medium",
36+
"description": "500;"
37+
},
38+
"$font-bold": {
39+
"prefix": "$font-bold",
40+
"body": "\\$font-bold",
41+
"description": "600;"
42+
}
43+
}

template/README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# {{ name }}
1+
# vue8
22

3-
> {{ description }}
3+
> A Vue.js project
44
55
## Build Setup
66

@@ -31,3 +31,9 @@ npm run cli add [componentPath] -- -t [componentType]
3131
# use yarn
3232
yarn cli add [componentPath] -- -t [componentType]
3333
```
34+
35+
https://github.com/vue-bulma/vue-admin
36+
https://github.com/vuejs/vue-hackernews-2.0
37+
https://github.com/PanJiaChen/vue-element-admin
38+
https://github.com/vuejs/vue-devtools
39+
https://medium.mybridge.co/30-amazing-vue-js-open-source-projects-for-the-past-year-v-2018-d39a0d019bb7

0 commit comments

Comments
 (0)