https://github.com/mattcarlotta/next-issg-example
https://github.com/mattcarlotta/next-issg-example
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mattcarlotta/next-issg-example
- Owner: mattcarlotta
- License: mit
- Archived: true
- Created: 2020-10-01T22:18:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-08T21:24:47.000Z (over 4 years ago)
- Last Synced: 2024-10-28T23:33:18.424Z (7 months ago)
- Language: TypeScript
- Size: 2.78 MB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - mattcarlotta/next-issg-example - (TypeScript)
README
# Incremental Static Site Generation Example
An example of how to intregate iSSG with an API.
This project was bootstrapped from
| `yarn ` | Description |
| ---------------- | ------------------------------------------------------------------------------------------------ |
| `analyze` | Compiles `src` app and spawns webpack chunk distribution charts for production. |
| `build` | Compiles `src` app to `.next/static` and `api` to `dist` for production. |
| `build:staging` | Compiles `src` app to `.next/static` and `api` to `dist` for staging. |
| `dev` | Starts development servers (`localhost:3000` for app and `localhost:5000` for api). |
| `lint` | Lints all `.ts`/`.tsx` files in `src`. |
| `lint:api` | Lints all `.ts` files in `api`. |
| `start` | Starts production servers (must run `build` first). |
| `start:staging` | Starts staging servers (must run `build:staging` first). |
| `test` | Runs `.test.tsx` files in `src` once. |
| `test:cov` | Runs `.test.tsx` files in `src` with code coverage. |
| `test:e2e` | Runs cypress `.spec.js` files in `e2e` in a browser (run `build:staging`/`start:staging` first). |
| `test:e2erun` | Runs cypress `.spec.js` files in `e2e` headlessly. |
| `test:watch` | Runs and watches `.tsx` files in `src` that have changed since last commit. |
| `test:watchall` | Runs and watches all `.test.jsx` files in `src`. |