0.5.0-alpha.14 • Published 2 years ago
@dullaghan/cli-scaffold-templates v0.5.0-alpha.14
@dullaghan/cli-scaffold-templates
Default scaffold templates to use in your dullaghan config file.
Usage
Install the package as a dev dependency
npm i -D @dullaghan/cli-scaffold-templates
Set the desired templates in your dullaghan.config.js
file
import { reactComponent } from '@dullaghan/cli-scaffold-templates';
export const config = {
projectType: 'React',
scaffold: {
subdirectories: [...],
templates: {
'[name].tsx': reactComponent,
}
}
}
JSS
With JSS templates you'll also want to include the jssScaffoldOpts
so the values can be populated in the templates
import { jssAuthorableComponent, jssScaffoldOpts } from '@dullaghan/cli-scaffold-templates';
export const config = {
projectType: 'JSS',
scaffold: {
subdirectories: [...],
templates: {
'[name].tsx': jssAuthorableComponent,
}
scaffoldOpts [...jssScaffoldOpts],
}
}
0.5.0-alpha.13
2 years ago
0.5.0-alpha.14
2 years ago
0.5.0-alpha.11
2 years ago
0.5.0-alpha.12
2 years ago
0.5.0-alpha.8
2 years ago
0.5.0-alpha.6
2 years ago
0.5.0-alpha.2
2 years ago
0.5.0-alpha.1
2 years ago
0.5.0-alpha.0
2 years ago