Fix GDJS tests (regression since rework of GDJS build in the editor)

Don't show in changelog
This commit is contained in:
Florian Rival
2021-07-13 13:46:29 +01:00
parent f3a49ad2cf
commit 5d6a2bb3a0
2 changed files with 58 additions and 58 deletions

View File

@@ -15,12 +15,12 @@ const renameBuiltFile = (outPath) => {
return outPath.replace(/\.ts$/, '.js');
};
const bundledOutPath = args.out;
if (!bundledOutPath) {
const bundledOutPath =
args.out || path.join(__dirname, '../../newIDE/app/resources/GDJS/Runtime');
if (!args.out) {
shell.echo(
` --out (path where to build GDJS Runtime and Extensions) is required.`
` --out (path where to build GDJS Runtime and Extensions) not specified. Using "../../newIDE/app/resources/GDJS/Runtime" by default (used by electron-app and GDJS tests).`
);
shell.exit(1);
}
shell.mkdir('-p', bundledOutPath);

View File

@@ -20,62 +20,62 @@ module.exports = function (config) {
'node_modules/expect.js/index.js',
//GDJS game engine files: (Order is important)
'../Runtime-dist/libs/jshashtable.js',
'../Runtime-dist/gd.js',
'../Runtime-dist/libs/rbush.js',
'../Runtime-dist/cocos-renderers/cocos-director-manager.js',
'../Runtime-dist/pixi-renderers/pixi.js',
'../Runtime-dist/pixi-renderers/*.js',
'../Runtime-dist/howler-sound-manager/howler.min.js',
'../Runtime-dist/howler-sound-manager/howler-sound-manager.js',
'../Runtime-dist/fontfaceobserver-font-manager/fontfaceobserver.js',
'../Runtime-dist/fontfaceobserver-font-manager/fontfaceobserver-font-manager.js',
'../Runtime-dist/jsonmanager.js',
'../Runtime-dist/timemanager.js',
'../Runtime-dist/timemanager.js',
'../Runtime-dist/runtimeobject.js',
'../Runtime-dist/runtimescene.js',
'../Runtime-dist/scenestack.js',
'../Runtime-dist/profiler.js',
'../Runtime-dist/polygon.js',
'../Runtime-dist/force.js',
'../Runtime-dist/layer.js',
'../Runtime-dist/timer.js',
'../Runtime-dist/inputmanager.js',
'../Runtime-dist/runtimegame.js',
'../Runtime-dist/variable.js',
'../Runtime-dist/variablescontainer.js',
'../Runtime-dist/oncetriggers.js',
'../Runtime-dist/runtimebehavior.js',
'../Runtime-dist/spriteruntimeobject.js',
'../Runtime-dist/events-tools/commontools.js',
'../Runtime-dist/events-tools/runtimescenetools.js',
'../Runtime-dist/events-tools/inputtools.js',
'../Runtime-dist/events-tools/networktools.js',
'../Runtime-dist/events-tools/objecttools.js',
'../Runtime-dist/events-tools/cameratools.js',
'../Runtime-dist/events-tools/soundtools.js',
'../Runtime-dist/events-tools/storagetools.js',
'../Runtime-dist/events-tools/stringtools.js',
'../Runtime-dist/events-tools/windowtools.js',
'../Runtime-dist/websocket-debugger-client/hot-reloader.js',
'../../newIDE/app/resources/GDJS/Runtime/libs/jshashtable.js',
'../../newIDE/app/resources/GDJS/Runtime/gd.js',
'../../newIDE/app/resources/GDJS/Runtime/libs/rbush.js',
'../../newIDE/app/resources/GDJS/Runtime/cocos-renderers/cocos-director-manager.js',
'../../newIDE/app/resources/GDJS/Runtime/pixi-renderers/pixi.js',
'../../newIDE/app/resources/GDJS/Runtime/pixi-renderers/*.js',
'../../newIDE/app/resources/GDJS/Runtime/howler-sound-manager/howler.min.js',
'../../newIDE/app/resources/GDJS/Runtime/howler-sound-manager/howler-sound-manager.js',
'../../newIDE/app/resources/GDJS/Runtime/fontfaceobserver-font-manager/fontfaceobserver.js',
'../../newIDE/app/resources/GDJS/Runtime/fontfaceobserver-font-manager/fontfaceobserver-font-manager.js',
'../../newIDE/app/resources/GDJS/Runtime/jsonmanager.js',
'../../newIDE/app/resources/GDJS/Runtime/timemanager.js',
'../../newIDE/app/resources/GDJS/Runtime/timemanager.js',
'../../newIDE/app/resources/GDJS/Runtime/runtimeobject.js',
'../../newIDE/app/resources/GDJS/Runtime/runtimescene.js',
'../../newIDE/app/resources/GDJS/Runtime/scenestack.js',
'../../newIDE/app/resources/GDJS/Runtime/profiler.js',
'../../newIDE/app/resources/GDJS/Runtime/polygon.js',
'../../newIDE/app/resources/GDJS/Runtime/force.js',
'../../newIDE/app/resources/GDJS/Runtime/layer.js',
'../../newIDE/app/resources/GDJS/Runtime/timer.js',
'../../newIDE/app/resources/GDJS/Runtime/inputmanager.js',
'../../newIDE/app/resources/GDJS/Runtime/runtimegame.js',
'../../newIDE/app/resources/GDJS/Runtime/variable.js',
'../../newIDE/app/resources/GDJS/Runtime/variablescontainer.js',
'../../newIDE/app/resources/GDJS/Runtime/oncetriggers.js',
'../../newIDE/app/resources/GDJS/Runtime/runtimebehavior.js',
'../../newIDE/app/resources/GDJS/Runtime/spriteruntimeobject.js',
'../../newIDE/app/resources/GDJS/Runtime/events-tools/commontools.js',
'../../newIDE/app/resources/GDJS/Runtime/events-tools/runtimescenetools.js',
'../../newIDE/app/resources/GDJS/Runtime/events-tools/inputtools.js',
'../../newIDE/app/resources/GDJS/Runtime/events-tools/networktools.js',
'../../newIDE/app/resources/GDJS/Runtime/events-tools/objecttools.js',
'../../newIDE/app/resources/GDJS/Runtime/events-tools/cameratools.js',
'../../newIDE/app/resources/GDJS/Runtime/events-tools/soundtools.js',
'../../newIDE/app/resources/GDJS/Runtime/events-tools/storagetools.js',
'../../newIDE/app/resources/GDJS/Runtime/events-tools/stringtools.js',
'../../newIDE/app/resources/GDJS/Runtime/events-tools/windowtools.js',
'../../newIDE/app/resources/GDJS/Runtime/websocket-debugger-client/hot-reloader.js',
//Extensions:
'../Runtime-dist/Extensions/DraggableBehavior/draggableruntimebehavior.js',
'../Runtime-dist/Extensions/PlatformBehavior/platformerobjectruntimebehavior.js',
'../Runtime-dist/Extensions/PlatformBehavior/platformruntimebehavior.js',
'../Runtime-dist/Extensions/LinkedObjects/linkedobjects.js',
'../Runtime-dist/Extensions/Inventory/inventory.js',
'../Runtime-dist/Extensions/Inventory/inventorytools.js',
'../Runtime-dist/Extensions/Lighting/lightruntimeobject.js',
'../Runtime-dist/Extensions/Lighting/lightruntimeobject-pixi-renderer.js',
'../Runtime-dist/Extensions/Lighting/lightobstacleruntimebehavior.js',
'../Runtime-dist/Extensions/PathfindingBehavior/pathfindingobstacleruntimebehavior.js',
'../Runtime-dist/Extensions/PathfindingBehavior/pathfindingruntimebehavior.js',
'../Runtime-dist/Extensions/TopDownMovementBehavior/topdownmovementruntimebehavior.js',
'../Runtime-dist/Extensions/TopDownMovementBehavior/topdownobstacleruntimebehavior.js',
'../Runtime-dist/Extensions/Firebase/A_firebasejs/*.js',
'../Runtime-dist/Extensions/Firebase/B_firebasetools/*.js',
'../../newIDE/app/resources/GDJS/Runtime/Extensions/DraggableBehavior/draggableruntimebehavior.js',
'../../newIDE/app/resources/GDJS/Runtime/Extensions/PlatformBehavior/platformerobjectruntimebehavior.js',
'../../newIDE/app/resources/GDJS/Runtime/Extensions/PlatformBehavior/platformruntimebehavior.js',
'../../newIDE/app/resources/GDJS/Runtime/Extensions/LinkedObjects/linkedobjects.js',
'../../newIDE/app/resources/GDJS/Runtime/Extensions/Inventory/inventory.js',
'../../newIDE/app/resources/GDJS/Runtime/Extensions/Inventory/inventorytools.js',
'../../newIDE/app/resources/GDJS/Runtime/Extensions/Lighting/lightruntimeobject.js',
'../../newIDE/app/resources/GDJS/Runtime/Extensions/Lighting/lightruntimeobject-pixi-renderer.js',
'../../newIDE/app/resources/GDJS/Runtime/Extensions/Lighting/lightobstacleruntimebehavior.js',
'../../newIDE/app/resources/GDJS/Runtime/Extensions/PathfindingBehavior/pathfindingobstacleruntimebehavior.js',
'../../newIDE/app/resources/GDJS/Runtime/Extensions/PathfindingBehavior/pathfindingruntimebehavior.js',
'../../newIDE/app/resources/GDJS/Runtime/Extensions/TopDownMovementBehavior/topdownmovementruntimebehavior.js',
'../../newIDE/app/resources/GDJS/Runtime/Extensions/TopDownMovementBehavior/topdownobstacleruntimebehavior.js',
'../../newIDE/app/resources/GDJS/Runtime/Extensions/Firebase/A_firebasejs/*.js',
'../../newIDE/app/resources/GDJS/Runtime/Extensions/Firebase/B_firebasetools/*.js',
// Test extensions:
'./tests/Extensions/**.js',