This setting used by This Repository
- Yarn2 with PnP
- NextJS with TypeScript
- Enable MDX
- Storybook on Webpack5 with Sass (Using @storybook/preset-scss)
- If you load in
/publicdirectory's image, for example:- If You want
/public/logo.png - Then you use
/logo.png - example:
<Image src="/logo.png" alt="alt" width={30} height={30} />
- If You want
- If you load in
- Jest (coverage 100%)
- Cypress
- ESLint with airbnb-typescript rules
- Github Actions (Coverage, E2E, Deploy gh-pages and storybook)
- Using Husky
- Auto update patch version before commit
- Check Lint, Coverage, E2E before push
package.jsonline 2 - project namenext.config.jsline 4, 5 - production url and path/public/favicon.icoand/public/icon-*.png/public/manifest.jsonline 5~9 - application information/pages/_document.tsxline 10 - lang/pages/_app.tsxline 17, 20 - description, title
yarn && yarn postinstallyarn devyarn lintyarn test
yarn test:watch
yarn test:coverageyarn cypress
yarn cypress:headless
yarn e2e
yarn e2e:headlessyarn storybook
yarn build-storybookyarn build
yarn start
yarn export