forked from mozilla-frontend-infra/codetribute
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.neutrinorc.js
63 lines (62 loc) · 1.61 KB
/
.neutrinorc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
const images = require('@neutrinojs/image-loader');
module.exports = {
use: [
['@mozilla-frontend-infra/react-lint', {
parserOptions: {
ecmaFeatures: {
legacyDecorators: true
}
},
rules: {
'react/no-access-state-in-setstate': 'off',
'babel/no-unused-expressions': 'off',
}
}],
['@neutrinojs/react', {
image: {
limit: 1,
},
html: {
title: 'Codetribute',
meta: [
{
name: 'Description',
content: 'Find your first code contribution with Mozilla',
},
],
favicon: './src/static/favicon.png',
},
devServer: {
port: 5000,
historyApiFallback: { disableDotRule: true },
},
env: {
GITHUB_PERSONAL_API_TOKEN : '',
BUGZILLA_ENDPOINT : 'http://localhost:3090',
},
babel: {
plugins: [
[require.resolve('@babel/plugin-proposal-decorators'), { legacy: true }],
[require.resolve('@babel/plugin-proposal-class-properties'), { loose: true }],
],
},
}],
(neutrino) => {
neutrino.config.module
.rule('js-yaml')
.test(/\.(yaml|yml)$/)
.use('js-yaml-loader')
.options({ safe: true })
.loader(require.resolve('js-yaml-loader'));
neutrino.config.module
.rule('graphql')
.test(/\.graphql$/)
.include
.add(neutrino.options.source)
.end()
.use('gql-loader')
.loader(require.resolve('graphql-tag/loader'));
},
'@neutrinojs/jest'
],
};