forked from twbs/bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Separate configs for libsass and sass. * Sass compiler selected based on `process.env.TWBS_SASS`. * Travis: * Use Gemfile to manage ruby dependencies. * Run core tests with both Sass compilers. * Only install/cache ruby gems required by the test subset. * Grunt: `update-gemfile-lock` task a la `update-shrinkwrap`.
- Loading branch information
Showing
11 changed files
with
200 additions
and
33 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
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 |
---|---|---|
@@ -1,6 +1,11 @@ | ||
# Ruby Gems for building and testing Bootstrap | ||
# Run `grunt update-gemfile-lock` to update to the latest compatible versions | ||
|
||
source 'https://rubygems.org' | ||
|
||
group :development do | ||
group :development, :test do | ||
gem 'jekyll', '~> 2.5.2' | ||
gem 'rouge', '~> 1.7.4' | ||
gem 'sass', '~> 3.4.9' | ||
gem 'scss-lint', '~> 0.31' | ||
end |
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,78 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
blankslate (2.1.2.4) | ||
celluloid (0.16.0) | ||
timers (~> 4.0.0) | ||
classifier-reborn (2.0.2) | ||
fast-stemmer (~> 1.0) | ||
coffee-script (2.3.0) | ||
coffee-script-source | ||
execjs | ||
coffee-script-source (1.8.0) | ||
colorator (0.1) | ||
execjs (2.2.2) | ||
fast-stemmer (1.0.2) | ||
ffi (1.9.6) | ||
hitimes (1.2.2) | ||
jekyll (2.5.2) | ||
classifier-reborn (~> 2.0) | ||
colorator (~> 0.1) | ||
jekyll-coffeescript (~> 1.0) | ||
jekyll-gist (~> 1.0) | ||
jekyll-paginate (~> 1.0) | ||
jekyll-sass-converter (~> 1.0) | ||
jekyll-watch (~> 1.1) | ||
kramdown (~> 1.3) | ||
liquid (~> 2.6.1) | ||
mercenary (~> 0.3.3) | ||
pygments.rb (~> 0.6.0) | ||
redcarpet (~> 3.1) | ||
safe_yaml (~> 1.0) | ||
toml (~> 0.1.0) | ||
jekyll-coffeescript (1.0.1) | ||
coffee-script (~> 2.2) | ||
jekyll-gist (1.1.0) | ||
jekyll-paginate (1.1.0) | ||
jekyll-sass-converter (1.3.0) | ||
sass (~> 3.2) | ||
jekyll-watch (1.2.0) | ||
listen (~> 2.7) | ||
kramdown (1.5.0) | ||
liquid (2.6.1) | ||
listen (2.8.4) | ||
celluloid (>= 0.15.2) | ||
rb-fsevent (>= 0.9.3) | ||
rb-inotify (>= 0.9) | ||
mercenary (0.3.5) | ||
parslet (1.5.0) | ||
blankslate (~> 2.0) | ||
posix-spawn (0.3.9) | ||
pygments.rb (0.6.0) | ||
posix-spawn (~> 0.3.6) | ||
yajl-ruby (~> 1.1.0) | ||
rainbow (2.0.0) | ||
rb-fsevent (0.9.4) | ||
rb-inotify (0.9.5) | ||
ffi (>= 0.5.0) | ||
redcarpet (3.2.2) | ||
rouge (1.7.4) | ||
safe_yaml (1.0.4) | ||
sass (3.4.9) | ||
scss-lint (0.31.0) | ||
rainbow (~> 2.0) | ||
sass (~> 3.4.1) | ||
timers (4.0.1) | ||
hitimes | ||
toml (0.1.2) | ||
parslet (~> 1.5.0) | ||
yajl-ruby (1.1.0) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
jekyll (~> 2.5.2) | ||
rouge (~> 1.7.4) | ||
sass (~> 3.4.9) | ||
scss-lint (~> 0.31) |
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,26 @@ | ||
// Compile Bootstrap with [libsass][1] using [grunt-sass][2] | ||
// [1]: https://github.com/sass/libsass | ||
// [2]: https://github.com/sindresorhus/grunt-sass | ||
module.exports = function configureLibsass(grunt) { | ||
grunt.config.merge({ | ||
sass: { | ||
options: { | ||
includePaths: ['scss'], | ||
precision: 6, | ||
sourceComments: false, | ||
sourceMap: true | ||
}, | ||
core: { | ||
files: { | ||
'dist/css/<%= pkg.name %>.css': 'scss/<%= pkg.name %>.scss' | ||
} | ||
}, | ||
docs: { | ||
files: { | ||
'docs/assets/css/docs.min.css': 'docs/assets/scss/docs.scss' | ||
} | ||
} | ||
} | ||
}); | ||
grunt.loadNpmTasks('grunt-sass'); | ||
}; |
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,30 @@ | ||
// Compile Bootstrap with [Ruby Sass][1] using [grunt-contrib-sass][2] | ||
// [1]: https://github.com/sass/sass | ||
// [2]: https://github.com/gruntjs/grunt-contrib-sass | ||
module.exports = function configureRubySass(grunt) { | ||
var options = { | ||
loadPath: ['scss'], | ||
precision: 6, | ||
sourcemap: 'auto', | ||
style: 'expanded', | ||
trace: true, | ||
bundleExec: true | ||
}; | ||
grunt.config.merge({ | ||
sass: { | ||
core: { | ||
options: options, | ||
files: { | ||
'dist/css/<%= pkg.name %>.css': 'scss/<%= pkg.name %>.scss' | ||
} | ||
}, | ||
docs: { | ||
options: options, | ||
files: { | ||
'docs/assets/css/docs.min.css': 'docs/assets/scss/docs.scss' | ||
} | ||
} | ||
} | ||
}); | ||
grunt.loadNpmTasks('grunt-contrib-sass'); | ||
}; |
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
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,7 @@ | ||
# Ruby Gems for the 'core' set of tests | ||
# Run `grunt update-gemfile-lock` to update to the latest compatible versions | ||
|
||
source 'https://rubygems.org' | ||
|
||
gem 'sass', '~> 3.4.9' | ||
gem 'scss-lint', '~> 0.31' |
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,15 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
rainbow (2.0.0) | ||
sass (3.4.9) | ||
scss-lint (0.31.0) | ||
rainbow (~> 2.0) | ||
sass (~> 3.4.1) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
sass (~> 3.4.9) | ||
scss-lint (~> 0.31) |