[API Refactor] Move rebundle script

...out of top-level, into a scripts directory.
This commit is contained in:
Victor Woeltjen 2016-01-08 15:29:58 -08:00
parent 3bf2819c07
commit cacc295524
4 changed files with 6 additions and 1 deletions

View File

@ -20,6 +20,7 @@
"karma-jasmine": "^0.1.5",
"karma-phantomjs-launcher": "^0.1.4",
"karma-requirejs": "^0.2.2",
"lodash": "^3.10.1",
"markdown-toc": "^0.11.7",
"marked": "^0.3.5",
"mkdirp": "^0.5.1",

View File

@ -150,6 +150,7 @@
<exclude>node_modules/**/*</exclude>
<exclude>protractor/**/*</exclude>
<exclude>target/**/*</exclude>
<exclude>scripts/**/*</exclude>
</excludes>
</configuration>
<executions>

View File

@ -3,8 +3,11 @@
var glob = require('glob'),
fs = require('fs'),
path = require('path'),
_ = require('lodash'),
template = _.template(fs.readFileSync('template.txt', 'utf8'));
template = _.template(
fs.readFileSync(path.resolve(__dirname, 'template.txt'), 'utf8')
);
function indent(str, depth) {
return _.trimLeft(str.split('\n').map(function (line) {