angular2-infinite-scroll
Advanced tools
Comparing version 0.1.92 to 0.1.93
@@ -15,4 +15,4 @@ { | ||
"indent": [ | ||
2, | ||
"spaces" | ||
"error", | ||
2 | ||
], | ||
@@ -44,2 +44,2 @@ "quotes": [ | ||
"extends": "eslint:recommended" | ||
} | ||
} |
const isDebug = process.env.DEBUG || false; | ||
const isTravis = process.env.TRAVIS || false; | ||
// const isTravis = process.env.TRAVIS || false; | ||
const browsers = isDebug ? ['Chrome'] : ['PhantomJS']; | ||
const hasSingleRunAsSwitch = process.argv.filter(s => s.includes('single-run')); | ||
const singleRun = isTravis || hasSingleRunAsSwitch[0] ? true : false; | ||
const isBddMode = process.argv.filter(s => s.includes('bdd')); | ||
const singleRun = isBddMode.length ? false : true; | ||
@@ -59,6 +59,6 @@ module.exports = function(config) { | ||
plugins : [ | ||
'karma-jasmine', | ||
'karma-mocha-reporter', | ||
'karma-chrome-launcher', | ||
'karma-phantomjs-launcher' | ||
'karma-jasmine', | ||
'karma-mocha-reporter', | ||
'karma-chrome-launcher', | ||
'karma-phantomjs-launcher' | ||
], | ||
@@ -72,3 +72,3 @@ reporters: ['mocha'], | ||
singleRun: singleRun | ||
}) | ||
} | ||
}); | ||
}; |
{ | ||
"name": "angular2-infinite-scroll", | ||
"version": "0.1.92", | ||
"version": "0.1.93", | ||
"description": "An infinite scroll directive for angular2", | ||
@@ -9,5 +9,8 @@ "main": "angular2-infinite-scroll.js", | ||
"scripts": { | ||
"preversion": "npm run clean && npm run prepublish && npm test", | ||
"version": "git add ./", | ||
"postversion": "git push origin master", | ||
"start": "npm run build && npm run lite", | ||
"lite": "lite-server", | ||
"prepublish": "tsc & node make.js", | ||
"prepublish": "tsc && node make.js", | ||
"postinstall": "npm run typings -- install", | ||
@@ -19,3 +22,3 @@ "clean": "rimraf src/*.js && rimraf src/*.d.ts && rimraf ./*scroll.js && rimraf ./*scroll.d.ts", | ||
"test": "karma start karma.conf.js", | ||
"dev": "npm run watch & npm test", | ||
"dev": "npm run watch & karma start karma.conf.js --bdd", | ||
"typings": "typings" | ||
@@ -22,0 +25,0 @@ }, |
6561
311045
29