Skip to content
This repository has been archived by the owner on Apr 1, 2019. It is now read-only.

Commit

Permalink
add test instructions dependency and scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
klarkc committed Oct 22, 2017
1 parent 36e1d77 commit fc60380
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
8 changes: 8 additions & 0 deletions template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ available in the window['{{name}}'] variable.

`npm run serve`

## Tests

This template uses karma by default, you can change test settings in poi.config.js

`npm run test`
`npm run test:watch`
`npm run test:cov`

## License

This project is licensed under [MIT License](http://en.wikipedia.org/wiki/MIT_License)
6 changes: 5 additions & 1 deletion template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
"build": "poi build --format cjs",
"build:umd": "poi build --format umd",
"build:doc": "vue-styleguidist build",
"serve": "vue-styleguidist server"
"serve": "vue-styleguidist server",
"test": "poi test",
"test:watch": "poi test --watch",
"test:cov": "poi test --coverage",
},
"keywords": [
"vue",
Expand All @@ -28,6 +31,7 @@
"eslint-plugin-vue": "beta",
"node-glob": "^1.2.0",
"poi": "^9.3.10",
"poi-preset-karma": "^9.1.0",
"vue-styleguidist": "^1.2.5",
"vue-webpack-loaders": "^1.0.6",
"webpack": "^3.1.0"
Expand Down
1 change: 0 additions & 1 deletion template/poi.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ module.exports = {
files: ['test/specs/**/*.spec.js'],
browsers: ['PhantomJS'],
frameworks: ['mocha', 'sinon-chai', 'phantomjs-shim'],
coverage: true
})
]
};

0 comments on commit fc60380

Please sign in to comment.