An open API service indexing awesome lists of open source software.

https://github.com/mattcarlotta/next-issg-example


https://github.com/mattcarlotta/next-issg-example

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

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`. |