1.1.6 • Published 2 years ago
@sumocreations/scaffolds v1.1.6
@sumocreations/scaffold
Our standard set of reusable templates based on the lovely simple-scaffold CLI package.
Install
You can either use it as a command line tool or import into your own code.
# npm
npm install [-g] @sumocreations/scaffold
# yarn
yarn [global] add @sumocreations/scaffold
# run without installing
npx @sumocreations/scaffold@latest <...args>
Examples
Generate a Component
A bare bones example:
yarn scaffold Button -t component
In a module with some pre-defined props:
yarn scaffold Common/Button -t component -p "label:string disabled?:boolean"
Generate a Form (react-hook-form)
yarn scaffold Form/Signup -t form
Generate a Form Field (react-hook-form)
yarn scaffold Field/TextArea -t field
Developing this Package
To refine existing or create new templates, it's best to test them locally in this package. To do so just run the local scaffold script and use ./tmp
as your output directory:
yarn scaffold --name test -t component ./tmp/Component/TestComponent
1.1.1
2 years ago
1.1.0
2 years ago
1.1.6
2 years ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.0.12
2 years ago
1.0.11
2 years ago
1.0.10
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago