Skip to content

Commit d7df657

Browse files
committed
feat(common): updated module matrix
1 parent 9220e0a commit d7df657

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

recipes/moduleMatrix.js

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
1+
const react = ['react', 'react-dom', 'prop-types']
2+
const webpack = ['webpack', 'webpack-cli', 'webpack-dev-server']
3+
const webpackPlugins = ['html-webpack-plugin', 'copy-webpack-plugin']
4+
const webpackLoaders = ['@svgr/webpack', 'babel-loader', 'file-loader']
5+
const babel = ['@babel/core', '@babel/preset-env', '@babel/preset-react']
6+
17
module.exports = {
2-
react: ['react', 'react-dom', 'react-intl', 'prop-types'],
8+
react: [...react],
9+
reactWithI18n: [...react, 'react-intl'],
310
router: ['react-router-dom', 'history'],
411
utils: ['axios', 'lodash'],
512
redux: ['redux', 'react-redux'],
613
form: ['react-hook-form', '@hookform/resolvers', 'yup'],
714
materialUi: ['@material-ui/core', '@material-ui/icons', '@material-ui/styles'],
815
reactLib: ['react-content-loader'],
9-
webpack: ['webpack', 'webpack-cli', 'webpack-dev-server'],
10-
webpackPlugins: ['html-webpack-plugin', 'copy-webpack-plugin'],
11-
webpackLoaders: ['@svgr/webpack', 'babel-loader', 'file-loader'],
12-
babel: ['@babel/core', '@babel/preset-env', '@babel/preset-react'],
16+
webpack,
17+
webpackPlugins,
18+
webpackLoaders,
19+
babel,
20+
slimDev: [...webpack, ...webpackPlugins, ...webpackLoaders, ...babel],
1321
husky: 'npm i -D husky',
1422
eslint: 'npx install-peerdeps --dev eslint-config-airbnb',
1523
prettier: 'npm install --save-dev --save-exact prettier && npm i -D eslint-config-prettier'

0 commit comments

Comments
 (0)