| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,3 @@ | |||
| 1 | + { | ||
| 2 | + "directory": "assets/vendor" | ||
| 3 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,5 @@ | |||
| 1 | 1 | language: ruby | |
| 2 | 2 | rvm: | |
| 3 | 3 | - 2.2.3 | |
| 4 | + before_script: | ||
| 5 | + - script/bootstrap | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,13 +3,23 @@ require 'tmpdir' | |||
| 3 | 3 | ||
| 4 | 4 | task :default => [:test] | |
| 5 | 5 | ||
| 6 | - desc "Compile the site" | ||
| 7 | - task :compile do | ||
| 8 | - `nanoc compile` | ||
| 6 | + desc 'Builds the site' | ||
| 7 | + task :build do | ||
| 8 | + if ENV['RACK_ENV'] == 'test' | ||
| 9 | + begin | ||
| 10 | + sh 'node_modules/gulp/bin/gulp.js build > build.txt' | ||
| 11 | + rescue StandardError => e | ||
| 12 | + puts 'uh oh' | ||
| 13 | + $stderr.puts `cat build.txt` | ||
| 14 | + raise e | ||
| 15 | + end | ||
| 16 | + else | ||
| 17 | + sh 'node_modules/gulp/bin/gulp.js build' | ||
| 18 | + end | ||
| 9 | 19 | end | |
| 10 | 20 | ||
| 11 | 21 | desc "Test the output" | |
| 12 | - task :test => [:remove_tmp_dir, :remove_output_dir, :compile, :run_proofer] | ||
| 22 | + task :test => [:remove_tmp_dir, :remove_output_dir, :build, :run_proofer] | ||
| 13 | 23 | ||
| 14 | 24 | desc "Run the HTML-Proofer" | |
| 15 | 25 | task :run_proofer do | |
@@ -51,7 +61,7 @@ def commit_message(no_commit_msg = false) | |||
| 51 | 61 | end | |
| 52 | 62 | ||
| 53 | 63 | desc "Publish to http://developer.github.com" | |
| 54 | - task :publish, [:no_commit_msg] => [:remove_tmp_dir, :remove_output_dir, :compile] do |t, args| | ||
| 64 | + task :publish, [:no_commit_msg] => [:remove_tmp_dir, :remove_output_dir, :build] do |t, args| | ||
| 55 | 65 | message = commit_message(args[:no_commit_msg]) | |
| 56 | 66 | ||
| 57 | 67 | Dir.mktmpdir do |tmp| | |
| Back | FazBrowse Home | New Git URL |
0 commit comments