sg-templates
v1.4.4
Published
Templates for SUGOS
Downloads
54
Readme
sg-templates
Templates for SUGOS
Installation
$ npm install sg-templates --save
Usage
#!/usr/bin/env node
/**
* Example usage
*/
'use strict'
const pkg = require('../package.json')
const { moduleIndex } = require('sg-templates')
// Define coz bud
module.exports = {
force: true,
mode: '444',
tmpl: moduleIndex,
data: {
name: 'MyModule',
pkg
}
}
if (!module.parent) {
require('coz').render(__filename)
}
Templates
| Name | Path | | --- | --- | | moduleApi | assets/module-api.hbs | | moduleIndex | assets/module-index.hbs | | reactIndex | assets/react-index.hbs | | reactTest | assets/react-test.hbs |
License
This software is released under the Apache-2.0 License.