Dependency builds for plugos

This commit is contained in:
Zef Hemel
2022-05-13 14:36:26 +02:00
parent 8c974161c3
commit 3c5048ac25
29 changed files with 309 additions and 76 deletions
+1
View File
@@ -422,6 +422,7 @@ function $9072202279b76d33$export$5884dae03c64f759(parsedQuery, records) {
}
async function $9072202279b76d33$export$b3c659c1456e61b0(parsedQuery, data) {
if (parsedQuery.render) {
console.log("Handlebars", ($parcel$interopDefault($hVExJ$handlebars)));
($parcel$interopDefault($hVExJ$handlebars)).registerHelper("json", (v)=>JSON.stringify(v)
);
($parcel$interopDefault($hVExJ$handlebars)).registerHelper("niceDate", (ts)=>$c3893eec0c49ec96$export$5dc1410f87262ed6(new Date(ts))
File diff suppressed because one or more lines are too long
+1
View File
@@ -19,6 +19,7 @@ syntax:
styles:
color: "#0330cb"
textDecoration: underline
cursor: pointer
functions:
clearPageIndex:
path: "./page.ts:clearPageIndex"
+1 -1
View File
@@ -14,7 +14,7 @@ async function actionClickOrActionEnter(mdTree: ParseTree | null) {
if (!mdTree) {
return;
}
console.log("Attempting to navigate based on syntax node", mdTree);
// console.log("Attempting to navigate based on syntax node", mdTree);
switch (mdTree.type) {
case "WikiLinkPage":
let pageLink = mdTree.children![0].text!;
+5
View File
@@ -0,0 +1,5 @@
name: global
dependencies:
yaml: "yaml@2"
handlebars: "handlebars@4.7.7:/dist/handlebars"
"@lezer/lr": "@lezer/lr@0.15.4"
+2 -2
View File
@@ -8,8 +8,8 @@
"license": "MIT",
"scripts": {
"generate": "lezer-generator query/query.grammar -o query/parse-query.js",
"watch": "plugos-bundle -w --dist dist --exclude @lezer/lr yaml handlebars -- */*.plug.yaml",
"build": "plugos-bundle --dist dist --exclude @lezer/lr yaml handlebars -- */*.plug.yaml",
"watch": "plugos-bundle --dist ../common/dist global.plug.yaml && plugos-bundle -w --dist dist --exclude @lezer/lr yaml handlebars -- */*.plug.yaml",
"build": "plugos-bundle --dist ../common/dist global.plug.yaml && plugos-bundle --dist dist --exclude @lezer/lr yaml handlebars -- */*.plug.yaml",
"test": "jest build/test"
},
"files": [
@@ -36,6 +36,7 @@ export async function compileCommand() {
);
console.log("Wrote this plug", manifest);
await hideBhs();
await reloadPlugs();
} catch (e: any) {
await showBhs(e.message);
@@ -136,6 +137,7 @@ export async function updatePlugs() {
return;
}
let plugYaml = codeTextNode.children![0].text;
console.log("YAML", YAML);
let plugList = YAML.parse(plugYaml!);
console.log("Plug YAML", plugList);
let allPlugNames: string[] = [];
+1
View File
@@ -221,6 +221,7 @@ export async function renderQuery(
data: any[]
): Promise<string> {
if (parsedQuery.render) {
console.log("Handlebars", Handlebars);
Handlebars.registerHelper("json", (v) => JSON.stringify(v));
Handlebars.registerHelper("niceDate", (ts) => niceDate(new Date(ts)));
Handlebars.registerHelper("yaml", (v, prefix) => {
+3
View File
@@ -1,4 +1,7 @@
name: query
# dependencies:
# yaml: "yaml@2"
# "@lezer/lr": "@lezer/lr@0.15.4"
functions:
updateMaterializedQueriesOnPage:
path: ./materialized_queries.ts:updateMaterializedQueriesOnPage