bem.js
Version:
DOM selection and manipulation using BEM (Block, Element, Modifier).
24 lines (19 loc) • 463 B
JavaScript
var gulp = require('gulp');
var Server = require('karma').Server;
/**
* Run test once and exit
*/
gulp.task('test', function (done) {
new Server({
configFile: __dirname + '/../../karma.conf.js',
singleRun: true
}, done).start();
});
/**
* Watch for file changes and re-run tests on each change
*/
gulp.task('tdd', function (done) {
new Server({
configFile: __dirname + '/../../karma.conf.js',
}, done).start();
});