-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- added template.render() and various other template helpers
- Loading branch information
Showing
3 changed files
with
211 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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 file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
var exec = require('child_process').exec; | ||
|
||
/** | ||
* Installs bower components | ||
* @param deps {Array} | ||
* @param cb {Function(error)} - Called when all components installed | ||
*/ | ||
function install(deps, cb) | ||
{ | ||
var p = exec('bower install ' + deps.join(' ') + ' --save', cb); | ||
p.stdout.pipe(process.stdout); | ||
p.stderr.pipe(process.stderr); | ||
} | ||
module.exports.install = install; | ||
|
||
/** | ||
* Uninstalls bower components | ||
* @param deps {Array} | ||
* @param cb {Function(error)} - Called when all components uninstalled | ||
*/ | ||
function uninstall(deps, cb) | ||
{ | ||
var p = exec('bower uninstall ' + deps.join(' ') + ' --save', cb); | ||
p.stdout.pipe(process.stdout); | ||
p.stderr.pipe(process.stderr); | ||
} | ||
module.exports.uninstall = uninstall; |
This file contains 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