Skip to content

Commit

Permalink
Move Bower install into Grunt task.
Browse files Browse the repository at this point in the history
  • Loading branch information
Geordan Rosario committed Mar 17, 2015
1 parent a17fbb9 commit a654826
Show file tree
Hide file tree
Showing 128 changed files with 40 additions and 34,070 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
_vimrc_local.vim
.sass-cache

app
images
backgrounds.*
casperjs.png
xwing.history
coffeelint.json
node_modules
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ node_js:
- "0.10"
notifications:
email: false
before_install:
- npm install -g grunt-cli
before_script:
- bundle install
- cake build
- grunt
7 changes: 4 additions & 3 deletions Gruntfile.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ module.exports = (grunt) ->
dest: 'app/'
ext: '.html'
bower:
dev:
dest: 'app/bower_components'
install:
options:
targetDir: 'app/bower_components'
uglify:
compile:
options:
Expand All @@ -34,7 +35,7 @@ module.exports = (grunt) ->
files:
'app/javascripts/xwing.min.js': 'app/javascripts/xwing.js'

grunt.loadNpmTasks 'grunt-bower'
grunt.loadNpmTasks 'grunt-bower-task'
grunt.loadNpmTasks 'grunt-contrib-jade'
grunt.loadNpmTasks 'grunt-contrib-sass'
grunt.loadNpmTasks 'grunt-contrib-uglify'
Expand Down
18 changes: 10 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,23 @@ Building
========

1. Install [Node.js](http://nodejs.org/) to get `npm`.
2. Run `sudo npm install` to install the dependencies listed in `package.json`.
3. Install [Ruby](https://www.ruby-lang.org/en/) to get `gem`.
4. Install [Bundler](http//bundler.io): `sudo gem install bundler`
5. Use Bundler to install the remaining dependencies listed in `Gemfile`: `sudo bundle install`
2. `npm install -g grunt-cli` to install the global Grunt CLI.
3. `npm install` to install the dependencies listed in `package.json`.
4. `grunt` to build everything into the `app` directory. The builder is at `app/index.html`.

Then run `cake build` and all the HTML, CoffeeScript, and CSS files will be created.
Testing
=======

`npm test`

Installing
==========

Someday I'll make this a cake target, but until then:
Someday I'll Bower all this junk up, but until then:

Download and extract [Bootstrap](http://getbootstrap.com/2.3.2/), [FontAwesome](fortawesome.github.io/Font-Awesome/icons/), and [Select2](http://ivaynberg.github.io/select2/) into the top level.
Download and extract [Bootstrap](http://getbootstrap.com/2.3.2/), [FontAwesome](fortawesome.github.io/Font-Awesome/icons/). [Select2](http://ivaynberg.github.io/select2/) has been monkeypatched.

cp -r *.html fontawesome bootstrap fonts images javascripts select2-* stylesheets coffeescripts $YOUR_WEB_ROOT
cp -r app/* fontawesome bootstrap select2-3.4.0 $YOUR_WEB_ROOT

Credits
-------
Expand Down
26 changes: 0 additions & 26 deletions bower_components/jquery-qrcode/.bower.json

This file was deleted.

20 changes: 0 additions & 20 deletions bower_components/jquery-qrcode/MIT-LICENSE.txt

This file was deleted.

41 changes: 0 additions & 41 deletions bower_components/jquery-qrcode/README.md

This file was deleted.

16 changes: 0 additions & 16 deletions bower_components/jquery-qrcode/bower.json

This file was deleted.

28 changes: 0 additions & 28 deletions bower_components/jquery-qrcode/jquery.qrcode.min.js

This file was deleted.

Loading

0 comments on commit a654826

Please sign in to comment.