|
| 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 | + |
1 | 7 | module.exports = { |
2 | | - react: ['react', 'react-dom', 'react-intl', 'prop-types'], |
| 8 | + react: [...react], |
| 9 | + reactWithI18n: [...react, 'react-intl'], |
3 | 10 | router: ['react-router-dom', 'history'], |
4 | 11 | utils: ['axios', 'lodash'], |
5 | 12 | redux: ['redux', 'react-redux'], |
6 | 13 | form: ['react-hook-form', '@hookform/resolvers', 'yup'], |
7 | 14 | materialUi: ['@material-ui/core', '@material-ui/icons', '@material-ui/styles'], |
8 | 15 | 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], |
13 | 21 | husky: 'npm i -D husky', |
14 | 22 | eslint: 'npx install-peerdeps --dev eslint-config-airbnb', |
15 | 23 | prettier: 'npm install --save-dev --save-exact prettier && npm i -D eslint-config-prettier' |
|
0 commit comments