-
yarn init -y
-
git init
-
React の導入
yarn add react react-dom
-
TypeScript, webpack 関連の導入
yarn add -D @types/react @types/react-dom ts-loader typescript webpack webpack-cli webpack-dev-server html-webpack-plugin
-
webpack.config.js を作成
-
tsconfig.json を作成
-
package.json に scripts を追記
-
/src/index.html を作成
-
/src/index.tsx を作成
-
サーバーで動かす
yarn start
(ビルドyarn build
) -
eslint, prettier を追加
yarn add -D @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint eslint-config-prettier eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks prettier
-
.eslintrc.json, .eslintignore を作成
-
.prettierrc.json, .prettierignore を作成
-
styled-components を追加
yarn add styled-components
yarn add -D @types/styled-components
-
storybook を追加
npx sb init
-
Notifications
You must be signed in to change notification settings - Fork 0
okayu8/react-typescript-env-sample
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
React + TypeScript(2020/12)の環境構築サンプル
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published