React + Typescript + Webpack 기반의 개발환경을 미리 세팅해둔 프로젝트입니다.
$ yarn install --frozen-lockfile
$ yarn dev
$ yarn build
yarn
이 아닌 npm
을 사용해야 하는 경우 synp
을 이용하여 yarn.lock
을 package-lock.json
으로 변환합니다.
$ npx synp --source-file yarn.lock
기존에 있던 yarn.look
삭제
$ rm -rf yarn.look
package-lock.json
을 기준으로 node_modules
생성
$ npm ci
- webpack: https://webpack.js.org/concepts/
- webpack-dev-server: https://webpack.js.org/configuration/dev-server/
- typescript(tsconfig) https://typescript-kr.github.io/pages/compiler-options.html https://www.typescriptlang.org/tsconfig
- eslint(eslintrc) https://eslint.org/docs/2.0.0/user-guide/configuring
- babel(babel.config) https://babeljs.io/docs/en/configuration
- @babel/preset-env https://babeljs.io/docs/en/babel-preset-env
- clean-webpack-plugin: https://github.com/johnagan/clean-webpack-plugin#options-and-defaults-optional
- eslint-webpack-plugin: https://github.com/webpack-contrib/eslint-webpack-plugin#options
- fork-ts-checker-webpack-plugin: https://github.com/TypeStrong/fork-ts-checker-webpack-plugin#options
- friendly-errors-webpack-plugin: https://github.com/geowarin/friendly-errors-webpack-plugin#options
- html-webpack-plugin: https://github.com/jantimon/html-webpack-plugin#options
- terser-webpack-plugin: https://github.com/webpack-contrib/terser-webpack-plugin#options