diff --git a/lib/commands/js.js b/lib/commands/js.js index f60977be..4a5471ea 100644 --- a/lib/commands/js.js +++ b/lib/commands/js.js @@ -3,12 +3,11 @@ var bower = require('bower'), shell = require('shelljs'); var _js = function(command){ - - bower.config.directory = "assets/js/components"; + bower.config.directory = "assets/components"; // if installing, make the components directory first 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)) diff --git a/readme.md b/readme.md index f158596a..0ac2070b 100644 --- a/readme.md +++ b/readme.md @@ -54,7 +54,7 @@ Roots ships with an awesome feature-rich css library built on top of stylus. Thi 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 search name` - search for a package by `name`