DEV: update ACE Editor to 1.4.2

DEV: update ACE Editor to 1.4.2

Remove duplicate “src-min” folder and fix rake task

Remove unused “snippets” folder

diff --git a/lib/tasks/javascript.rake b/lib/tasks/javascript.rake
index c2a1004..8bd8952 100644
--- a/lib/tasks/javascript.rake
+++ b/lib/tasks/javascript.rake
@@ -19,7 +19,7 @@ task 'javascript:update' do
 
   dependencies = [
     {
-      source: 'ace-builds/src-min',
+      source: 'ace-builds/src-min-noconflict/.',
       destination: 'ace',
       public: true
     }, {
@@ -69,7 +69,7 @@ task 'javascript:update' do
     }, {
       source: 'moment/moment.js'
     }, {
-      source: 'moment/locale',
+      source: 'moment/locale/.',
       destination: 'moment-locale',
     }, {
       source: 'moment-timezone/builds/moment-timezone-with-data.js'
@@ -106,6 +106,11 @@ task 'javascript:update' do
       system("rm -rf node_modules/highlight.js/build/styles")
     end
 
+    if src.include? "ace-builds"
+      puts "Cleanup unused snippets folder for ACE"
+      system("rm -rf node_modules/ace-builds/src-min-noconflict/snippets")
+    end
+
     if f[:public]
       dest = "#{public_js}/#{filename}"
     else
diff --git a/package.json b/package.json
index 3e21353..7629ddd 100644
--- a/package.json
+++ b/package.json
@@ -7,7 +7,7 @@
   "license": "MIT",
   "dependencies": {
     "@fortawesome/fontawesome-free": "5.5.0",
-    "ace-builds": "1.4.1",
+    "ace-builds": "1.4.2",
     "bootbox": "3.2.0",
     "chart.js": "2.7.3",
     "favcount": "https://github.com/chrishunt/favcount",
diff --git a/public/javascripts/ace/ace.js b/public/javascripts/ace/ace.js
index 5b7ac76..58119de 100644
--- a/public/javascripts/ace/ace.js
+++ b/public/javascripts/ace/ace.js
@@ -1,11 +1,17 @@

[... diff too long, it was truncated ...]

GitHub sha: e55c19d8

3 Likes