Browse Source

deprecation off: amber_vm/... amd modules

Use amber/boot exports.
Herbert Vojčík 9 years ago
parent
commit
1a48d7c7f3

+ 8 - 10
config.js

@@ -4,17 +4,15 @@ var require;
 if (!require) require = {config: function (x) {require = x;}};
 require.config({
   "paths": {
-    "require-css": "bower_components/require-css",
-    "jquery": "bower_components/jquery/jquery",
     "jquery-ui": "bower_components/jquery-ui/jquery-ui",
-    "amber_lib/es5-shim": "bower_components/es5-shim",
+    "jquery": "bower_components/jquery/jquery",
+    "require-css": "bower_components/require-css",
     "codemirror": "bower_components/codemirror",
+    "amber_lib/es5-shim": "bower_components/es5-shim",
     "helios/showdown": "my/helios/bower_components/showdown/src/showdown",
     "requireJS": "node_modules/requirejs/require",
     "bootstrap2.3.2": "my/helios/bower_components/bootstrap2.3.2/bootstrap",
     "amber": "support",
-    "amber_vm": "support/deprecated-vm-files",
-    "amber_vm/_st": "support/deprecated-vm-files/as-receiver",
     "amber_css": "support/resources",
     "amber_core": "src",
     "helios": "my/helios/src",
@@ -22,11 +20,6 @@ require.config({
     "helios/index": "my/helios/index",
     "amber_cli": "external/amber-cli/src"
   },
-  "map": {
-    "*": {
-      "css": "require-css/css"
-    }
-  },
   "shim": {
     "jquery-ui": {
       "deps": [
@@ -54,6 +47,11 @@ require.config({
       "exports": "console"
     }
   },
+  "map": {
+    "*": {
+      "css": "require-css/css"
+    }
+  },
   "rjs_comment1": "require.min should be removed",
   "rjs_comment2": "it's backward compatibility hack if config finds",
   "rjs_comment3": "support/requirejs before node_modules/requirejs;",

+ 0 - 2
local.amd.json

@@ -1,8 +1,6 @@
 {
     "paths": {
         "amber": "support",
-        "amber_vm": "support/deprecated-vm-files",
-        "amber_vm/_st": "support/deprecated-vm-files/as-receiver",
         "amber_css": "support/resources",
         "amber_core": "src"
     },

+ 0 - 3
support/deprecated-vm-files/_st.js

@@ -1,3 +0,0 @@
-define("amber_vm/_st", ["./boot"], function (boot) {
-    return boot.asReceiver;
-});

+ 0 - 3
support/deprecated-vm-files/as-receiver.js

@@ -1,3 +0,0 @@
-define("amber_vm/_st", ["./boot"], function (boot) {
-    return boot.asReceiver;
-});

+ 0 - 3
support/deprecated-vm-files/boot.js

@@ -1,3 +0,0 @@
-define("amber_vm/boot", ["amber/boot"], function (boot) {
-    return boot;
-});

+ 0 - 3
support/deprecated-vm-files/globals.js

@@ -1,3 +0,0 @@
-define("amber_vm/globals", ["./boot"], function (boot) {
-    return boot.globals;
-});

+ 0 - 3
support/deprecated-vm-files/nil.js

@@ -1,3 +0,0 @@
-define("amber_vm/nil", ["./boot"], function (boot) {
-    return boot.nil;
-});

+ 0 - 4
support/deprecated-vm-files/smalltalk.js

@@ -1,4 +0,0 @@
-define("amber_vm/smalltalk", ["./boot"], function (boot) {
-    return boot.vm;
-});
-