Skip to content

Commit

Permalink
Merge https://github.com/slang800/roots into slang800
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Escalante committed Feb 28, 2013
2 parents d02c83d + 0938ead commit 027a319
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions lib/commands/js.js
Expand Up @@ -3,12 +3,11 @@ var bower = require('bower'),
shell = require('shelljs'); shell = require('shelljs');


var _js = function(command){ var _js = function(command){

bower.config.directory = "assets/components";
bower.config.directory = "assets/js/components";


// if installing, make the components directory first // if installing, make the components directory first
if (command.toString().match('install')) { if (command.toString().match('install')) {
shell.mkdir('-p', path.join(process.cwd(), 'assets/js/components')); shell.mkdir('-p', path.join(process.cwd(), 'assets/components'));
} }


bower.commands[command[0] || 'help'].line(['node', __dirname].concat(command)) bower.commands[command[0] || 'help'].line(['node', __dirname].concat(command))
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Expand Up @@ -54,7 +54,7 @@ Roots ships with an awesome feature-rich css library built on top of stylus. Thi
Client Side JS Client Side JS
-------------- --------------


Using javascript libraries on the client-side is super helpful, but downloading them for every project and keeping them up to date is a huge pain. Luckily, the wonderful developers at twitter created [bower](http://twitter.github.com/bower/) for this exact purpose. You can run `roots install` followed by any package name to have bower install it directly into the `js/components` folder of your roots project. Also available: Using javascript libraries on the client-side is super helpful, but downloading them for every project and keeping them up to date is a huge pain. Luckily, the wonderful developers at twitter created [bower](http://twitter.github.com/bower/) for this exact purpose. You can run `roots install` followed by any package name to have bower install it directly into the `assets/components` folder of your roots project. Also available:


`roots js list` - list of installed packages `roots js list` - list of installed packages
`roots js search name` - search for a package by `name` `roots js search name` - search for a package by `name`
Expand Down

0 comments on commit 027a319

Please sign in to comment.