lifeifan 7 years ago
parent
commit
8f847be859
3 changed files with 7 additions and 3 deletions
  1. 1 1
      .travis.yml
  2. 4 0
      README.md
  3. 2 2
      package.json

+ 1 - 1
.travis.yml

@@ -4,5 +4,5 @@ node_js:
   - '8'
 cache: npm
 script:
-  - npm run test
+  - npm test
   - npm run coveralls

+ 4 - 0
README.md

@@ -33,6 +33,10 @@
 
 > 你还可以订阅: https://github.com/jdf2e/nutui/releases.atom 来获得稳定版发布的通知。
 
+## 示例
+
+![扫码体验](http://img13.360buyimg.com/uba/s320x320_jfs/t1/14144/37/3433/5890/5c26d976E7cd98b80/94583409233081cc.jpg)
+
 ## 安装使用
 
 具体安装使用方法请参考 NutUI 官网 http://nutui.jd.com

+ 2 - 2
package.json

@@ -24,8 +24,8 @@
     "build": "npm run build:prod && npm run build:prodmin && npm run build:disp",
     "eslint": "eslint src/packages/**/*.{js,vue}",
     "add": "node scripts/createCptTpl.js",
-    "test": "cross-env NODE_ENV=test  mocha-webpack --webpack-config build/webpack.test.conf.js --require test/setup.js src/packages/*/__test__/**.spec.js",
-    "cover": "cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text npm run test",
+    "test": "cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text  mocha-webpack --webpack-config build/webpack.test.conf.js --require test/setup.js src/packages/*/__test__/**.spec.js",
+    "coveralls": "cat ./coverage/lcov.info | coveralls",
     "test:watch": "npm run test --watch"
   },
   "repository": {