1.1.6 • Published 4 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 componentIn 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 formGenerate a Form Field (react-hook-form)
yarn scaffold Field/TextArea -t fieldDeveloping 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/TestComponent1.1.1
4 years ago
1.1.0
4 years ago
1.1.6
4 years ago
1.1.5
4 years ago
1.1.4
4 years ago
1.1.3
4 years ago
1.1.2
4 years ago
1.0.12
4 years ago
1.0.11
4 years ago
1.0.10
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago