A boilerplate using Next.js and Typescript. There is also 'with-typescript' example in Next.js repository. But that's crap, because that examples make compiled files and source files be same place.
git clone --depth=1 https://github.com/pueue/nextjs-typescript-boilerplate.git
cd nextjs-typescript-boilerplate && npm install
npm run devgit clone https://github.com/pueue/nextjs-typescript-boilerplate.gitcd nextjs-typescript-boilerplatenpm installnpm run dev- For production, run
npm run buildandnpm start
.
├── src/
│ ├── components/
│ ├── pages/
│ └── types/
├── static/
├── tsconfig.json
├── tslint.json
└── yarn.lock