refactor: build and config
This commit is contained in:
parent
0aeaf466ab
commit
0973001840
5
template/.mocharc.js
Normal file
5
template/.mocharc.js
Normal file
|
@ -0,0 +1,5 @@
|
|||
const neutrino = require('neutrino');
|
||||
|
||||
process.env.NODE_ENV = process.env.NODE_ENV || 'test';
|
||||
|
||||
module.exports = neutrino().mocha();
|
|
@ -21,9 +21,7 @@ module.exports = {
|
|||
clean({
|
||||
cleanOnceBeforeBuildPatterns: ['**/*.hot-update.*'],
|
||||
}),
|
||||
mocha({
|
||||
spec: `src/**/*.spec.js`,
|
||||
}),
|
||||
mocha(),
|
||||
node(),
|
||||
(neutrino) => {
|
||||
neutrino.config
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
plugins: [
|
||||
'@latus/http',
|
||||
]
|
||||
|
||||
config: {
|
||||
'clientPlugins': [],
|
||||
'@latus/http': {
|
||||
'httpServerRequestMiddleware': [
|
||||
'@latus/http/passport',
|
||||
]
|
||||
}
|
||||
|
||||
'@latus/http/passport': {}
|
||||
|
||||
'@latus/react': {}
|
||||
|
||||
'@latus/repl': {}
|
||||
|
|
Loading…
Reference in New Issue
Block a user