Skip to content

Commit 4cf953b

Browse files
author
F-loat
committed
update: 更新依赖
1 parent 1abb2d3 commit 4cf953b

File tree

3 files changed

+36
-63
lines changed

3 files changed

+36
-63
lines changed

template/package.json

Lines changed: 33 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -14,93 +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.10"{{#vuex}},
18-
"vuex": "^2.3.1"{{/vuex}}
17+
"mpvue": "^1.0.11"{{#vuex}},
18+
"vuex": "^3.0.1"{{/vuex}}
1919
},
2020
"devDependencies": {
2121
"mpvue-loader": "^1.0.13",
2222
"mpvue-webpack-target": "^1.0.0",
23-
"mpvue-template-compiler": "^1.0.10",
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",
2727
"babel-core": "^6.22.1",
2828
"glob": "^7.1.2",
29-
"webpack-mpvue-asset-plugin": "^0.0.1",
29+
"webpack-mpvue-asset-plugin": "^0.0.2",
3030
{{#lint}}
31-
"babel-eslint": "^7.1.1",
31+
"babel-eslint": "^8.2.3",
3232
{{/lint}}
3333
"babel-loader": "^7.1.1",
3434
"babel-plugin-transform-runtime": "^6.22.0",
3535
"babel-preset-env": "^1.3.2",
3636
"babel-preset-stage-2": "^6.22.0",
3737
"babel-register": "^6.22.0",
38-
"chalk": "^2.0.1",
38+
"chalk": "^2.4.0",
3939
"connect-history-api-fallback": "^1.3.0",
40-
"copy-webpack-plugin": "^4.0.1",
41-
"css-loader": "^0.28.0",
40+
"copy-webpack-plugin": "^4.5.1",
41+
"css-loader": "^0.28.11",
4242
"cssnano": "^3.10.0",
4343
{{#lint}}
44-
"eslint": "^3.19.0",
45-
"eslint-friendly-formatter": "^3.0.0",
46-
"eslint-loader": "^1.7.1",
47-
"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",
4850
{{#if_eq lintConfig "standard"}}
49-
"eslint-config-standard": "^6.2.1",
51+
"eslint-config-standard": "^11.0.0",
5052
"eslint-plugin-promise": "^3.4.0",
51-
"eslint-plugin-standard": "^2.0.1",
53+
"eslint-plugin-standard": "^3.0.1",
5254
{{/if_eq}}
5355
{{#if_eq lintConfig "airbnb"}}
54-
"eslint-config-airbnb-base": "^11.1.3",
55-
"eslint-import-resolver-webpack": "^0.8.1",
56-
"eslint-plugin-import": "^2.2.0",
56+
"eslint-config-airbnb-base": "^12.1.0",
57+
"eslint-import-resolver-webpack": "^0.9.0",
5758
{{/if_eq}}
5859
{{/lint}}
5960
"eventsource-polyfill": "^0.9.6",
60-
"express": "^4.14.1",
61-
"extract-text-webpack-plugin": "^2.0.0",
62-
"file-loader": "^0.11.1",
63-
"friendly-errors-webpack-plugin": "^1.1.3",
64-
"html-webpack-plugin": "^2.28.0",
65-
"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",
6667
"webpack-bundle-analyzer": "^2.2.1",
67-
{{#unit}}
68-
"cross-env": "^5.0.1",
69-
"karma": "^1.4.1",
70-
"karma-coverage": "^1.1.1",
71-
"karma-mocha": "^1.3.0",
72-
"karma-phantomjs-launcher": "^1.0.2",
73-
"karma-phantomjs-shim": "^1.4.0",
74-
"karma-sinon-chai": "^1.3.1",
75-
"karma-sourcemap-loader": "^0.3.7",
76-
"karma-spec-reporter": "0.0.31",
77-
"karma-webpack": "^2.0.2",
78-
"mocha": "^3.2.0",
79-
"chai": "^3.5.0",
80-
"sinon": "^2.1.0",
81-
"sinon-chai": "^2.8.0",
82-
"inject-loader": "^3.0.0",
83-
"babel-plugin-istanbul": "^4.1.1",
84-
"phantomjs-prebuilt": "^2.1.14",
85-
{{/unit}}
86-
{{#e2e}}
87-
"chromedriver": "^2.27.2",
88-
"cross-spawn": "^5.0.1",
89-
"nightwatch": "^0.9.12",
90-
"selenium-server": "^3.0.1",
91-
{{/e2e}}
9268
"semver": "^5.3.0",
93-
"shelljs": "^0.7.6",
94-
"uglifyjs-webpack-plugin": "^1.2.4",
95-
"optimize-css-assets-webpack-plugin": "^2.0.0",
96-
"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",
9773
"rimraf": "^2.6.0",
98-
"url-loader": "^0.5.8",
99-
"vue-style-loader": "^3.0.1",
100-
"webpack": "^2.6.1",
101-
"webpack-dev-middleware-hard-disk": "^1.10.1",
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",
10278
"webpack-merge": "^4.1.0",
103-
"postcss-loader": "^2.0.6"
79+
"postcss-loader": "^2.1.4"
10480
},
10581
"engines": {
10682
"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)