Browse Source

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

Herbert Vojčík 3 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) {
                     'src/Benchfib.st', 'src/Examples.st', 'src/IDE.st' // list all sources in dependency order
                     // list all tests in dependency order
                 ],
-                amd_namespace: 'amber-attic',
+                amd_namespace: 'amber/legacy',
                 libraries: ['Web']
             }
         },

+ 1 - 1
bower.json

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

+ 3 - 3
deploy.js

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

+ 1 - 1
index.html

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

+ 11 - 3
local.amd.json

@@ -1,6 +1,14 @@
 {
-    "paths": {
-        "amber-attic": "src",
-        "amber-attic/resources": "resources"
+  "paths": {
+    "amber/legacy": "src",
+    "amber/legacy/resources": "resources"
+  },
+  "map": {
+    "*": {
+      "00comment": "These are backward compatibility pointers.",
+      "amber-attic/Benchfib": "amber/legacy/Benchfib",
+      "amber-attic/Examples": "amber/legacy/Examples",
+      "amber-attic/IDE": "amber/legacy/IDE"
     }
+  }
 }

+ 2 - 2
package.json

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

+ 2 - 2
src/Benchfib.js

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

+ 2 - 2
src/Examples.js

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

+ 2 - 2
src/IDE.js

@@ -1,4 +1,4 @@
-define("amber-attic/IDE", ["amber/boot"
+define("amber/legacy/IDE", ["amber/boot"
 //>>excludeStart("imports", pragmas.excludeImports);
 , "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"
 //>>excludeEnd("imports");
@@ -11,7 +11,7 @@ var $core=$boot.api,nil=$boot.nil,$recv=$boot.asReceiver,$globals=$boot.globals;
 $core.addPackage('IDE');
 $core.packages["IDE"].innerEval = function (expr) { return eval(expr); };
 $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"];
-$core.packages["IDE"].transport = {"type":"amd","amdNamespace":"amber-attic"};
+$core.packages["IDE"].transport = {"type":"amd","amdNamespace":"amber/legacy"};
 
 $core.addClass('ClassesList', $globals.Widget, ['browser', 'ul', 'nodes'], 'IDE');
 $core.addMethod(