miketmoore-ng-templatecache
v0.2.4
Published
Wrapper for ng-templatecache, reads files into the lib and is configurable
Downloads
4
Readme
miketmoore-ng-templatecache
This module loads specified template files and processes them through the ng-templatecache module.
I created this to be used inside npm scripts for an angularjs build process.
setup
Install
npm install miketmoore-ng-templatecache --save
Configure npm script
Add the following key/value to package.json "scripts" section:
"build:templateCache": "miketmoore-ng-templatecache -c templatecache.json"
Create JSON config file
{
"templates" : "src/js/components/**/*.html",
"outputFile" : "public/js/templates.js",
"replaceStr": "src\/js\/components\/",
"write": true,
"module": "namespace.templates"
}
Run it!
npm run build:templateCache