Browse Source

Move ownership from amber-contrib to herby. Renamings etc.

Herbert Vojčík 5 years ago
parent
commit
3b1cc0b69d
7 changed files with 19 additions and 19 deletions
  1. 1 1
      Gruntfile.js
  2. 4 4
      README.md
  3. 1 1
      deploy.js
  4. 8 8
      local.amd.json
  5. 2 2
      src/DOMite-Tests.js
  6. 2 2
      src/DOMite.js
  7. 1 1
      testing.js

+ 1 - 1
Gruntfile.js

@@ -36,7 +36,7 @@ module.exports = function (grunt) {
                     'src/DOMite.st', // list all sources in dependency order
                     'src/DOMite-Tests.st' // list all tests in dependency order
                 ],
-                amd_namespace: 'amber/domite',
+                amd_namespace: 'domite',
                 libraries: ['amber_core/SUnit']
             }
         },

+ 4 - 4
README.md

@@ -14,16 +14,16 @@ include `amber-compat-es5` and also shim event API
 
 - Install Amber ([Instructions](http://docs.amber-lang.net/faq.html))
 - Do ``amber init``
-- ``bower install amber-contrib-domite --save``
+- ``bower install domite --save``
 - ``grunt devel``
 - Start server with `amber serve` and go to `http://localhost:4000/`
 
-This makes modules from `amber/domite` namespace loadable.
+This makes modules from `domite` namespace loadable.
 
 To do so in the Helios IDE change the `imports:` section of your packages which use ``Domite`` to
-`imports: {'amber/domite/DOMite'}`.
+`imports: {'domite/DOMite'}`.
 
-Or you may add it to the `deploy.js` / `devel.js` files.
+Or you may add it to the `testing.js` / `devel.js` files.
 The former is preferred because of an easier deployment process.
 
 ## API (class doc of class Domite)

+ 1 - 1
deploy.js

@@ -1,7 +1,7 @@
 define([
     'amber/deploy',
     // --- packages to be deployed begin here ---
-    'amber/domite/DOMite'
+    'domite/DOMite'
     // --- packages to be deployed end here ---
 ], function (amber) {
     return amber;

+ 8 - 8
local.amd.json

@@ -1,11 +1,11 @@
 {
-    "paths": {
-        "amber/domite": "src"
-    },
-    "map": {
-        "*": {
-            "domite/DOMite": "amber/domite/DOMite",
-            "domite/DOMite-Tests": "amber/domite/DOMite-Tests"
-        }
+  "paths": {
+    "domite": "src"
+  },
+  "map": {
+    "*": {
+      "amber/domite/DOMite": "domite/DOMite",
+      "amber/domite/DOMite-Tests": "domite/DOMite-Tests"
     }
+  }
 }

+ 2 - 2
src/DOMite-Tests.js

@@ -1,8 +1,8 @@
-define("amber/domite/DOMite-Tests", ["amber/boot", "amber_core/SUnit"], function($boot){"use strict";
+define("domite/DOMite-Tests", ["amber/boot", "amber_core/SUnit"], function($boot){"use strict";
 var $core=$boot.api,nil=$boot.nil,$recv=$boot.asReceiver,$globals=$boot.globals;
 $core.addPackage('DOMite-Tests');
 $core.packages["DOMite-Tests"].innerEval = function (expr) { return eval(expr); };
-$core.packages["DOMite-Tests"].transport = {"type":"amd","amdNamespace":"amber/domite"};
+$core.packages["DOMite-Tests"].transport = {"type":"amd","amdNamespace":"domite"};
 
 $core.addClass('DOMiteTest', $globals.TestCase, ['fixtureDiv'], 'DOMite-Tests');
 $core.addMethod(

+ 2 - 2
src/DOMite.js

@@ -1,8 +1,8 @@
-define("amber/domite/DOMite", ["amber/boot", "amber_core/Kernel-Collections"], function($boot){"use strict";
+define("domite/DOMite", ["amber/boot", "amber_core/Kernel-Collections"], function($boot){"use strict";
 var $core=$boot.api,nil=$boot.nil,$recv=$boot.asReceiver,$globals=$boot.globals;
 $core.addPackage('DOMite');
 $core.packages["DOMite"].innerEval = function (expr) { return eval(expr); };
-$core.packages["DOMite"].transport = {"type":"amd","amdNamespace":"amber/domite"};
+$core.packages["DOMite"].transport = {"type":"amd","amdNamespace":"domite"};
 
 $core.addClass('Domite', $globals.ProtoStream, ['element', 'reference'], 'DOMite');
 //>>excludeStart("ide", pragmas.excludeIdeData);

+ 1 - 1
testing.js

@@ -2,7 +2,7 @@ define([
     './deploy',
     'amber_core/SUnit',
     // --- packages used only during automated testing begin here ---
-    'amber/domite/DOMite-Tests'
+    'domite/DOMite-Tests'
     // --- packages used only during automated testing end here ---
 ], function (amber) {
     return amber;