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

Commit

Permalink
👕 refactor: fix some tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Dec 28, 2016
1 parent c52059d commit 2e74b77
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion template/README.md
@@ -1,7 +1,7 @@
# {{ name }}

{{#if_eq coverageConfig "coveralls"}}[![Coverage Status](https://coveralls.io/repos/github/{{ githubAccount }}/{{ name }}/badge.svg?branch={{ branch }})](https://coveralls.io/github/{{ githubAccount }}/{{ name }}?branch={{ branch }}){{/if_eq}}
{{#if_eq coverageConfig "codecov"}}[![codecov](https://codecov.io/gh/{{ githubAccount }}/{{ name }}/branch/{{ branch }}/graph/badge.svg)](https://codecov.io/gh/{{ githubAccount }}/{{ branch }}){{/if_eq}}
{{#if_eq coverageConfig "codecov"}}[![codecov](https://codecov.io/gh/{{ githubAccount }}/{{ name }}/branch/{{ branch }}/graph/badge.svg)](https://codecov.io/gh/{{ githubAccount }}/{{ name }}){{/if_eq}}
[![npm](https://img.shields.io/npm/v/{{ name }}.svg)](https://www.npmjs.com/package/{{ name }})
[![vue2](https://img.shields.io/badge/vue-2.x-brightgreen.svg)](https://vuejs.org/)

Expand Down
1 change: 0 additions & 1 deletion template/config/build.js
@@ -1,7 +1,6 @@
const fs = require('fs')
const exist = fs.existsSync
const mkdir = fs.mkdirSync
const pack = require('../package.json')
const getAllEntries = require('./entry').getAllEntries
const build = require('./bundle')

Expand Down
2 changes: 1 addition & 1 deletion template/config/karma.cover.conf.js
Expand Up @@ -8,7 +8,7 @@ module.exports = config => {
reporters: [
{ type: 'lcov', dir: '../coverage', subdir: '.' },
{ type: 'text-summary', dir: '../coverage', subdir: '.' }
}]
]
},
singleRun: true
})
Expand Down
6 changes: 3 additions & 3 deletions template/config/karma.coveralls.conf.js
Expand Up @@ -6,15 +6,15 @@ module.exports = config => {
reporters: ['coverage', 'coveralls'],
coverageReporter: {
reporters: [{
type: 'lcov', dir: '../coverage'
type: 'lcov', dir: '../coverage', subdir: '.'
}]
},
singleRun: true
})

// add babel-plugin-coverage for code intrumentation
// add babel-plugin-istanbul for code intrumentation
options.webpack.babel = {
plugins: [['coverage', { ignore: ['test/'] }]]
plugins: [['istanbul', { exclude: ['test/'] }]]
}

config.set(options)
Expand Down

0 comments on commit 2e74b77

Please sign in to comment.