mirror of
https://github.com/wassname/generator-react-webpack.git
synced 2026-09-11 12:10:36 +08:00
Switch the generation of everything so we generate tests and they can actually pass.
This commit is contained in:
@@ -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: {
|
||||
|
||||
@@ -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/'<% } %>
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -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/'<% } %>
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user