forked from tiddly-gittly/Tiddlywiki-NodeJS-Github-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
35 lines (35 loc) · 2.21 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
"port": 11012,
"name": "PublicWiki",
"version": "1.0.0",
"scripts": {
"install:wikiServer": "node scripts/installServer.js install",
"install:privateRepo": "cd ./PublicWiki/tiddlers && ln -sfn ../../../private-MyTiddlyWiki ./private-MyTiddlyWiki",
"uninstall:wikiServer": "node scripts/installServer.js uninstall",
"install:windows:wikiServer": "node scripts/installServer.js install",
"install:windows:privateRepo": "cd ./PublicWiki/tiddlers && mklink /D/J .\\private-MyTiddlyWiki ..\\..\\..\\private-MyTiddlyWiki",
"uninstall:windows:wikiServer": "node scripts/installServer.js uninstall",
"start:wikiServer": "cross-env TIDDLYWIKI_PLUGIN_PATH='PublicWiki/plugins' tiddlywiki +plugins/tiddlywiki/filesystem +plugins/tiddlywiki/tiddlyweb PublicWiki --listen port=11012 \"root-tiddler=$:/core/save/lazy-images\"",
"build": "npm run build:prepare && npm run build:public && npm run build:nodejs2html && npm run build:sitemap && npm run build:minifyHTML && npm run build:precache && npm run build:clean",
"build:prepare": "rm -rf ./public",
"build:public": "cp -r ./PublicWiki/public/ ./public && cp ./PublicWiki/tiddlers/favicon.ico ./public/favicon.ico && cp ./PublicWiki/tiddlers/TiddlyWikiIconWhite.png ./public/TiddlyWikiIconWhite.png && cp ./PublicWiki/tiddlers/TiddlyWikiIconBlack.png ./public/TiddlyWikiIconBlack.png",
"build:nodejs2html": "cross-env TIDDLYWIKI_PLUGIN_PATH='PublicWiki/plugins' tiddlywiki PublicWiki --build externalimages",
"build:sitemap": "cross-env TIDDLYWIKI_PLUGIN_PATH='PublicWiki/plugins' tiddlywiki PublicWiki --rendertiddler sitemap sitemap.xml text/plain && mv ./PublicWiki/output/sitemap.xml ./public/sitemap.xml",
"build:precache": "workbox injectManifest workbox-config.js",
"build:minifyHTML": "html-minifier-terser -c ./html-minifier-terser.config.json -o ./public/index.html ./PublicWiki/output/index.html",
"build:clean": "rm -r ./PublicWiki/output"
},
"dependencies": {
"tiddlywiki": "5.1.22"
},
"devDependencies": {
"cross-env": "7.0.2",
"html-minifier-terser": "5.1.1",
"workbox-cli": "5.1.3"
},
"optionalDependencies": {
"node-linux": "0.1.12",
"node-mac-user": "0.1.10",
"node-windows": "1.0.0-beta.1"
}
}