Browse Source

remove 'amber/Platform' pseudo-dep

Herbert Vojčík 1 month 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) {
76 76
                 options: {
77 77
                     mainConfigFile: "config.js",
78 78
                     rawText: {
79
-                        "amber/Platform": "/* stub */", //eg. nothing, TODO remove
80 79
                         "__app__": "(" + function () {
81 80
                             define(["amber/devel", "amber_core/Platform-Node", "amber_cli/AmberCli"], function (amber) {
82 81
                                 amber.initialize().then(function () {
@@ -104,7 +103,6 @@ module.exports = function (grunt) {
104 103
                 options: {
105 104
                     mainConfigFile: "config.js",
106 105
                     rawText: {
107
-                        "amber/Platform": "/* stub */", //eg. nothing, TODO remove
108 106
                         "__app__": "(" + function () {
109 107
                             define(["amber/devel", "amber_core/Platform-Node", "amber_devkit/NodeTestRunner"], function (amber) {
110 108
                                 amber.initialize().then(function () {

+ 1 - 6
internal/index.html

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

+ 0 - 1
support/deploy.js

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