first commit
This commit is contained in:
35
spec/javascripts/karma.config.js
Normal file
35
spec/javascripts/karma.config.js
Normal file
@@ -0,0 +1,35 @@
|
||||
module.exports = function (config) {
|
||||
config.set({
|
||||
browsers: ['Chrome'],
|
||||
files: [
|
||||
{
|
||||
pattern: 'test_index.js', watched: false
|
||||
}
|
||||
],
|
||||
frameworks: ['jasmine'],
|
||||
preprocessors: {
|
||||
'test_index.js': ['webpack', 'sourcemap']
|
||||
},
|
||||
webpack: {
|
||||
devtool: 'inline-source-map',
|
||||
module: {
|
||||
loaders: [
|
||||
{
|
||||
test: /\.js/,
|
||||
exclude: /node_modules/,
|
||||
loader: 'babel-loader'
|
||||
},
|
||||
{
|
||||
// That will tell Webpack that EaselJS refers to `window` with `this` and exports `window.createjs`.
|
||||
test: /easeljs\.js$/,
|
||||
loader: 'imports?this=>window!exports?window.createjs'
|
||||
}
|
||||
]
|
||||
},
|
||||
watch: true
|
||||
},
|
||||
webpackServer: {
|
||||
noInfo: true
|
||||
}
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user