Updating karma-browserify

This required updating import paths in the spec files
This commit is contained in:
Jeff Avallone 2015-10-31 12:09:38 -04:00
parent f04362cced
commit c90d09a1e0
25 changed files with 41 additions and 38 deletions

View File

@ -29,13 +29,12 @@ module.exports = {
sourcemap: true
},
browserify: {
basedir: './src/js',
debug: true,
fullPaths: false,
entries: [es6ify.runtime],
prebundle: function(bundle) {
bundle.transform(require('./lib/canopy-transform'));
bundle.transform(es6ify.configure(/^(?!.*node_modules)+.+\.js$/));
}
},
prebundle: function(bundle) {
bundle.transform(require('./lib/canopy-transform'));
bundle.transform(es6ify.configure(/^(?!.*node_modules)+.+\.js$/));
}
};

View File

@ -91,7 +91,7 @@ gulp.task('scripts', function() {
.pipe(tap(function(file) {
var bundler = browserify(config.browserify);
config.browserify.prebundle(bundler);
config.prebundle(bundler);
bundler.add(file.path);

View File

@ -21,6 +21,10 @@ module.exports = function(karma) {
browsers: ['Chrome'],
autoWatch: true,
singleRun: false,
browserify: config.browserify
browserify: _.extend({
configure: function(bundle) {
config.prebundle(bundle);
}
}, config.browserify)
});
};

View File

@ -24,7 +24,7 @@
"gulp-wrap": "^0.11.0",
"jasmine-core": "^2.3.4",
"karma": "^0.13.14",
"karma-browserify": "^1.0.1",
"karma-browserify": "^4.4.0",
"karma-chrome-launcher": "^0.2.1",
"karma-jasmine": "^0.3.1",
"karma-notify-reporter": "^0.1.1",

View File

@ -1,4 +1,4 @@
import javascript from 'src/js/parser/javascript/parser.js';
import javascript from '../../../src/js/parser/javascript/parser.js';
describe('parser/javascript/any_character.js', function() {

View File

@ -1,4 +1,4 @@
import javascript from 'src/js/parser/javascript/parser.js';
import javascript from '../../../src/js/parser/javascript/parser.js';
import _ from 'lodash';
import Snap from 'snapsvg';

View File

@ -1,5 +1,5 @@
import javascript from 'src/js/parser/javascript/parser.js';
import util from 'src/js/util.js';
import javascript from '../../../src/js/parser/javascript/parser.js';
import util from '../../../src/js/util.js';
import _ from 'lodash';
describe('parser/javascript/charset_range.js', function() {

View File

@ -1,6 +1,6 @@
import javascript from 'src/js/parser/javascript/parser.js';
import Node from 'src/js/parser/javascript/node.js';
import util from 'src/js/util.js';
import javascript from '../../../src/js/parser/javascript/parser.js';
import Node from '../../../src/js/parser/javascript/node.js';
import util from '../../../src/js/util.js';
import _ from 'lodash';
import Snap from 'snapsvg';

View File

@ -1,4 +1,4 @@
import javascript from 'src/js/parser/javascript/parser.js';
import javascript from '../../../src/js/parser/javascript/parser.js';
import _ from 'lodash';
import Snap from 'snapsvg';

View File

@ -1,4 +1,4 @@
import javascript from 'src/js/parser/javascript/parser.js';
import javascript from '../../../src/js/parser/javascript/parser.js';
import Snap from 'snapsvg';
describe('parser/javascript/literal.js', function() {

View File

@ -1,4 +1,4 @@
import javascript from 'src/js/parser/javascript/parser.js';
import javascript from '../../../src/js/parser/javascript/parser.js';
import _ from 'lodash';
import Snap from 'snapsvg';

View File

@ -1,5 +1,5 @@
import javascript from 'src/js/parser/javascript/parser.js';
import util from 'src/js/util.js';
import javascript from '../../../src/js/parser/javascript/parser.js';
import util from '../../../src/js/util.js';
import _ from 'lodash';
import Snap from 'snapsvg';

View File

@ -1,4 +1,4 @@
import Node from 'src/js/parser/javascript/node.js';
import Node from '../../../src/js/parser/javascript/node.js';
import Snap from 'snapsvg';
describe('parser/javascript/node.js', function() {

View File

@ -1,4 +1,4 @@
import ParserState from 'src/js/parser/javascript/parser_state.js';
import ParserState from '../../../src/js/parser/javascript/parser_state.js';
describe('parser/javascript/parser_state.js', function() {

View File

@ -1,5 +1,5 @@
import javascript from 'src/js/parser/javascript/parser.js';
import util from 'src/js/util.js';
import javascript from '../../../src/js/parser/javascript/parser.js';
import util from '../../../src/js/util.js';
import _ from 'lodash';
import Snap from 'snapsvg';

View File

@ -1,4 +1,4 @@
import javascript from 'src/js/parser/javascript/parser.js';
import javascript from '../../../src/js/parser/javascript/parser.js';
describe('parser/javascript/repeat_any.js', function() {

View File

@ -1,4 +1,4 @@
import javascript from 'src/js/parser/javascript/parser.js';
import javascript from '../../../src/js/parser/javascript/parser.js';
describe('parser/javascript/repeat_optional.js', function() {

View File

@ -1,4 +1,4 @@
import javascript from 'src/js/parser/javascript/parser.js';
import javascript from '../../../src/js/parser/javascript/parser.js';
describe('parser/javascript/repeat_required.js', function() {

View File

@ -1,4 +1,4 @@
import javascript from 'src/js/parser/javascript/parser.js';
import javascript from '../../../src/js/parser/javascript/parser.js';
import _ from 'lodash';
import Snap from 'snapsvg';

View File

@ -1,4 +1,4 @@
import javascript from 'src/js/parser/javascript/parser.js';
import javascript from '../../../src/js/parser/javascript/parser.js';
describe('parser/javascript/repeat_spec.js', function() {

View File

@ -1,4 +1,4 @@
import javascript from 'src/js/parser/javascript/parser.js';
import javascript from '../../../src/js/parser/javascript/parser.js';
import Snap from 'snapsvg';
import _ from 'lodash';

View File

@ -1,5 +1,5 @@
import javascript from 'src/js/parser/javascript/parser.js';
import Node from 'src/js/parser/javascript/node.js';
import javascript from '../../../src/js/parser/javascript/parser.js';
import Node from '../../../src/js/parser/javascript/node.js';
import _ from 'lodash';
import Snap from 'snapsvg';

View File

@ -1,5 +1,5 @@
import Parser from 'src/js/parser/javascript.js';
import regexpParser from 'src/js/parser/javascript/grammar.peg';
import Parser from '../../src/js/parser/javascript.js';
import regexpParser from '../../src/js/parser/javascript/grammar.peg';
import Snap from 'snapsvg';
describe('parser/javascript.js', function() {

View File

@ -1,6 +1,6 @@
import util from 'src/js/util.js';
import Regexper from 'src/js/regexper.js';
import Parser from 'src/js/parser/javascript.js';
import util from '../src/js/util.js';
import Regexper from '../src/js/regexper.js';
import Parser from '../src/js/parser/javascript.js';
import Snap from 'snapsvg';
describe('regexper.js', function() {

View File

@ -1,4 +1,4 @@
import util from 'src/js/util.js';
import util from '../src/js/util.js';
describe('util.js', function() {