Skip to content

add scripts and description how to test plugins locally#1601

Merged
nyagami merged 2 commits into
lnreader:masterfrom
eEQK:master
Mar 31, 2025
Merged

add scripts and description how to test plugins locally#1601
nyagami merged 2 commits into
lnreader:masterfrom
eEQK:master

Conversation

@eEQK
Copy link
Copy Markdown
Contributor

@eEQK eEQK commented Mar 30, 2025

No description provided.

Comment thread package.json Outdated
"generate": "node ./scripts/multisrc/generate.js",
"host-linux": "chmod +x ./host.sh && ./host.sh",
"host-windows": "powershell ./host.ps1",
"host-dev": "npx tsc --project tsconfig.production.json && npm run json && npx serve",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was server package added?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

npx command downloads it automatically, it doesn't have to be specified in package.json as a dependency

https://www.npmjs.com/package/serve

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So it would be a global package right? I dont think people want it.
Or you could also serve json files via vite by moving them to public folder and change vite server host to 0.0.0.0

Copy link
Copy Markdown
Contributor Author

@eEQK eEQK Mar 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've updated it in a way you have described, however to be honest I still think down the road using npx serve would pay off since it resulted in lesser complexity of json_plugins.js file

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sense, but could you add the serve package to devDependencies.

@nyagami nyagami merged commit a83ab58 into lnreader:master Mar 31, 2025
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants