Skip to content

Commit b3aa2e0

Browse files
committed
Update ViSH Editor rake task
1 parent 0ce3652 commit b3aa2e0

File tree

8 files changed

+3569
-3544
lines changed

8 files changed

+3569
-3544
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ app/views/layouts/_grid.html.erb
7474
carrierwave/
7575

7676
#Ignore vish editor compile
77-
lib/tasks/compile
77+
lib/plugins/vish_editor/extras/compile
7878

7979
#Ignore RVM personal config
8080
.rvmrc

lib/plugins/vish_editor/app/assets/javascripts/vishEditor.js

+383-381
Large diffs are not rendered by default.

lib/plugins/vish_editor/app/assets/javascripts/vishEditor.min.js

+1,299-1,290
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/plugins/vish_editor/app/assets/javascripts/vishViewer.js

+335-333
Large diffs are not rendered by default.

lib/plugins/vish_editor/app/assets/javascripts/vishViewer.min.js

+771-765
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/plugins/vish_editor/app/scorm/javascripts/vishViewer.min.js

+771-765
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/plugins/vish_editor/lib/tasks/vish_editor.rake

+9-9
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#
77

88
#PATHS
9-
VISH_EDITOR_PLUGIN_PATH = "vendor/plugins/vish_editor";
9+
VISH_EDITOR_PLUGIN_PATH = "lib/plugins/vish_editor";
1010
VISH_EDITOR_PATH = "../vish_editor";
1111

1212
# Vish Editor and Vish Viewer files and dirs :
@@ -15,13 +15,13 @@ JS_FILES_AND_DIRS = ['app/assets/js_to_compile/lang','app/assets/js_to_compile/V
1515
CSS_FILES_AND_DIRS = ['app/assets/css_to_compile/libs','app/assets/css_to_compile']
1616

1717
# Vish Editor css first files
18-
CSS_EDITOR = ['vendor/plugins/vish_editor/app/assets/css_to_compile/all/editor.css']
18+
CSS_EDITOR = ['lib/plugins/vish_editor/app/assets/css_to_compile/all/editor.css']
1919

2020
# Vish Viewer files and dirs
2121
JS_VIEWER = ['lang/translations.js', 'libs/jquery-1.7.2.min.js', 'libs/jquery.watermark.min.js', 'libs/RegaddiChart.js', 'libs/jquery-ui-1.9.2.custom.min.js', 'libs/jquery.fancybox-1.3.4.js', 'libs/jquery.qrcode.min.js', 'libs/jquery.joyride-1.0.5.js', 'libs/jquery.cookie.js', 'libs/modernizr.mq.js', 'libs/modernizr.foundation.js', 'libs/jquery.ui.touch-punch.0.2.2.min.js', 'libs/loep.js', 'VISH.js', 'VISH.Constant.js', 'VISH.Configuration.js', 'VISH.QuizCharts.js', 'VISH.IframeAPI.js', 'VISH.User.js', 'VISH.I18n.js', 'VISH.Object.js', 'VISH.Object.PDF.js', 'VISH.Object.GoogleDOC.js', 'VISH.Object.Webapp.js', 'VISH.Renderer.js', 'VISH.Renderer.Filter.js', 'VISH.Debugging.js', 'VISH.Presentation.js', 'VISH.Slideset.js', 'VISH.SlidesSelector.js', 'VISH.Text.js', 'VISH.Video.js', 'VISH.Video.CustomPlayer.js', 'VISH.Video.HTML5.js', 'VISH.Video.Youtube.js', 'VISH.Audio.js', 'VISH.Audio.HTML5.js', 'VISH.ObjectPlayer.js', 'VISH.SnapshotPlayer.js', 'VISH.AppletPlayer.js', 'VISH.Viewer.js', 'VISH.Utils.js', 'VISH.Utils.Loader.js', 'VISH.Status.js', 'VISH.Status.Device.js', 'VISH.Status.Device.Browser.js', 'VISH.Status.Device.Features.js', 'VISH.ViewerAdapter.js', 'VISH.Flashcard.js', 'VISH.VirtualTour.js', 'VISH.EVideo.js', 'VISH.Themes.js', 'VISH.Animations.js', 'VISH.Messenger.js', 'VISH.Messenger.Helper.js', 'VISH.Addons.js', 'VISH.Addons.IframeMessenger.js', 'VISH.Storage.js', 'VISH.Slides.js', 'VISH.Events.js', 'VISH.EventsNotifier.js', 'VISH.Quiz.js', 'VISH.Quiz.MC.js', 'VISH.Quiz.TF.js', 'VISH.Quiz.Sorting.js', 'VISH.Quiz.Open.js', 'VISH.Quiz.API.js', 'VISH.Events.Mobile.js', 'VISH.Recommendations.js', 'VISH.Tour.js', 'VISH.FullScreen.js', 'VISH.TrackingSystem.js', 'VISH.ProgressTracking.js', 'VISH.SCORM.js', 'VISH.SCORM.API.js']
2222
CSS_VIEWER = ['customPlayer.css','pack1templates.css','quiz.css','styles.css'];
2323

24-
COMPILER_JAR_PATH = "lib/tasks/compile"
24+
COMPILER_JAR_PATH = "lib/plugins/vish_editor/extras/compile"
2525
JSCOMPILER_JAR_FILE = COMPILER_JAR_PATH + "/compiler.jar"
2626
CSSCOMPILER_JAR_FILE = COMPILER_JAR_PATH + "/yuicompressor-2.4.2.jar"
2727
# JSCOMPILER_DOWNLOAD_URI = 'http://closure-compiler.googlecode.com/files/compiler-latest.zip'
@@ -95,22 +95,22 @@ namespace :vish_editor do
9595

9696
#Combine css files
9797
puts "Creating vishViewer.css"
98-
CSS_VIEWER.collect! {|x| "vendor/plugins/vish_editor/app/assets/css_to_compile/all/" + x }
98+
CSS_VIEWER.collect! {|x| "lib/plugins/vish_editor/app/assets/css_to_compile/all/" + x }
9999
system "cat " + CSS_VIEWER.join(' ') + " > vishViewer.css"
100100
puts "vishViewer.css created"
101101

102102
puts "Creating vishEditor.css"
103-
CSS_EDITOR.concat(Dir[ File.join("vendor/plugins/vish_editor/app/assets/css_to_compile/all/", "*.css") ].sort)
103+
CSS_EDITOR.concat(Dir[ File.join("lib/plugins/vish_editor/app/assets/css_to_compile/all/", "*.css") ].sort)
104104
CSS_EDITOR.uniq!
105105
CSS_EDITOR.each do |file|
106106
puts "#{file}"
107107
end
108108
system "cat " + CSS_EDITOR.join(' ') + " > vishEditor.css"
109109
puts "vishEditor.css created"
110110

111-
system "rm vendor/plugins/vish_editor/app/assets/css_to_compile/all/*.css"
112-
system "mv vishViewer.css vendor/plugins/vish_editor/app/assets/css_to_compile/all/vishViewer.css"
113-
system "mv vishEditor.css vendor/plugins/vish_editor/app/assets/css_to_compile/all/vishEditor.css"
111+
system "rm lib/plugins/vish_editor/app/assets/css_to_compile/all/*.css"
112+
system "mv vishViewer.css lib/plugins/vish_editor/app/assets/css_to_compile/all/vishViewer.css"
113+
system "mv vishEditor.css lib/plugins/vish_editor/app/assets/css_to_compile/all/vishEditor.css"
114114

115115
puts ""
116116
puts "Compiling CSS"
@@ -234,7 +234,7 @@ namespace :vish_editor do
234234
puts ""
235235

236236
puts "and now ViSH Viewer..."
237-
JS_VIEWER.collect! {|x| "vendor/plugins/vish_editor/app/assets/js_to_compile/" + x }
237+
JS_VIEWER.collect! {|x| "lib/plugins/vish_editor/app/assets/js_to_compile/" + x }
238238
compiler_options['--js'] = JS_VIEWER.join(' ')
239239
compiler_options['--js_output_file'] = "vishViewer.min.js"
240240
compiler_options2['--js'] = JS_VIEWER.join(' ')

0 commit comments

Comments
 (0)