A lightweight boilerplate to get up and running with TypeScript, Tailwind CSS, Twin, Styled Components, ESLint with Airbnb/Prettier set up with Next.js.
You can generate your own repo from this template by using this link.
You can also clone this repository by using the command line:
git clone https://github.com/vinhvn/next-typescript-twin-styled-eslint-starter app
cd app
yarn # npm i
Remember to install dependencies after cloning it locally.
yarn dev # npm run dev
The stage
script will build and start a production server.
yarn stage # npm run stage
Alternatively you can run:
yarn build # npm run build
yarn start # npm start
The export
script will build the files to be served statically. Note that this comes with some caveats.
yarn export # npm run export
- Be sure to update the
package.json
to include your own information for the project you're working on.