Wikipedia:Wikiploy
Wikiploy is a tool for deploying user scripts and gadgets on Wikipedia (and other wikis based on MediaWiki). With this tool, you can easily deploy your JS, CSS, and more. With a single click or keystroke, you can deploy from your favorite Git repository to as many wikis as you need. Yes, you read that correctly — you can quickly deploy your script to Meta, Wikipedia, and Wikisource, and finally keep all deployments in sync.
The tool uses [https://nodejs.org/en/download NodeJS] to deploy scripts quickly. If you're just starting, you might want to use [https://github.com/Eccenux/wikiploy-rollout-example GitHub: Wikiploy Rollout Example] as a template for your gadget. You can also use wiki2git to export an existing gadget and then add Wikiploy to it.
Note that by using NodeJS, you can create unit tests and use various build tools like Browserify, Webpack, etc. So you can test automatically, build automatically, and deploy automatically. See more in: [https://github.com/Eccenux/Wikiploy/blob/main/README.building%20your%20project.md Wikiploy: Building your project].
See also
- Wikipedia:Wiki-to-Git — Wiki2git can be used to move your gadget code from Wikipedia to GitHub.
External links
- [https://github.com/Eccenux/Wikiploy GitHub: Wikiploy] — source code, official place to submit ideas and report bugs.
- [https://www.npmjs.com/package/wikiploy npm: wikiploy] — official package in the npm repository.
- Examples:
- [https://github.com/Eccenux/wikiploy-rollout-example GitHub: Wikiploy Rollout Example] — example project with script deployment and instructions (including a discussion of the sample code).
- [https://github.com/Eccenux/veAutocorrect GitHub: veAutocorrect] — practical example of using Wikiploy for multiple deployments.
- [https://github.com/Eccenux/wiki-pendingChangesHelper GitHub: wiki-pendingChangesHelper] — example of integrating a builder script with Wikiploy (the builder is used to prepare both a gadget and a TamperMonkey user script).
- [https://github.com/Eccenux/wiki-global-scripts GitHub: wiki-global-scripts] — building a personal global.css from Less.