mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Setting up NPM command line usage of TiddlyWiki
This commit is contained in:
parent
898e86db79
commit
e451f2398e
@ -33,6 +33,7 @@ In practice, each module is wrapped in a separate script block.
|
||||
// Set up $tw global for the server
|
||||
if(typeof(window) === "undefined" && !global.$tw) {
|
||||
global.$tw = {}; // No ``browser`` member for the server
|
||||
exports.$tw = $tw;
|
||||
}
|
||||
|
||||
// Temporary switch for replacing the old wiki text parser with the new one
|
||||
|
7
core/cli.js
Executable file
7
core/cli.js
Executable file
@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
/*
|
||||
This is invoked as a shell script by NPM when the `tiddlywiki` command is typed
|
||||
*/
|
||||
|
||||
var tiddlywiki = require("./boot.js");
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "tiddlywiki",
|
||||
"preferGlobal": "true",
|
||||
"version": "5.0.0-alpha.4",
|
||||
"version": "5.0.0-alpha.7",
|
||||
"author": "Jeremy Ruston <jeremy@jermolene.com>",
|
||||
"description": "a reusable non-linear personal web notebook",
|
||||
"contributors": [
|
||||
@ -11,7 +11,7 @@
|
||||
}
|
||||
],
|
||||
"bin": {
|
||||
"tiddlywiki": "./core/boot.js"
|
||||
"tiddlywiki": "./core/cli.js"
|
||||
},
|
||||
"main": "./core/boot.js",
|
||||
"repository": {
|
||||
|
Loading…
Reference in New Issue
Block a user