refactor: build and config

This commit is contained in:
cha0s 2020-12-01 15:32:49 -06:00
parent 0aeaf466ab
commit 0973001840
3 changed files with 16 additions and 9 deletions

5
template/.mocharc.js Normal file
View File

@ -0,0 +1,5 @@
const neutrino = require('neutrino');
process.env.NODE_ENV = process.env.NODE_ENV || 'test';
module.exports = neutrino().mocha();

View File

@ -21,9 +21,7 @@ module.exports = {
clean({
cleanOnceBeforeBuildPatterns: ['**/*.hot-update.*'],
}),
mocha({
spec: `src/**/*.spec.js`,
}),
mocha(),
node(),
(neutrino) => {
neutrino.config

View File

@ -1,7 +1,11 @@
plugins: [
'@latus/http',
]
config: {
'clientPlugins': [],
'@latus/http': {
'httpServerRequestMiddleware': [
'@latus/http/passport',
]
}
'@latus/http/passport': {}
'@latus/react': {}
'@latus/repl': {}