浏览代码

amber_cli with its own local.amd.json

So there is no need to explicitly map it in internal/index.html

(output of `amber/config` not added into git yet, since idk what will be the policy,
though probably to include it, we include .js files, which are also generated)
Herbert Vojčík 10 年之前
父节点
当前提交
05c38aae06
共有 2 个文件被更改,包括 6 次插入6 次删除
  1. 5 0
      external/amber-cli/local.amd.json
  2. 1 6
      internal/index.html

+ 5 - 0
external/amber-cli/local.amd.json

@@ -0,0 +1,5 @@
+{
+    "paths": {
+        "amber_cli": "src"
+    }
+}

+ 1 - 6
internal/index.html

@@ -11,12 +11,7 @@
 
 <body>
 <script type='text/javascript'>
-    require.config({
-        baseUrl: '..',
-        paths: {
-            'amber_cli': 'external/amber-cli/src'
-        }
-    });
+    require.config({baseUrl: '..'});
     require(
         ["amber/devel", "amber_cli/AmberCli"],
         function (smalltalk) {