mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-03 19:44:22 +00:00
fixed compatibility of theme jakefiles with node
This commit is contained in:
1 parent
b38a5d19b1
commit
89c00e193b
6 files changed
+15
-22
No files matched your search
@@ -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;
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
+6
-16
@@ -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 = "",
|
||||
|
||||
Reference in new issue
Block a user