# scaffolding-nextjs

> Templates that aid in the development of NextJS applications.

Latest version **2.1.14** (published 2021-09-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install scaffolding-nextjs
pnpm add scaffolding-nextjs
yarn add scaffolding-nextjs
bun add scaffolding-nextjs
```

Provides the command `foldit`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.14 |
| Published | 2021-09-20 |
| First published | 2021-01-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 14 |
| Unpacked size | 48.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Rob Sawyer |
| Maintainers | robksawyer |
| Keywords | scaffolds, templates, nextjs |

## Links

- npm: https://www.npmjs.com/package/scaffolding-nextjs
- Repository: https://github.com/robksawyer/scaffolding-nextjs
- Homepage: https://github.com/robksawyer/scaffolding-nextjs#readme
- Issues: https://github.com/robksawyer/scaffolding-nextjs/issues
- npm.io page: https://npm.io/package/scaffolding-nextjs

## Dependencies (14)

- [dopl](https://npm.io/package/dopl.md) ^0.2.0
- [path](https://npm.io/package/path.md) ^0.12.7
- [chalk](https://npm.io/package/chalk.md) ^3.0.0
- [colors](https://npm.io/package/colors.md) ^1.4.0
- [pkgpath](https://npm.io/package/pkgpath.md) ^0.1.1
- [entities](https://npm.io/package/entities.md) ^2.0.0
- [minimist](https://npm.io/package/minimist.md) ^1.2.0
- [packpath](https://npm.io/package/packpath.md) ^0.1.0
- [commander](https://npm.io/package/commander.md) ^4.0.1
- [@babel/cli](https://npm.io/package/@babel/cli.md) ^7.7.7
- [@babel/core](https://npm.io/package/@babel/core.md) ^7.7.5
- [@babel/node](https://npm.io/package/@babel/node.md) ^7.7.4
- [child_process](https://npm.io/package/child_process.md) ^1.0.2
- [@babel/preset-env](https://npm.io/package/@babel/preset-env.md) ^7.7.6

## Recent versions

- 2.1.14 (latest) — 2021-09-20
- 2.1.12 — 2021-09-20
- 2.1.11 — 2021-09-20
- 2.1.10 — 2021-07-21
- 2.1.9 — 2021-07-21
- 2.1.8 — 2021-07-11
- 2.1.7 — 2021-07-11
- 2.1.6 — 2021-07-11
- 2.1.5 — 2021-07-11
- 2.1.4 — 2021-07-11
- 2.1.3 — 2021-07-11
- 2.1.2 — 2021-07-11
- 2.1.1 — 2021-07-11
- 2.1.0 — 2021-07-11
- 2.0.4 — 2021-01-13
- … 3 more at https://npm.io/package/scaffolding-nextjs/versions

## README

# NextJS Scaffolding

> Scaffolds aid in the creation of various components used throughout a production application. The following outlines the procedures required in order to use these custom scaffolds.

# Getting started

1. `yarn add scaffolding-nextjs`
1. Update your `package.json` with the following. Point src to where files should be created. The script will reference your base directory automatically, though.

```json
...
"directories": {
  "src": "."
},
...
"scripts": {
  ...
  "app": "foldit -app ",
  "component": "foldit -c ",
  "context": "foldit -x ",
  "api": "foldit -api ",
  "page": "foldit -p ",
  ...
}
```

1. Use it like `yarn component MyNewComponent` or like `./node_modules/.bin/foldit -c MyComponent`

## What are scaffolds?

Scaffolding makes it easy to build consistent components that contain various dependencies i.e., [Stories](https://storybook.js.org/) and [tests](https://jestjs.io/) for the application.

### Scaffolds

You can find all of the templates for the scaffolds inside of `scaffolding`. For example, `scaffold-component/*` files are connected via the file `scaffold-component.js`.

#### \_app

- `./node_modules/.bin/foldit -app`

#### API components

- `./node_modules/.bin/foldit -api `

#### Component

- `./node_modules/.bin/foldit -c Test`

#### Context

- `./node_modules/.bin/foldit -x Test`

#### Pages

- `./node_modules/.bin/foldit -p tests`

#### Storybook Stories

- `./node_modules/.bin/foldit -s MyStory`

## Extending

TODO:

---
_Source: https://npm.io/package/scaffolding-nextjs · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
