mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2024-11-22 08:07:30 +00:00
Properly wait for first compile
This commit is contained in:
parent
eeba2367af
commit
60cf13a22b
16
package-lock.json
generated
16
package-lock.json
generated
@ -2175,9 +2175,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"mime": {
|
"mime": {
|
||||||
"version": "2.4.5",
|
"version": "2.4.6",
|
||||||
"resolved": "https://registry.npmjs.org/mime/-/mime-2.4.5.tgz",
|
"resolved": "https://registry.npmjs.org/mime/-/mime-2.4.6.tgz",
|
||||||
"integrity": "sha512-3hQhEUF027BuxZjQA3s7rIv/7VCQPa27hN9u9g87sEkWaKwQPuXOkVKtOeiyUrnWqTDiOs8Ed2rwg733mB0R5w=="
|
"integrity": "sha512-RZKhC3EmpBchfTGBVb8fb+RL2cWyw/32lshnsETttkBAyAUXSGHxbEJWWRXc751DrIxG1q04b8QwMbAwkRPpUA=="
|
||||||
},
|
},
|
||||||
"mime-db": {
|
"mime-db": {
|
||||||
"version": "1.43.0",
|
"version": "1.43.0",
|
||||||
@ -2738,8 +2738,8 @@
|
|||||||
"integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg=="
|
"integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg=="
|
||||||
},
|
},
|
||||||
"pinski": {
|
"pinski": {
|
||||||
"version": "github:cloudrac3r/pinski#0ac730907da8f3a644bc9d50063b6367b15b7944",
|
"version": "github:cloudrac3r/pinski#b062547bc0dcebb82c3aa7da36c13988a68b8acc",
|
||||||
"from": "github:cloudrac3r/pinski#0ac730907da8f3a644bc9d50063b6367b15b7944",
|
"from": "github:cloudrac3r/pinski#b062547bc0dcebb82c3aa7da36c13988a68b8acc",
|
||||||
"requires": {
|
"requires": {
|
||||||
"mime": "^2.4.4",
|
"mime": "^2.4.4",
|
||||||
"pug": "^2.0.3",
|
"pug": "^2.0.3",
|
||||||
@ -3129,9 +3129,9 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"sass": {
|
"sass": {
|
||||||
"version": "1.26.5",
|
"version": "1.26.7",
|
||||||
"resolved": "https://registry.npmjs.org/sass/-/sass-1.26.5.tgz",
|
"resolved": "https://registry.npmjs.org/sass/-/sass-1.26.7.tgz",
|
||||||
"integrity": "sha512-FG2swzaZUiX53YzZSjSakzvGtlds0lcbF+URuU9mxOv7WBh7NhXEVDa4kPKN4hN6fC2TkOTOKqiqp6d53N9X5Q==",
|
"integrity": "sha512-xgNazdkr6yvgHEfNaOjKtZzhDZmKYMCmoRKMPrTDo7YvjaITIzU2DDYsIUuN/atAg7/JOxPeCQHH7TtCo5Tq2g==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"chokidar": ">=2.0.0 <4.0.0"
|
"chokidar": ">=2.0.0 <4.0.0"
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
"mixin-deep": "^2.0.1",
|
"mixin-deep": "^2.0.1",
|
||||||
"node-dir": "^0.1.17",
|
"node-dir": "^0.1.17",
|
||||||
"node-fetch": "^2.6.0",
|
"node-fetch": "^2.6.0",
|
||||||
"pinski": "github:cloudrac3r/pinski#0ac730907da8f3a644bc9d50063b6367b15b7944",
|
"pinski": "github:cloudrac3r/pinski#b062547bc0dcebb82c3aa7da36c13988a68b8acc",
|
||||||
"pug": "^2.0.4",
|
"pug": "^2.0.4",
|
||||||
"semver": "^7.2.1",
|
"semver": "^7.2.1",
|
||||||
"sharp": "^0.25.2",
|
"sharp": "^0.25.2",
|
||||||
|
@ -29,7 +29,5 @@ function customWriter(output) {
|
|||||||
return output
|
return output
|
||||||
}
|
}
|
||||||
|
|
||||||
setTimeout(() => {
|
console.log("[.] REPL started")
|
||||||
console.log("[.] REPL started")
|
repl.start({prompt: "b) ", eval: customEval, writer: customWriter}).once("exit", () => process.exit())
|
||||||
repl.start({prompt: "b) ", eval: customEval, writer: customWriter}).once("exit", () => process.exit())
|
|
||||||
}, 2000) // wait for pinski to initialise. TODO: do this properly
|
|
||||||
|
@ -55,7 +55,7 @@ subdirs("pug", async (err, dirs) => {
|
|||||||
pinski.addAPIDir("api")
|
pinski.addAPIDir("api")
|
||||||
|
|
||||||
if (constants.as_assistant.enabled) {
|
if (constants.as_assistant.enabled) {
|
||||||
console.log("Assistant API enabled")
|
console.log("[.] Assistant API enabled")
|
||||||
pinski.addAPIDir("assistant_api")
|
pinski.addAPIDir("assistant_api")
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -68,6 +68,8 @@ subdirs("pug", async (err, dirs) => {
|
|||||||
console.log("[.] Server started")
|
console.log("[.] Server started")
|
||||||
|
|
||||||
if (process.stdin.isTTY || process.argv.includes("--enable-repl")) {
|
if (process.stdin.isTTY || process.argv.includes("--enable-repl")) {
|
||||||
require("./repl")
|
pinski.waitForFirstCompile().then(() => {
|
||||||
|
require("./repl")
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user