tiddly-gittly / Modern.TiddlyDev

Modern TiddlyWiki Developing Environment
https://tiddly-gittly.github.io/Modern.TiddlyDev/
MIT License
57 stars 3 forks source link

How to publish to nodejs version #33

Closed davidbeijinho closed 5 months ago

davidbeijinho commented 1 year ago

Hey i was trying to publish a plugin that could be installed in a nodejs plugins folder but was not able to do it

I tried to run

npm run build

and include the generated JSON fike eg $__plugins_your-name_plugin-name.json plus a plugin.info file from the src directory but was not able to load the content

davidbeijinho commented 1 year ago

for now i have added a new npm run script npm run publish && tiddlywiki --load ./dist/index.html --savewikifolder ./release and inside this folder I got the plugins that I can import in nodejs

Gk0Wk commented 1 year ago

Hello, I may not have fully understood what you meant. Let me explain my understanding: After building, each json file generated under the dist folder is a separate plugin that can be used independently. You can drag it onto the wiki page of your browser for installation or place it in the tiddlers path of the NodeJS format wiki folder.

davidbeijinho commented 1 year ago

you are right, that approach works, i just like to install the plugins in a separate folder in node js like is suggested here https://tiddlywiki.com/#Installing%20custom%20plugins%20on%20Node.js

but for now I'm happy with the workflow if --savewikifolder

linonetwo commented 5 months ago

install the plugins in a separate folder in node js

That is deprecated, see https://github.com/Jermolene/TiddlyWiki5/discussions/6096#discussioncomment-1459181

Publish json plugin and use CPL.