Tweaks
This commit is contained in:
parent
a6eff1e371
commit
1bb8ab3056
2
package-lock.json
generated
2
package-lock.json
generated
@ -9995,7 +9995,7 @@
|
||||
"yargs": "^17.3.1"
|
||||
},
|
||||
"bin": {
|
||||
"silverbullet": "dist/server.js"
|
||||
"silverbullet": "dist/server/server.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@parcel/packager-raw-url": "2.3.2",
|
||||
|
@ -7,10 +7,10 @@
|
||||
"version": "0.0.1",
|
||||
"license": "MIT",
|
||||
"bin": {
|
||||
"silverbullet": "./dist/server.js"
|
||||
"silverbullet": "./dist/server/server.js"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "nodemon -w dist --exec 'node --enable-source-maps dist/server/server.js --token abc ../../pages'",
|
||||
"start": "nodemon -w dist --exec 'silverbullet ../../pages'",
|
||||
"test": "jest dist/test"
|
||||
},
|
||||
"targets": {
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env node
|
||||
#!/usr/bin/env node --enable-source-maps
|
||||
import { nodeModulesDir } from "@plugos/plugos/environments/node_sandbox";
|
||||
import { preloadModules } from "@silverbulletmd/common/preload_modules";
|
||||
import { realpathSync } from "fs";
|
||||
@ -18,7 +18,9 @@ let args = yargs(hideBin(process.argv))
|
||||
.parse();
|
||||
|
||||
if (!args._.length) {
|
||||
console.error("Usage: silverbullet <path-to-pages>");
|
||||
console.error(
|
||||
"Usage: silverbullet [--port 3000] [--token mysecrettoken] <path-to-pages>"
|
||||
);
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
|
@ -64,7 +64,7 @@ if (navigator.serviceWorker) {
|
||||
});
|
||||
} else {
|
||||
console.log(
|
||||
"No launching service worker (not present, maybe because not running on localhost or over SSL"
|
||||
"No launching service worker (not present, maybe because not running on localhost or over SSL)"
|
||||
);
|
||||
}
|
||||
// }
|
||||
|
Loading…
Reference in New Issue
Block a user