latus/config/.neutrinorc.js

35 lines
793 B
JavaScript
Raw Normal View History

2020-11-30 06:28:29 -06:00
const airbnbBase = require('@neutrinojs/airbnb-base');
const library = require('@neutrinojs/library');
const mocha = require('@neutrinojs/mocha');
2020-12-02 16:34:52 -06:00
module.exports = () => ({
options: {},
2020-11-30 06:28:29 -06:00
use: [
(neutrino) => {
neutrino.options.output = '.';
},
airbnbBase({
eslint: {
cache: false,
baseConfig: require(`${__dirname}/.eslint.defaults`),
},
}),
(neutrino) => {
const {name} = neutrino.options.packageJson;
library({
clean: false,
name,
target: 'node',
})(neutrino);
},
(neutrino) => {
const options = neutrino.config.module
.rule('compile')
.use('babel')
.get('options');
options.presets[0][1].targets = {esmodules: true};
},
mocha(),
],
2020-12-02 16:34:52 -06:00
});