rex-template
Version:
Rex-Template recursively compiles all of the Handlebars templates in a folder into a single file, watching for changes afterward.
127 lines (126 loc) • 3.49 kB
JSON
{
"author": "Pierce Moore <me@prex.io>",
"name": "rex-template",
"description": "Rex-Template recursively compiles all of the Handlebars templates in a folder into a single file, watching for changes afterward.",
"homepage": "https://github.com/rex/rex-template",
"version": "1.2.0",
"main": "./lib/rex-template.js",
"bin": {
"rex-template": "./bin/rex-kickstart",
"rextemplate": "./bin/rex-kickstart"
},
"repository": {
"type": "git",
"url": "https://github.com/rex/rex-template.git"
},
"keywords": [
"handlebars",
"compile",
"template",
"recursive",
"watch",
"monitor",
"rex"
],
"bugs": {
"url": "https://github.com/rex/rex-template/issues"
},
"scripts": {
"test": "node ./test/rex-template.test.js"
},
"preferGlobal": true,
"license": "MIT",
"readmeFilename": "readme.md",
"directories": {
"lib": "./lib",
"bin": "./bin",
"test": "./test"
},
"dependencies": {
"handlebars": ">=1.0.12",
"rex-shell": "*",
"rex-exec": "*",
"rex-utils": "*",
"optimist": "*",
"async": "*",
"node-watch": "*"
},
"config": {
"cli": {
"usage": "rex-template [-i /path/to/templates] [-o /path/to/templates.js] [-w] [-q]",
"args": {
"in": {
"aliases": [
"-i",
"--in"
],
"description": "Path to the directory of templates, from the current directory.",
"default": "./public/js/templates",
"type": "param"
},
"out": {
"aliases": [
"-o",
"--out"
],
"description": "Path to the compiled templates output file, from the current directory.",
"default": "./public/js/templates.js",
"type": "param"
},
"watch": {
"aliases": [
"-w",
"--watch"
],
"description": "Keep alive and watch for changes to templates in the template directory.",
"default": false,
"type": "flag"
},
"quiet": {
"aliases": [
"-q",
"--quiet"
],
"description": "Reduce console logging and output.",
"default": false,
"type": "flag"
}
}
},
"extensions": [
".hb",
".hbs",
".handlebars",
".tpl",
".template",
".mustache",
".mst"
],
"timeout": 1000,
"hb": {
"startString": "(function() { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {}; Handlebars.partials = Handlebars.templates; \n",
"endString": "})();"
},
"tplHeader": [
"/**",
"* Compiled by Rex-Template on {{date}}",
"*",
"* Total Compiles : {{iteration}}",
"* Templates : {{templateCount}}",
"* Compile Time : {{compileTime}}",
"* Skipped Templates: {{skipped}}",
"* Compile Errors: {{compileErrors}}",
"* Compile Time Rex-Template has Saved You: {{timeSaved}} seconds",
"*",
"* About Rex-Template:",
"* \t Version : {{version}}",
"* \t Input File : {{infile}}",
"* \t Output File : {{outfile}}",
"* \t Extensions Handled : {{extensions}}",
"* \t Duplicate Prevention Timeout : {{timeout}}",
"*",
"* Having issues? Send an email to me@prex.io or open an issue here: https://github.com/rex/rex-template/issues",
"*/ \n"
]
}
}