2.8.0 • Published 4 years ago
@jacco-meijer/wheelroom-plugin-boilerplate v2.8.0
@jacco-meijer/wheelroom-plugin-boilerplate
This is a plugin for the @jacco-meijer/wheelroom package.
Have a look at the boilerplate to so see how to use this.
Commands
This plugin adds the create-boilerplate
command which lets you create boilerplate
code from component data.
wheelroom create-boilerplate <template-set> <path> [options]
Config
The plugin is configured by adding it to wheelroom-config.js
var templateSets = require('./wheelroom-template-sets')
module.exports = {
components: {
...
},
plugins: [
{
resolve: '@jacco-meijer/wheelroom-plugin-boilerplate',
options: {
templateSets: templateSets,
},
},
],
}
Template sets
Using typescript, template sets are defined like this.
import { TemplateSets } from '@jacco-meijer/wheelroom-plugin-boilerplate'
import { component } from './component'
import { componentIndex } from './component-index'
import { componentReadme } from './component-readme'
import { componentVariation } from './component-variation'
export const templateSets: TemplateSets = {
components: {
component: {
filterComponentSetting: 'asBoilerplate',
path: '%component-name%/%component-name%.tsx',
template: component,
},
componentBasicVar: {
filterComponentSetting: 'asBoilerplate',
path: '%component-name%/%component-name%-%variation-name%-var.tsx',
template: componentVariation,
},
componentIndex: {
filterComponentSetting: 'asBoilerplate',
path: '%component-name%/index.ts',
template: componentIndex,
},
componentReadme: {
filterComponentSetting: 'asBoilerplate',
path: '%component-name%/README.md',
template: componentReadme,
},
},
}
2.8.0
4 years ago
2.7.0
4 years ago
2.6.7
4 years ago
2.6.8
4 years ago
2.6.6
4 years ago
2.6.5
4 years ago
2.6.4
4 years ago
2.6.3
4 years ago
2.6.2
4 years ago
2.5.0
4 years ago
2.6.1
4 years ago
2.6.0
4 years ago
2.3.0
4 years ago
2.4.1
4 years ago
2.4.0
4 years ago
2.2.7
4 years ago
2.2.6
4 years ago
2.2.5
4 years ago
2.2.4
4 years ago
2.2.3
4 years ago
2.2.1
4 years ago
2.2.2
4 years ago
2.2.0
4 years ago
2.1.1
4 years ago
2.1.0
4 years ago
2.0.1
4 years ago
2.0.0
4 years ago