Skip to content

Commit dbcf49c

Browse files
committed
update
1 parent 0769968 commit dbcf49c

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

Rakefile

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ task 'update' do
4242
system("cd bootstrap-wysihtml5 && git pull && cd ..")
4343
else
4444
system("git clone git://github.com/jhollingworth/bootstrap-wysihtml5.git bootstrap-wysihtml5")
45-
system("cd bootstrap-wysihtml5 && git remote add b3 [email protected]:artillery/bootstrap-wysihtml5.git")
46-
system("cd bootstrap-wysihtml5 && git fetch b3")
47-
system("cd bootstrap-wysihtml5 && git checkout -b tb3 b3/master")
45+
# system("cd bootstrap-wysihtml5 && git remote add b3 [email protected]:artillery/bootstrap-wysihtml5.git")
46+
# system("cd bootstrap-wysihtml5 && git fetch b3")
47+
# system("cd bootstrap-wysihtml5 && git checkout -b tb3 b3/master")
4848
end
4949

5050
Dir.foreach("bootstrap-wysihtml5/src/locales") do |file|
@@ -58,7 +58,14 @@ task 'update' do
5858
system("cp #{ORIGIN_LIB_PATH}/css/wysiwyg-color.css #{DEST_CSS_PATH}/wysiwyg-color.css")
5959

6060
b2
61-
b3
61+
# b3
62+
63+
# ["#{DEST_JAVASCRIPT_PATH}/core.js.erb", "#{DEST_JAVASCRIPT_PATH}/core-b3.js.erb"].each do |file|
64+
["#{DEST_JAVASCRIPT_PATH}/core.js.erb"].each do |file|
65+
initial = File.read(file)
66+
initial = "//= depend_on_asset \"bootstrap-wysihtml5/wysiwyg-color.css\"\n\n" + initial
67+
File.write(file, initial)
68+
end
6269

6370
system("git status")
6471
end

0 commit comments

Comments
 (0)