Created
June 2, 2015 13:57
-
-
Save dhigginbotham/35bd306821180b84f0d0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This optional file is used to load the CLI options and KSS generator needed | |
// by this template. | |
// | |
// The filename should follow standard node.js require() conventions. See | |
// http://nodejs.org/api/modules.html#modules_folders_as_modules It should | |
// either be named index.js or have its name set in the "main" property of the | |
// template's package.json. | |
var KssHandlebarsGenerator; | |
try { | |
// This require() line will always fail while testing a git clone of this | |
// module. In order for a bundled template to be "kss-node clone"-able, it | |
// must use the require('kss/generator/path') syntax (instead of requiring a | |
// relative path). But, since this kss module has been git cloned and not | |
// installed via npm, require('kss/anything') will always fail. | |
KssHandlebarsGenerator = require('kss/generator/handlebars'); | |
} catch (e) { | |
KssHandlebarsGenerator = require('../kss_handlebars_generator.js'); | |
} | |
// Tell kss-node which generator this template uses. | |
module.exports.generator = KssHandlebarsGenerator; | |
// Tell kss-node which Yargs options this template has. | |
// See https://github.com/bcoe/yargs/blob/master/README.md#optionskey-opt | |
module.exports.options = { | |
'title': { | |
string: true, | |
multiple: false, | |
describe: 'Title of the style guide', | |
default: 'KSS Style Guide' | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment