|
@@ -76,19 +76,25 @@ module.exports = function (grunt) {
|
|
|
options: {
|
|
|
mainConfigFile: "config.js",
|
|
|
rawText: {
|
|
|
- "amber/Platform": "define()",
|
|
|
- "app": "(" + function () {
|
|
|
+ "amber/compatibility": "/* stub */",
|
|
|
+ "amber/Platform": "/* stub */",
|
|
|
+ "amber/__app__": "(" + function () {
|
|
|
define(["amber/devel", "amber_core/Platform-Node", "amber_cli/AmberCli"], function (amber) {
|
|
|
amber.initialize().then(function () {
|
|
|
amber.globals.AmberCli._main();
|
|
|
});
|
|
|
});
|
|
|
+ } + "());",
|
|
|
+ "app": "(" + function () {
|
|
|
+ define(["require", "amber/es2015-polyfills"], function () {
|
|
|
+ require(["amber/__app__"]);
|
|
|
+ });
|
|
|
} + "());"
|
|
|
},
|
|
|
pragmas: {
|
|
|
|
|
|
},
|
|
|
- include: ['config-node', 'app', 'amber/lazypack'],
|
|
|
+ include: ['app', 'amber/lazypack', 'amber/__app__'],
|
|
|
insertRequire: ['app'],
|
|
|
optimize: "none",
|
|
|
wrap: helpers.nodeWrapperWithShebang,
|
|
@@ -99,20 +105,26 @@ module.exports = function (grunt) {
|
|
|
options: {
|
|
|
mainConfigFile: "config.js",
|
|
|
rawText: {
|
|
|
- "amber/Platform": "define()",
|
|
|
- "app": "(" + function () {
|
|
|
+ "amber/compatibility": "/* stub */",
|
|
|
+ "amber/Platform": "/* stub */",
|
|
|
+ "amber/__app__": "(" + function () {
|
|
|
define(["amber/devel", "amber_core/Platform-Node", "amber_devkit/NodeTestRunner"], function (amber) {
|
|
|
amber.initialize().then(function () {
|
|
|
amber.globals.NodeTestRunner._main();
|
|
|
});
|
|
|
});
|
|
|
+ } + "());",
|
|
|
+ "app": "(" + function () {
|
|
|
+ define(["require", "amber/es2015-polyfills"], function () {
|
|
|
+ require(["amber/__app__"]);
|
|
|
+ });
|
|
|
} + "());"
|
|
|
},
|
|
|
paths: {"amber_devkit": helpers.libPath},
|
|
|
pragmas: {
|
|
|
|
|
|
},
|
|
|
- include: ['config-node', 'app', 'amber/lazypack'],
|
|
|
+ include: ['app', 'amber/lazypack', 'amber/__app__'],
|
|
|
insertRequire: ['app'],
|
|
|
optimize: "none",
|
|
|
wrap: helpers.nodeWrapperWithShebang,
|