Browse Source

remove 'amber/Platform' pseudo-dep

Herbert Vojčík 6 years ago
parent
commit
1b455f5788
3 changed files with 1 additions and 9 deletions
  1. 0 2
      Gruntfile.js
  2. 1 6
      internal/index.html
  3. 0 1
      support/deploy.js

+ 0 - 2
Gruntfile.js

@@ -76,7 +76,6 @@ module.exports = function (grunt) {
                 options: {
                     mainConfigFile: "config.js",
                     rawText: {
-                        "amber/Platform": "/* stub */", //eg. nothing, TODO remove
                         "__app__": "(" + function () {
                             define(["amber/devel", "amber_core/Platform-Node", "amber_cli/AmberCli"], function (amber) {
                                 amber.initialize().then(function () {
@@ -104,7 +103,6 @@ module.exports = function (grunt) {
                 options: {
                     mainConfigFile: "config.js",
                     rawText: {
-                        "amber/Platform": "/* stub */", //eg. nothing, TODO remove
                         "__app__": "(" + function () {
                             define(["amber/devel", "amber_core/Platform-Node", "amber_devkit/NodeTestRunner"], function (amber) {
                                 amber.initialize().then(function () {

+ 1 - 6
internal/index.html

@@ -6,12 +6,7 @@
     <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
     <meta name="author" content="Nicolas Petton"/>
     <script>
-        var require = {
-            baseUrl: "..",
-            map: {"*": {
-                "amber/Platform": "amber/brikz", //eg. nothing, TODO remove
-            }}
-        };
+        var require = {baseUrl: ".."};
     </script>
     <script type='text/javascript' src='../node_modules/requirejs/require.js'></script>
     <script type='text/javascript' src='../config.js'></script>

+ 0 - 1
support/deploy.js

@@ -13,7 +13,6 @@ define([
     'amber_core/Kernel-Exceptions',
     'amber_core/Kernel-Announcements',
     'amber_core/Platform-Services',
-    'amber/Platform' // TODO remove
     // --- packages of the core Amber end here ---
 ], function (amber) {
     return amber;