Browse Source

Merge pull request #1031 from herby/helios-librarifying

Helios librarifying
Nicolas Petton 10 years ago
parent
commit
2c114b8e67
5 changed files with 33 additions and 30 deletions
  1. 1 1
      index.html
  2. 0 28
      resources/all-inner.js
  3. 10 0
      resources/set-inner.js
  4. 1 1
      set.js
  5. 21 0
      src/all.js

+ 1 - 1
index.html

@@ -14,7 +14,7 @@
       <script type='text/javascript' src='../requirejs/require.min.js'></script>
       <script type='text/javascript'>
           require(
-                  ["helios/all"],
+                  ["helios/set"],
                   function (smalltalk) {
                       window.onbeforeunload = function() {
                           return 'Do you want to close Amber? All uncommitted changes will be lost.';

+ 0 - 28
resources/all-inner.js

@@ -1,28 +0,0 @@
-// Loading this in nested file so that require.config
-// with shim dependencies is in effect.
-// See http://stackoverflow.com/questions/21647956/how-to-config-requirejs-shim-dependencies-just-in-time/
-
-define([
-	'amber/devel-inner',
-	'bootstrap2.3.2/js/bootstrap',
-	'amber_lib/showdown/compressed/showdown',
-	'helios/Helios-Core',
-	'helios/Helios-Exceptions',
-	'helios/Helios-Helpers',
-	'helios/Helios-Commands-Core',
-	'helios/Helios-Commands-Tools',
-	'helios/Helios-Commands-Browser',
-	'helios/Helios-Commands-SUnit',
-	'helios/Helios-Layout',
-	'helios/Helios-KeyBindings',
-	'helios/Helios-Browser',
-	'helios/Helios-Workspace',
-	'helios/Helios-Transcript',
-	'helios/Helios-SUnit',
-	'helios/Helios-SUnit-Tests',
-	'helios/Helios-Debugger',
-	'helios/Helios-Inspector',
-	'helios/Helios-References',
-	'helios/Helios-Announcements',
-	'helios/Helios-Workspace-Tests'
-]);

+ 10 - 0
resources/set-inner.js

@@ -0,0 +1,10 @@
+// Loading this in nested file so that require.config
+// with shim dependencies is in effect.
+// See http://stackoverflow.com/questions/21647956/how-to-config-requirejs-shim-dependencies-just-in-time/
+
+define([
+	'amber/devel-inner',
+	'bootstrap2.3.2/js/bootstrap',
+	'amber_lib/showdown/compressed/showdown',
+    'helios/all'
+]);

+ 1 - 1
all.js → set.js

@@ -22,7 +22,7 @@ define([
 	'amber/lang',
 	'amber/codemirror',
 	'amber/devel-inner', // pre-fetch, dep of ./all-inner
-	'./resources/all-inner',
+	'./resources/set-inner',
     'css!./resources/helios',
 	'css!./resources/helios-niflheim',
     'css!./resources/niflheim'

+ 21 - 0
src/all.js

@@ -0,0 +1,21 @@
+define([
+	'./Helios-Core',
+	'./Helios-Exceptions',
+	'./Helios-Helpers',
+	'./Helios-Commands-Core',
+	'./Helios-Commands-Tools',
+	'./Helios-Commands-Browser',
+	'./Helios-Commands-SUnit',
+	'./Helios-Layout',
+	'./Helios-KeyBindings',
+	'./Helios-Browser',
+	'./Helios-Workspace',
+	'./Helios-Transcript',
+	'./Helios-SUnit',
+	'./Helios-SUnit-Tests',
+	'./Helios-Debugger',
+	'./Helios-Inspector',
+	'./Helios-References',
+	'./Helios-Announcements',
+	'./Helios-Workspace-Tests'
+]);