Authored by ccbikai

优化

@@ -14,10 +14,8 @@ @@ -14,10 +14,8 @@
14 "debug": "DEBUG=\"express:*\" nodemon -e js,hbs -i public/ app.js", 14 "debug": "DEBUG=\"express:*\" nodemon -e js,hbs -i public/ app.js",
15 "lint-js": "eslint -c .eslintrc --cache --fix .", 15 "lint-js": "eslint -c .eslintrc --cache --fix .",
16 "lint-css": "stylelint --config .stylelintrc public/scss/**/*.css", 16 "lint-css": "stylelint --config .stylelintrc public/scss/**/*.css",
17 - "lint-vue": "eslint -c .eslintrc --cache --fix public/vue/**/*.vue || stylelint --extract --config .stylelintrc public/vue/**/*.vue",  
18 - "precommit": "node lint.js",  
19 - "test": "NODE_ENV=test nyc ./node_modules/.bin/ava",  
20 - "posttest": "nyc report --reporter=html" 17 + "lint-vue": "stylelint --extract --config .stylelintrc public/vue/**/*.vue; eslint -c .eslintrc --cache --fix public/vue/**/*.vue",
  18 + "precommit": "node lint.js"
21 }, 19 },
22 "license": "MIT", 20 "license": "MIT",
23 "dependencies": { 21 "dependencies": {
@@ -35,27 +33,15 @@ @@ -35,27 +33,15 @@
35 "moment": "^2.14.1", 33 "moment": "^2.14.1",
36 "morgan": "^1.7.0", 34 "morgan": "^1.7.0",
37 "oneapm": "^1.2.20", 35 "oneapm": "^1.2.20",
38 - "passport": "^0.3.2",  
39 - "passport-local": "^1.0.0",  
40 - "passport-qq": "0.0.3",  
41 - "passport-sina": "^0.1.0",  
42 - "passport-strategy": "^1.0.0",  
43 - "passport-weixin": "^0.1.0",  
44 "request-promise": "^3.0.0", 36 "request-promise": "^3.0.0",
45 "serve-favicon": "^2.3.0", 37 "serve-favicon": "^2.3.0",
46 "uuid": "^2.0.2", 38 "uuid": "^2.0.2",
47 "winston": "^2.2.0", 39 "winston": "^2.2.0",
48 "winston-daily-rotate-file": "^1.1.4", 40 "winston-daily-rotate-file": "^1.1.4",
49 - "yoho-node-lib": "0.0.17" 41 + "yoho-node-lib": "0.0.21"
50 }, 42 },
51 "devDependencies": { 43 "devDependencies": {
52 "autoprefixer": "^6.3.7", 44 "autoprefixer": "^6.3.7",
53 - "babel-core": "^6.10.4",  
54 - "babel-loader": "^6.2.4",  
55 - "babel-plugin-transform-runtime": "^6.9.0",  
56 - "babel-preset-es2015": "^6.9.0",  
57 - "babel-runtime": "^6.9.2",  
58 - "css-loader": "^0.23.1",  
59 "eslint": "^3.0.1", 45 "eslint": "^3.0.1",
60 "eslint-config-yoho": "^1.0.1", 46 "eslint-config-yoho": "^1.0.1",
61 "eslint-plugin-html": "^1.5.1", 47 "eslint-plugin-html": "^1.5.1",
@@ -80,12 +66,9 @@ @@ -80,12 +66,9 @@
80 "postcss-use": "^2.2.0", 66 "postcss-use": "^2.2.0",
81 "precss": "^1.4.0", 67 "precss": "^1.4.0",
82 "shelljs": "^0.7.0", 68 "shelljs": "^0.7.0",
83 - "stylelint": "^7.0.2", 69 + "stylelint": "^6.9.0",
84 "stylelint-config-yoho": "^1.2.5", 70 "stylelint-config-yoho": "^1.2.5",
85 - "vue-hot-reload-api": "^1.3.3",  
86 - "vue-html-loader": "^1.2.3",  
87 "vue-loader": "^8.5.3", 71 "vue-loader": "^8.5.3",
88 - "vue-style-loader": "^1.0.0",  
89 "webpack": "^1.13.1", 72 "webpack": "^1.13.1",
90 "webpack-dev-server": "^1.14.1", 73 "webpack-dev-server": "^1.14.1",
91 "webpack-stream": "^3.1.0", 74 "webpack-stream": "^3.1.0",
@@ -94,8 +77,8 @@ @@ -94,8 +77,8 @@
94 "yoho-jquery": "^2.2.4", 77 "yoho-jquery": "^2.2.4",
95 "yoho-jquery-lazyload": "^1.9.7", 78 "yoho-jquery-lazyload": "^1.9.7",
96 "yoho-mlellipsis": "0.0.3", 79 "yoho-mlellipsis": "0.0.3",
97 - "yoho-node-lib": "0.0.21",  
98 "yoho-swiper": "^3.3.1", 80 "yoho-swiper": "^3.3.1",
99 - "yoho-vue": "^1.0.26" 81 + "yoho-vue": "^1.0.26",
  82 + "yoho-vue-lazyload": "^0.4.3"
100 } 83 }
101 } 84 }
1 @font-face { 1 @font-face {
2 font-family: "iconfont"; 2 font-family: "iconfont";
3 - src: resolve('iconfont.eot'); /* IE9 */  
4 - src: resolve('iconfont.eot?#iefix') format('embedded-opentype'), resolve('iconfont.woff') format('woff'), resolve('iconfont.ttf') format('truetype'), resolve('iconfont.svg#iconfont') format('svg'); /* iOS 4.1- */ 3 + src: resolve("iconfont.eot"); /* IE9 */
  4 + src: resolve("iconfont.eot?#iefix") format("embedded-opentype"), resolve("iconfont.woff") format("woff"), resolve("iconfont.ttf") format("truetype"), resolve("iconfont.svg#iconfont") format("svg"); /* iOS 4.1- */
5 } 5 }
6 6
7 .iconfont { 7 .iconfont {
@@ -45,7 +45,7 @@ module.exports = { @@ -45,7 +45,7 @@ module.exports = {
45 }] 45 }]
46 }, 46 },
47 resolve: { 47 resolve: {
48 - extensions: ['', '.vue', '.js'], 48 + extensions: ['', '.vue', '.json', '.js'],
49 modulesDirectories: ['node_modules', './vue'] 49 modulesDirectories: ['node_modules', './vue']
50 }, 50 },
51 plugins: [ 51 plugins: [