Next.js build with TypeScript support
For detailed explanation on how things work, check out Next.js docs.
To learn more about the TypeScript build, visit Next TypeScript.
- What's included
- Integrations
- Requirements
- Installation
- Development
- Production
- Deployment
- Testing
- Documentation
- Links
- License
- Babel
- Cypress
- Emotion
- ESLint
- Husky
- Jest
- Next.js
- Prettier
- React
- React-axe
- Remark
- Stylelint
- TypeScript
$ npm run install
$ npm run dev
Default location: http://localhost:3000/
$ npm run build
Files will be generated in the .next
folder.
$ npm start
Default location: http://localhost:3000/
$ npm run build
$ npm run export
Files will be generated in the dist
folder.
- Sign-up or log-in to Netlify
- Create a new site from Git using your own copy of this repository
- Choose an owner and a branch to deploy from
- Change the following settings in the build options:
- Build command:
npm run export
- Publish directory:
dist/
- Build command:
- Click on
Deploy site
to publish
View the documentation for more details on how to set up and deploy your project.
See the demo site on Netlify.
- Sign-up or log-in to ZEIT Now
- Install the Now CLI and log-in to the service in your terminal:
$ npm install -g now $ now login
- Enter your email address
- Click on the confirmation link when you receive it in your inbox
- After you've verified your account, you can deploy the site with:
$ now --prod
View the documentation for more details on how to set up and deploy your project.
See the demo site on ZEIT Now.
All test related files are located under __tests__
, except a few configs which are found in the root of the project.
$ npm test
This will run both the end-to-end tests as well as the unit tests.
$ npm run test:coverage
A full coverage report will be generated in the coverage
folder. To access it, open the
index.html
file in your browser, which is located in the lcov-report
folder.
$ npm run test:e2e
This will run all tests without generating any additional files.
Alternatively, if you want Cypress to create screenshots and a video of what it sees, use the following command:
$ npm run test:e2e:record
Screenshots and videos will be generated in the cypress
folder.
$ npm run test:unit
$ npm run test:update
- Babel documentation
- Cypress documentation
- EditorConfig documentation
- Emotion documentation
- ESLint documentation
- Git documentation
- Husky documentation
- Jest documentation
- Next.js documentation
- Prettier documentation
- React documentation
- Remark documentation
- Stylelint documentation
- TypeScript documentation