Skip to content

Commit a4e4f2b

Browse files
committed
Use bundler for Ruby dependencies
Using bundler: * Takes care of the gem dependency for this project * Removes the potential for conflicting sass versions * Keeps sass (+ it’s dependencies) out of the global gemset
1 parent a5556bb commit a4e4f2b

File tree

5 files changed

+22
-1
lines changed

5 files changed

+22
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ build/Release
8080
node_modules
8181
jspm_packages
8282
bower_components
83+
vendor
8384

8485
# Optional npm cache directory
8586
.npm

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# A sample Gemfile
2+
source "https://rubygems.org"
3+
4+
gem "sass"

Gemfile.lock

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
sass (3.4.22)
5+
6+
PLATFORMS
7+
ruby
8+
9+
DEPENDENCIES
10+
sass
11+
12+
BUNDLED WITH
13+
1.11.2

Gruntfile.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ module.exports = function (grunt) {
4545
options: {
4646
style: 'expanded',
4747
precision: 8,
48+
bundleExec: true,
4849
'unix-newlines': true
4950
}
5051
}

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,18 @@ You can also import the theme into your styles using SASS.
3434

3535
Development
3636
------------
37-
You must have Node + NPM, Grunt CLI, and Bower installed.
37+
You must have Node + NPM, Grunt CLI, Bower, and Ruby + Bundler installed.
3838

3939
* To install Grunt CLI, run: `npm install -g grunt-cli`
4040
* To install Bower, run: `npm install -g bower`
41+
* To install Bundler, run: `gem install bundler`
4142

4243
Once you have those tools installed, clone this repo and run the following commands to install dependencies:
4344

4445
```
4546
npm install
4647
bower install
48+
bundle install
4749
```
4850

4951
Once all of the dependencies are installed, run `grunt build` to build the theme (artifacts will be dropped in `./dist`), or simply `grunt` to start a live reload server for development.

0 commit comments

Comments
 (0)