fixed compatibility of theme jakefiles with node

This commit is contained in:
daboe01 committed 2024-05-22 17:32:03 +02:00
1 parent b38a5d19b1
commit 89c00e193b
6 files changed
+15 -22

No files matched your search

+3 -2
View File
@@ -8,7 +8,6 @@ function callbackFunction(blendtask) {
callback(blendtask);
}
require("../../../CommonJS/lib/cappuccino/jake.js").initilize(callbackFunction);
$BUILD_CJS_BLENDTASK = path.join($BUILD_CJS_CAPPUCCINO, "lib", "cappuccino", "jake", "blendtask.j");
@@ -23,6 +22,8 @@ var promise = new Promise((resolve, reject) => {
}
});
require("../../../CommonJS/lib/cappuccino/jake.js").initilize(callbackFunction);
async function defineBlendTask() {
await exports.blend ("Aristo.blend", function(aristoTask)
{
@@ -36,4 +37,4 @@ async function defineBlendTask() {
task ("build", ["Aristo.blend"]);
}
exports.jakePromise = promise;
exports.jakePromise = promise;
+3 -2
View File
@@ -8,8 +8,6 @@ function callbackFunction(blendtask) {
callback(blendtask);
}
require("../../../CommonJS/lib/cappuccino/jake.js").initilize(callbackFunction);
$BUILD_CJS_BLENDTASK = path.join($BUILD_CJS_CAPPUCCINO, "lib", "cappuccino", "jake", "blendtask.j");
var promise = new Promise((resolve, reject) => {
@@ -23,6 +21,9 @@ var promise = new Promise((resolve, reject) => {
}
});
require("../../../CommonJS/lib/cappuccino/jake.js").initilize(callbackFunction);
async function defineBlendTask() {
await exports.blend ("Aristo2.blend", function(aristoTask)
{
+3 -2
View File
@@ -8,8 +8,6 @@ function callbackFunction(blendtask) {
callback(blendtask);
}
require("../../../CommonJS/lib/cappuccino/jake.js").initilize(callbackFunction);
$BUILD_CJS_BLENDTASK = path.join($BUILD_CJS_CAPPUCCINO, "lib", "cappuccino", "jake", "blendtask.j");
var promise = new Promise((resolve, reject) => {
@@ -23,6 +21,9 @@ var promise = new Promise((resolve, reject) => {
}
});
require("../../../CommonJS/lib/cappuccino/jake.js").initilize(callbackFunction);
async function defineBlendTask() {
await exports.blend ("Aristo3.blend", function(aristoTask)
{
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+6 -16
View File
@@ -4,11 +4,14 @@
var fs = require("fs"),
acorn = require("objj-parser"),
walk = require("acorn-walk"),
walk = require("objj-parser/util/walk"),
stream = ObjectiveJ.term;
debugger;
function main(args)
{
debugger;
args.shift();
if (args.length < 1)
@@ -37,8 +40,6 @@ function raise(pos, message)
throw syntaxError;
}
function ignore(_node, _st, _c) {}
var errors = [],
xcc = walk.make(
{
@@ -114,18 +115,7 @@ var errors = [],
else
raise(node.loc.start, "Action methods must have exactly one parameter");
}
},
TypeDefStatement: ignore,
ClassStatement: ignore,
MessageSendExpression: ignore,
GlobalStatement: ignore,
ProtocolDeclarationStatement: ignore,
ArrayLiteral: ignore,
Reference: ignore,
DictionaryLiteral: ignore,
Dereference: ignore,
ImportStatement: ignore,
SelectorLiteralExpression: ignore
}
}
);
@@ -164,7 +154,7 @@ function parser(args)
outputHeaderURL = new CFURL([outputDirectory stringByAppendingPathComponent:baseFilenameWithNoExtension + ".h"]),
outputImplementationURL = new CFURL([outputDirectory stringByAppendingPathComponent:baseFilenameWithNoExtension + ".m"]),
source = fs.readFileSync(sourcePath, { encoding: "utf8" }),
tokens = acorn.parse(source, { locations:true, sourceFile:sourcePath, ecmaVersion: 2022 }),
tokens = acorn.parse(source, { locations:true, sourceFile:sourcePath }),
classesInformation = [],
ObjectiveCSource = "",
ObjectiveCHeader = "",