@layerframers/scaffolding-nextjs
Templates that aid in the development of NextJS applications.
Last updated 5 months ago by layerframe-developers .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @layerframers/scaffolding-nextjs 
SYNC missed versions from official npm registry.

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 @layerframers/scaffolding-nextjs
  2. Update your package.json with the following. Point src to where files should be created. The script will reference your base directory automatically, though.
...
"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 and tests 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:

Current Tags

  • 1.1.4                                ...           latest (5 months ago)

15 Versions

  • 1.1.4                                ...           5 months ago
  • 1.1.3                                ...           5 months ago
  • 1.1.2                                ...           5 months ago
  • 1.1.1                                ...           5 months ago
  • 1.1.0                                ...           5 months ago
  • 1.0.9                                ...           5 months ago
  • 1.0.8                                ...           5 months ago
  • 1.0.7                                ...           5 months ago
  • 1.0.6                                ...           5 months ago
  • 1.0.5                                ...           5 months ago
  • 1.0.4                                ...           5 months ago
  • 1.0.3                                ...           5 months ago
  • 1.0.2                                ...           5 months ago
  • 1.0.1                                ...           5 months ago
  • 1.0.0                                ...           5 months ago
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (14)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |