From 09730018403c4a6e21e70f94f6849676f266f96e Mon Sep 17 00:00:00 2001 From: cha0s Date: Tue, 1 Dec 2020 15:32:49 -0600 Subject: [PATCH] refactor: build and config --- template/.mocharc.js | 5 +++++ template/.neutrinorc.js | 4 +--- template/latus.default.yml | 16 ++++++++++------ 3 files changed, 16 insertions(+), 9 deletions(-) create mode 100644 template/.mocharc.js diff --git a/template/.mocharc.js b/template/.mocharc.js new file mode 100644 index 0000000..f9f578e --- /dev/null +++ b/template/.mocharc.js @@ -0,0 +1,5 @@ +const neutrino = require('neutrino'); + +process.env.NODE_ENV = process.env.NODE_ENV || 'test'; + +module.exports = neutrino().mocha(); diff --git a/template/.neutrinorc.js b/template/.neutrinorc.js index 7c73049..1359032 100644 --- a/template/.neutrinorc.js +++ b/template/.neutrinorc.js @@ -21,9 +21,7 @@ module.exports = { clean({ cleanOnceBeforeBuildPatterns: ['**/*.hot-update.*'], }), - mocha({ - spec: `src/**/*.spec.js`, - }), + mocha(), node(), (neutrino) => { neutrino.config diff --git a/template/latus.default.yml b/template/latus.default.yml index 5a22d0d..5078d14 100644 --- a/template/latus.default.yml +++ b/template/latus.default.yml @@ -1,7 +1,11 @@ -plugins: [ - '@latus/http', -] - -config: { - 'clientPlugins': [], +'@latus/http': { + 'httpServerRequestMiddleware': [ + '@latus/http/passport', + ] } + +'@latus/http/passport': {} + +'@latus/react': {} + +'@latus/repl': {}