Browse Source

amber-attic => amber-contrib-legacy; ns: amber/legacy

Herbert Vojčík 2 years ago
parent
commit
ad1b132347
9 changed files with 25 additions and 17 deletions
  1. 1 1
      Gruntfile.js
  2. 1 1
      bower.json
  3. 3 3
      deploy.js
  4. 1 1
      index.html
  5. 11 3
      local.amd.json
  6. 2 2
      package.json
  7. 2 2
      src/Benchfib.js
  8. 2 2
      src/Examples.js
  9. 2 2
      src/IDE.js

+ 1 - 1
Gruntfile.js

@@ -45,7 +45,7 @@ module.exports = function (grunt) {
45 45
                     'src/Benchfib.st', 'src/Examples.st', 'src/IDE.st' // list all sources in dependency order
46 46
                     // list all tests in dependency order
47 47
                 ],
48
-                amd_namespace: 'amber-attic',
48
+                amd_namespace: 'amber/legacy',
49 49
                 libraries: ['Web']
50 50
             }
51 51
         },

+ 1 - 1
bower.json

@@ -1,5 +1,5 @@
1 1
 {
2
-    "name": "amber-attic",
2
+    "name": "amber-contrib-legacy",
3 3
     "description": "Legacy IDE and a few other old non-core packages",
4 4
     "version": "0.1.6",
5 5
     "ignore": [

+ 3 - 3
deploy.js

@@ -1,9 +1,9 @@
1 1
 define([
2 2
     'amber/deploy',
3 3
     // --- packages to be deployed begin here ---
4
-    'amber-attic/Benchfib',
5
-    'amber-attic/Examples',
6
-    'amber-attic/IDE'
4
+    'amber/legacy/Benchfib',
5
+    'amber/legacy/Examples',
6
+    'amber/legacy/IDE'
7 7
     // --- packages to be deployed end here ---
8 8
 ], function (amber) {
9 9
     return amber;

+ 1 - 1
index.html

@@ -13,7 +13,7 @@
13 13
       require(['app'], function (amber) {
14 14
           amber.initialize({
15 15
             //used for all new packages in IDE
16
-            'transport.defaultAmdNamespace': "amber-attic"
16
+            'transport.defaultAmdNamespace': "amber/legacy"
17 17
           });
18 18
           require(["amber-ide-starter-dialog"], function (dlg) { dlg.start(); });
19 19
       });

+ 11 - 3
local.amd.json

@@ -1,6 +1,14 @@
1 1
 {
2
-    "paths": {
3
-        "amber-attic": "src",
4
-        "amber-attic/resources": "resources"
2
+  "paths": {
3
+    "amber/legacy": "src",
4
+    "amber/legacy/resources": "resources"
5
+  },
6
+  "map": {
7
+    "*": {
8
+      "00comment": "These are backward compatibility pointers.",
9
+      "amber-attic/Benchfib": "amber/legacy/Benchfib",
10
+      "amber-attic/Examples": "amber/legacy/Examples",
11
+      "amber-attic/IDE": "amber/legacy/IDE"
5 12
     }
13
+  }
6 14
 }

+ 2 - 2
package.json

@@ -1,5 +1,5 @@
1 1
 {
2
-  "name": "amber-attic",
2
+  "name": "amber-contrib-legacy",
3 3
   "title": "Amber legacy items",
4 4
   "description": "Legacy IDE and a few other old non-core packages",
5 5
   "version": "0.1.6",
@@ -10,7 +10,7 @@
10 10
   },
11 11
   "repository": {
12 12
     "type": "git",
13
-    "url": "git://guthub.com/amber-smalltalk/amber-attic.git"
13
+    "url": "git://github.com/amber-smalltalk/amber-contrib-legacy.git"
14 14
   },
15 15
   "licenses": [
16 16
     {

+ 2 - 2
src/Benchfib.js

@@ -1,8 +1,8 @@
1
-define("amber-attic/Benchfib", ["amber/boot", "amber_core/Kernel-Objects"], function($boot){
1
+define("amber/legacy/Benchfib", ["amber/boot", "amber_core/Kernel-Objects"], function($boot){
2 2
 var $core=$boot.api,nil=$boot.nil,$recv=$boot.asReceiver,$globals=$boot.globals;
3 3
 $core.addPackage('Benchfib');
4 4
 $core.packages["Benchfib"].innerEval = function (expr) { return eval(expr); };
5
-$core.packages["Benchfib"].transport = {"type":"amd","amdNamespace":"amber-attic"};
5
+$core.packages["Benchfib"].transport = {"type":"amd","amdNamespace":"amber/legacy"};
6 6
 
7 7
 $core.addClass('Benchfib', $globals.Object, [], 'Benchfib');
8 8
 

+ 2 - 2
src/Examples.js

@@ -1,8 +1,8 @@
1
-define("amber-attic/Examples", ["amber/boot", "amber/web/Web"], function($boot){
1
+define("amber/legacy/Examples", ["amber/boot", "amber/web/Web"], function($boot){
2 2
 var $core=$boot.api,nil=$boot.nil,$recv=$boot.asReceiver,$globals=$boot.globals;
3 3
 $core.addPackage('Examples');
4 4
 $core.packages["Examples"].innerEval = function (expr) { return eval(expr); };
5
-$core.packages["Examples"].transport = {"type":"amd","amdNamespace":"amber-attic"};
5
+$core.packages["Examples"].transport = {"type":"amd","amdNamespace":"amber/legacy"};
6 6
 
7 7
 $core.addClass('Counter', $globals.Widget, ['count', 'header'], 'Examples');
8 8
 //>>excludeStart("ide", pragmas.excludeIdeData);

+ 2 - 2
src/IDE.js

@@ -1,4 +1,4 @@
1
-define("amber-attic/IDE", ["amber/boot"
1
+define("amber/legacy/IDE", ["amber/boot"
2 2
 //>>excludeStart("imports", pragmas.excludeImports);
3 3
 , "codemirror/addon/hint/show-hint", "codemirror/lib/codemirror", "codemirror/mode/smalltalk/smalltalk", "css!./resources/amber", "css!codemirror/addon/hint/show-hint", "css!codemirror/lib/codemirror", "css!codemirror/theme/ambiance", "jquery-ui"
4 4
 //>>excludeEnd("imports");
@@ -11,7 +11,7 @@ var $core=$boot.api,nil=$boot.nil,$recv=$boot.asReceiver,$globals=$boot.globals;
11 11
 $core.addPackage('IDE');
12 12
 $core.packages["IDE"].innerEval = function (expr) { return eval(expr); };
13 13
 $core.packages["IDE"].imports = ["codemirror/addon/hint/show-hint", "codemirror/lib/codemirror", "codemirror/mode/smalltalk/smalltalk", "css!./resources/amber", "css!codemirror/addon/hint/show-hint", "css!codemirror/lib/codemirror", "css!codemirror/theme/ambiance", "jquery-ui"];
14
-$core.packages["IDE"].transport = {"type":"amd","amdNamespace":"amber-attic"};
14
+$core.packages["IDE"].transport = {"type":"amd","amdNamespace":"amber/legacy"};
15 15
 
16 16
 $core.addClass('ClassesList', $globals.Widget, ['browser', 'ul', 'nodes'], 'IDE');
17 17
 $core.addMethod(