Skip to content

Commit

Permalink
chore(package.json): npm run start to start development. npm run buil…
Browse files Browse the repository at this point in the history
…d to build project

npm run start should open http-server to serve coverage pages and watch src folder for changes, any
change will trigger npm run build, and postbuild will trigger npm run test.
  • Loading branch information
Bernhelm committed Feb 3, 2016
1 parent 7207eca commit 8bc51f5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ before_install:
before_script:
- npm prune
script:
- npm run test
- npm run build
after_success:
- npm run semantic-release
branches:
Expand Down
3 changes: 2 additions & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ module.exports = function(config) {
],

// Coverage reporter generates the coverage
reporters: ['progress', 'dots', 'coverage'],
reporters: [/*'progress',*/ 'dots', 'coverage'],

// Source files that you wanna generate coverage for.
// Do not include tests or libraries (these files will be instrumented by Istanbul)
Expand All @@ -86,6 +86,7 @@ module.exports = function(config) {

if (process.env.TRAVIS) {
configuration.browsers = ['Chrome_travis_ci'];
configuration.reporters = ['progress', 'dots', 'coverage'];
}

config.set(configuration);
Expand Down
21 changes: 13 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,24 +26,29 @@
"karma-chrome-launcher": "0.2.2",
"karma-coverage": "0.5.3",
"karma-jasmine": "0.3.7",
"parallelshell": "2.0.0",
"remap-istanbul": "0.5.1",
"semantic-release": "4.3.5",
"systemjs": "0.19.18",
"traceur": "0.0.96",
"tsd": "0.6.5",
"typescript": "1.7.5"
"typescript": "1.7.5",
"watch": "0.17.1"
},
"scripts": {
"start": "npm run test",
"pretest": "npm run build",
"test": "karma start karma.conf.js",
"posttest": "node_modules/.bin/remap-istanbul -i coverage/coverage-final.json -o coverage -t html",
"prebuild": "rm -rf dist && mkdir dist",
"build": "rm -rf dist && tsc -p src",
"prebuild": "npm run clean && mkdir dist",
"build": "tsc -p src",
"postbuild": "npm run test",
"clean": "rm -rf dist",
"commit": "git-cz",
"coverage": "http-server -c-1 -o -p 9875 ./coverage",
"start": "parallelshell 'npm run watch:ts' 'npm run start:coverage-server'",
"start:coverage-server": "http-server -c-1 -o -p 9875 ./coverage",
"test": "karma start karma.conf.js",
"posttest": "remap-istanbul -i coverage/coverage-final.json -o coverage -t html",
"report-coverage": "cat ./coverage/lcov.info | codecov",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"watch:ts": "watch 'npm run build' src"
},
"engines": {
"node": ">=0.8.0"
Expand Down
1 change: 0 additions & 1 deletion src/vg-controls/vg-mute/vg-mute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ export class VgMute implements OnInit {
onClick() {
var volume = this.getVolume();

console.log('volume', volume);
if (volume === 0) {
this.target.volume = this.currentVolume;
}
Expand Down

0 comments on commit 8bc51f5

Please sign in to comment.