Skip to content

Commit

Permalink
simplify package.json scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
pmario committed Oct 20, 2024
1 parent 3b7b30d commit 948c9a8
Showing 1 changed file with 6 additions and 23 deletions.
29 changes: 6 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,38 +36,21 @@
"start": "node ./tiddlywiki.js ./editions/tw5.com-server --listen",
"test": "node ./tiddlywiki.js ./editions/test --verbose --version --build index",

"server:info": "echo \"use: npm run server --edition=<name> [tw5.com, de-AT, es-ES, fr-FR, ko-KR, xlsx-utils]\"",
"wiki:info": "echo \"use: npm run wiki --edition=<name> [empty, prerelease, dev, tour, tw.org, upgrade, full]\"",
"lazy:info": "echo \"use: npm run lazy --edition=<name> [tw5.com, de-AT, es-ES, fr-FR, ko-KR, xlsx-utils]\"",
"library:info": "echo \"use: npm run library\" && echo \"IMPORTANT: It starts on port:8888\"",

"watch:info": "echo \"npm run watch\" needs Node.js V20.x to work",
"build:info": "echo \"use: npm run build --edition=<name> [tw5.com, de-AT, es-ES, fr-FR, ko-KR, xlsx-utils]\"",
"lazy": "node ./tiddlywiki.js ./editions/tw5.com-server --listen root-tiddler=$:/core/save/lazy-all",
"watch": "node --watch-path=./core --watch-preserve-output ./tiddlywiki.js ./editions/tw5.com-server --listen",

"server": "node ./tiddlywiki.js ./editions/%npm_config_edition%-server --listen",
"wiki": "node ./tiddlywiki.js +plugins/tiddlywiki/filesystem +plugins/tiddlywiki/tiddlyweb ./editions/%npm_config_edition% --listen",
"lazy": "node ./tiddlywiki.js ./editions/%npm_config_edition%-server --listen root-tiddler=$:/core/save/lazy-all",
"dev": "node ./tiddlywiki.js +plugins/tiddlywiki/filesystem +plugins/tiddlywiki/tiddlyweb ./editions/dev --listen",

"library:info": "echo The Warning below: \"Plugin(s) required for client-server operation are missing\" is INTENTIONAL, so no files will be saved back.",
"library": "node ./tiddlywiki.js ./editions/pluginlibrary --build test-server",
"watch": "node --watch-path=./core --watch-preserve-output ./tiddlywiki.js ./editions/tw5.com-server --listen",

"server-empty": "node ./tiddlywiki.js ./editions/server --listen",
"server-external-js": "node ./tiddlywiki.js ./editions/server-external-js --listen",

"build": "node ./tiddlywiki.js ./editions/%npm_config_edition%-server --build index",
"build:all": "node ./tiddlywiki.js ./editions/%npm_config_edition%-server --build",
"build": "node ./tiddlywiki.js ./editions/tw5.com --build",

"help": "node ./tiddlywiki.js --help",

"lint": "eslint .",
"lint:fix": "eslint . --fix",

"prewiki": "npm run wiki:info -s",
"postwiki:info" : "echo \"or: [translators, aws, classicparserdemo, codemirrordemo, d3demo, dynaviewdemo, geospatialdemo, highlightdemo, innerwikidemo, introduction, ja-JP, katexdemo, markdowndemo, prerelease, resumebuilder, share, tw5.com-docs, text-slicer, twitter-archivist, zh-Hans, zh-Hant\"",

"preserver": "npm run server:info -s",
"prelazy": "npm run lazy:info -s",
"prelibrary": "npm run library:info -s",
"prebuild": "npm run build:info -s"
"prelibrary": "npm run library:info -s"
}
}

0 comments on commit 948c9a8

Please sign in to comment.