Last active
August 29, 2015 14:13
-
-
Save Arlen22/d7ad0b6a108fa3cedf72 to your computer and use it in GitHub Desktop.
How to use node-webkit with tiddlywiki GitHub code.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head></head> | |
<body class="tc-body"> | |
<script>process.mainModule.exports.boot();</script> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.boot = function() { | |
console.log('booted'); | |
console.log(window); | |
global.$tw = require("./boot/bootprefix.js").bootprefix(); | |
$tw.boot.suppressBoot = true ; | |
$tw.boot.argv = ['./editions/server']; | |
$tw = require("./boot/boot.js").TiddlyWiki($tw); | |
$tw.boot.boot(); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"node-main": "./nodewebkit.js", | |
"main":"./index.htm", | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Copy index.htm and nodewebkit.js into the main tw5 folder and then specify the tiddlywiki folder path as the first argument to nodewebkit (
path/to/nw.exe /path/to/tw5/
).