Switch the generation of everything so we generate tests and they can actually pass.

This commit is contained in:
Justin Niessner
2015-03-26 23:09:45 -04:00
parent 3cf4d739e3
commit 53b262ae3c
11 changed files with 70 additions and 26 deletions
+3 -1
View File
@@ -31,7 +31,9 @@ module.exports = {
extensions: ['', '.js'],
alias: {
'styles': '../../../src/styles',
'components': '../../../src/scripts/components/'
'components': '../../../src/scripts/components/'<% if(flux) { %>,
'stores': '../../../src/scripts/stores/',
'actions': '../../../src/scripts/actions/'<% } %>
}
},
module: {
+3 -1
View File
@@ -36,7 +36,9 @@ module.exports = {
extensions: ['', '.js'],
alias: {
'styles': '../../../src/styles',
'components': '../../../src/scripts/components/'
'components': '../../../src/scripts/components/'<% if(flux) { %>,
'stores': '../../../src/scripts/stores/',
'actions': '../../../src/scripts/actions/'<% } %>
}
},
+9 -3
View File
@@ -8,10 +8,14 @@ module.exports = function (config) {
frameworks: ['jasmine'],
files: [
'test/helpers/**/*.js',
'test/spec/components/**/*.js'
'test/spec/components/**/*.js'<% if(flux) { %>,
'test/spec/stores/**/*.js',
'test/spec/actions/**/*.js'<% } %>
],
preprocessors: {
'test/spec/components/**/*.js': ['webpack']
'test/spec/components/**/*.js': ['webpack']<% if(flux) { %>,
'test/spec/stores/**/*.js': ['webpack'],
'test/spec/actions/**/*.js': ['webpack']<% } %>
},
webpack: {
cache: true,
@@ -48,7 +52,9 @@ module.exports = function (config) {
resolve: {
alias: {
'styles': path.join(process.cwd(), './src/styles/'),
'components': path.join(process.cwd(), './src/scripts/components/')
'components': path.join(process.cwd(), './src/scripts/components/')<% if(flux) { %>,
'stores': '../../../src/scripts/stores/',
'actions': '../../../src/scripts/actions/'<% } %>
}
}
},