Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commitc0f8242

Browse files
author
Hubot
committed
Sync changes from upstream repository
1 parent00da7b8 commitc0f8242

File tree

5 files changed

+15
-2
lines changed

5 files changed

+15
-2
lines changed

‎.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
!/assets/vendor/lunr.js/lunr.js
1313
!/assets/vendor/lunr.js/lunr.min.js
1414

15+
_site/
16+
enterprise/
1517
output
1618
tmp
1719
.DS_Store

‎Rakefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ task :build do
2020
end
2121
end
2222

23+
task:build_latest_entdo
24+
putssh"script/enterprise-backport#{config[:versions].first} --keep"
25+
end
26+
2327
desc"Test the output"
2428
task:test=>[:remove_tmp_dir,:remove_output_dir,:build]do
2529
Rake::Task['spec'].invoke
@@ -80,6 +84,9 @@ end
8084
namespace:assetsdo
8185
task:precompile=>[:build]do
8286
sh'mv output _site/'
87+
Rake::Task['build_latest_ent'].invoke
88+
sh"mkdir -p _site/enterprise/#{config[:versions].first}"
89+
sh"mv output/* _site/enterprise/#{config[:versions].first}"
8390
end
8491
end
8592

‎script/enterprise-backport

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ data_variables:
5252
Nanoc::Int::SiteLoader.new.new_with_config(versioned_config).compile
5353

5454
puts`node_modules/gulp/bin/gulp.js assets`
55-
failunless $CHILD_STATUS.to_i ==0
55+
raiseunless $CHILD_STATUS.to_i ==0
5656

5757
versioned_config
5858
end

‎tasks/utils.rake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
require'yaml'
12
require'json'
23
require'active_support/core_ext/hash'
34

@@ -8,4 +9,3 @@ end
89
defsymbolize_hash(hash)
910
hash.deep_symbolize_keys
1011
end
11-

‎tasks/versioning.rake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,7 @@ def cleanup
131131
FileUtils.rm_rf"#{VERSIONED_ENT_PATH}/assets/vendor"
132132
FileUtils.rm_rf"#{VERSIONED_ENT_PATH}/assets/images"
133133
end
134+
135+
defkeep?
136+
ARGV.include?('--keep')
137+
end

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp