|
|
@@ -92,6 +92,16 @@ module.exports = function (grunt) {
|
|
|
mainConfigFile: "config.js",
|
|
|
rawText: {
|
|
|
"jquery": "/* do not load in node test runner */",
|
|
|
+ "codemirror/lib/codemirror": "(" + function () {
|
|
|
+ define(function () {
|
|
|
+ function CodeMirror() {}
|
|
|
+ CodeMirror.keyMap = {"default": {}};
|
|
|
+ CodeMirror.commands = {};
|
|
|
+ return CodeMirror;
|
|
|
+ });
|
|
|
+ } + "());",
|
|
|
+ "codemirror/addon/hint/show-hint": "/* do not load in node test runner */",
|
|
|
+ "codemirror/mode/smalltalk/smalltalk": "/* do not load in node test runner */",
|
|
|
"__app__": "(" + function () {
|
|
|
define(["amber/deploy", "helios/all", "amber/core/Platform-Node", "amber_devkit/NodeTestRunner"], function (amber) {
|
|
|
amber.initialize().then(function () {
|
|
|
@@ -107,6 +117,7 @@ module.exports = function (grunt) {
|
|
|
},
|
|
|
include: ['app'],
|
|
|
findNestedDependencies: true,
|
|
|
+ exclude: ['css!codemirror/lib/codemirror'],
|
|
|
insertRequire: ['app'],
|
|
|
optimize: "none",
|
|
|
wrap: helpers.nodeWrapperWithShebang,
|