Skip to content

Commit 99cbae5

Browse files
authored
Merge pull request #24 from F-loat/master
update: 更新依赖
2 parents 30339ed + 4cf953b commit 99cbae5

File tree

3 files changed

+37
-65
lines changed

3 files changed

+37
-65
lines changed

template/package.json

Lines changed: 34 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -14,94 +14,69 @@
1414
"lint": "eslint --ext .js,.vue src{{#unit}} test/unit/specs{{/unit}}{{#e2e}} test/e2e/specs{{/e2e}}"{{/lint}}
1515
},
1616
"dependencies": {
17-
"mpvue": "^1.0.8"{{#vuex}},
18-
"vuex": "^2.3.1"{{/vuex}}
17+
"mpvue": "^1.0.11"{{#vuex}},
18+
"vuex": "^3.0.1"{{/vuex}}
1919
},
2020
"devDependencies": {
21-
"mpvue-loader": "^1.0.11",
21+
"mpvue-loader": "^1.0.13",
2222
"mpvue-webpack-target": "^1.0.0",
23-
"mpvue-template-compiler": "^1.0.8",
23+
"mpvue-template-compiler": "^1.0.11",
2424
"portfinder": "^1.0.13",
2525
"postcss-mpvue-wxss": "^1.0.0",
2626
"px2rpx-loader": "^0.1.8",
27-
"rimraf": "^2.6.2",
2827
"babel-core": "^6.22.1",
2928
"glob": "^7.1.2",
30-
"webpack-mpvue-asset-plugin": "^0.0.1",
29+
"webpack-mpvue-asset-plugin": "^0.0.2",
3130
{{#lint}}
32-
"babel-eslint": "^7.1.1",
31+
"babel-eslint": "^8.2.3",
3332
{{/lint}}
3433
"babel-loader": "^7.1.1",
3534
"babel-plugin-transform-runtime": "^6.22.0",
3635
"babel-preset-env": "^1.3.2",
3736
"babel-preset-stage-2": "^6.22.0",
3837
"babel-register": "^6.22.0",
39-
"chalk": "^2.0.1",
38+
"chalk": "^2.4.0",
4039
"connect-history-api-fallback": "^1.3.0",
41-
"copy-webpack-plugin": "^4.0.1",
42-
"css-loader": "^0.28.0",
40+
"copy-webpack-plugin": "^4.5.1",
41+
"css-loader": "^0.28.11",
4342
"cssnano": "^3.10.0",
4443
{{#lint}}
45-
"eslint": "^3.19.0",
46-
"eslint-friendly-formatter": "^3.0.0",
47-
"eslint-loader": "^1.7.1",
48-
"eslint-plugin-html": "^3.0.0",
44+
"eslint": "^4.19.1",
45+
"eslint-friendly-formatter": "^4.0.1",
46+
"eslint-loader": "^2.0.0",
47+
"eslint-plugin-import": "^2.11.0",
48+
"eslint-plugin-node": "^6.0.1",
49+
"eslint-plugin-html": "^4.0.3",
4950
{{#if_eq lintConfig "standard"}}
50-
"eslint-config-standard": "^6.2.1",
51+
"eslint-config-standard": "^11.0.0",
5152
"eslint-plugin-promise": "^3.4.0",
52-
"eslint-plugin-standard": "^2.0.1",
53+
"eslint-plugin-standard": "^3.0.1",
5354
{{/if_eq}}
5455
{{#if_eq lintConfig "airbnb"}}
55-
"eslint-config-airbnb-base": "^11.1.3",
56-
"eslint-import-resolver-webpack": "^0.8.1",
57-
"eslint-plugin-import": "^2.2.0",
56+
"eslint-config-airbnb-base": "^12.1.0",
57+
"eslint-import-resolver-webpack": "^0.9.0",
5858
{{/if_eq}}
5959
{{/lint}}
6060
"eventsource-polyfill": "^0.9.6",
61-
"express": "^4.14.1",
62-
"extract-text-webpack-plugin": "^2.0.0",
63-
"file-loader": "^0.11.1",
64-
"friendly-errors-webpack-plugin": "^1.1.3",
65-
"html-webpack-plugin": "^2.28.0",
66-
"http-proxy-middleware": "^0.17.3",
61+
"express": "^4.16.3",
62+
"extract-text-webpack-plugin": "^3.0.2",
63+
"file-loader": "^1.1.11",
64+
"friendly-errors-webpack-plugin": "^1.7.0",
65+
"html-webpack-plugin": "^3.2.0",
66+
"http-proxy-middleware": "^0.18.0",
6767
"webpack-bundle-analyzer": "^2.2.1",
68-
{{#unit}}
69-
"cross-env": "^5.0.1",
70-
"karma": "^1.4.1",
71-
"karma-coverage": "^1.1.1",
72-
"karma-mocha": "^1.3.0",
73-
"karma-phantomjs-launcher": "^1.0.2",
74-
"karma-phantomjs-shim": "^1.4.0",
75-
"karma-sinon-chai": "^1.3.1",
76-
"karma-sourcemap-loader": "^0.3.7",
77-
"karma-spec-reporter": "0.0.31",
78-
"karma-webpack": "^2.0.2",
79-
"mocha": "^3.2.0",
80-
"chai": "^3.5.0",
81-
"sinon": "^2.1.0",
82-
"sinon-chai": "^2.8.0",
83-
"inject-loader": "^3.0.0",
84-
"babel-plugin-istanbul": "^4.1.1",
85-
"phantomjs-prebuilt": "^2.1.14",
86-
{{/unit}}
87-
{{#e2e}}
88-
"chromedriver": "^2.27.2",
89-
"cross-spawn": "^5.0.1",
90-
"nightwatch": "^0.9.12",
91-
"selenium-server": "^3.0.1",
92-
{{/e2e}}
9368
"semver": "^5.3.0",
94-
"shelljs": "^0.7.6",
95-
"uglifyjs-webpack-plugin": "^1.2.4",
96-
"optimize-css-assets-webpack-plugin": "^2.0.0",
97-
"ora": "^1.2.0",
69+
"shelljs": "^0.8.1",
70+
"uglifyjs-webpack-plugin": "^1.2.5",
71+
"optimize-css-assets-webpack-plugin": "^3.2.0",
72+
"ora": "^2.0.0",
9873
"rimraf": "^2.6.0",
99-
"url-loader": "^0.5.8",
100-
"vue-style-loader": "^3.0.1",
101-
"webpack": "^2.6.1",
102-
"webpack-dev-middleware-hard-disk": "^1.10.0",
74+
"url-loader": "^1.0.1",
75+
"vue-style-loader": "^4.1.0",
76+
"webpack": "^3.11.0",
77+
"webpack-dev-middleware-hard-disk": "^1.12.0",
10378
"webpack-merge": "^4.1.0",
104-
"postcss-loader": "^2.0.6"
79+
"postcss-loader": "^2.1.4"
10580
},
10681
"engines": {
10782
"node": ">= 4.0.0",

template/src/pages/counter/index.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ export default {
2929
}{{#if_eq lintConfig "airbnb"}},{{/if_eq}}
3030
}{{#if_eq lintConfig "airbnb"}},{{/if_eq}}
3131
}{{#if_eq lintConfig "airbnb"}};{{/if_eq}}
32-
3332
</script>
33+
3434
<style>
3535
.counter-warp {
3636
text-align: center;
@@ -43,5 +43,4 @@ export default {
4343
color: blue;
4444
border: 1px solid blue;
4545
}
46-
4746
</style>

template/src/utils/index.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ export function formatTime{{#unless_eq lintConfig "airbnb"}} {{/unless_eq}}(date
1818
return `${t1} ${t2}`{{#if_eq lintConfig "airbnb"}};{{/if_eq}}
1919
}
2020

21-
{{#if_eq lintConfig "airbnb"}}
2221
export default {
2322
formatNumber,
24-
formatTime,
25-
};
26-
{{/if_eq}}
23+
formatTime{{#if_eq lintConfig "airbnb"}},{{/if_eq}}
24+
}{{#if_eq lintConfig "airbnb"}};{{/if_eq}}

0 commit comments

Comments
 (0)