Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eccenux/css-piechart-script
https://github.com/eccenux/css-piechart-script
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/eccenux/css-piechart-script
- Owner: Eccenux
- Created: 2024-01-04T19:26:43.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2024-03-03T17:43:54.000Z (10 months ago)
- Last Synced: 2024-03-03T18:41:06.559Z (10 months ago)
- Language: JavaScript
- Size: 63.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README-dev-usage.md
Awesome Lists containing this project
README
# Building and deploying Gadgets
In this release:
1. Uses Wikiploy v1.8, which introduced a helper for [user prompts](https://github.com/Eccenux/Wikiploy#userprompt-v18). This makes it easier to ask for a summary when you wikiploy changes.
2. Uses Browserify to build JS.
3. Uses LessCSS to build CSS.
4. Uses Mocha/Chai for unit testing.## Quick testing
1. Download release zip and unpack in some folder.
2. Run `npm i` in the folder to install libraries.
3. Open the folder in [VSCode](https://code.visualstudio.com/).
4. Install recommended extensions.
5. Run test and build commands from the command bar (green buttons, should be on the bottom bar of VSCode).See more in [README.md#testing-wikiploy](https://github.com/Eccenux/wikiploy-rollout-example/blob/main/README.md#testing-wikiploy)
Note that before running `wikiploy.mjs`, you will have to set up your bot password and bot.config (see *Preparing deployment* below).
## Create a gadget from this repository
To create your own gadget from this repository:
1. If you are using an existing gadget: [Use wiki2git to download existing JS script and CSS](https://github.com/Eccenux/Wikiploy/blob/main/README.building%20your%20project.md#appendix-wiki2git).
2. Copy files from the downloaded wikiploy example to your repo.
3. Commit initial wikiploy files.
4. Fix names:
- Replace `piechartHelper` with your actual gadget name.
- Replace `wikiploy-rollout-example` with the lowercase version of your gadget name.
- Ensure `addConfig` works on the `site` you will be deploying to.
5. Commit the changes.## Preparing deployment
Step 1: Setup you password on Special:BotPasswords. For Wikimedia wikis you can use:
https://test.wikipedia.org/wiki/Special:BotPasswordsStep 2: Rights you should setup (if you can):
https://github.com/Eccenux/Wikiploy/blob/main/assets/Bot%20passwords%20-%20Test%20Wikipedia.pngStep 3: Create your `bot.config.mjs` and fill username and password:
```
/**
Bot with edit&create rights.
You can create the bot account on any wiki. E.g. on the test wiki:
https://test.wikipedia.org/wiki/Special:BotPasswordsThe username will be something like `MyName@Wikiploy` where `Wikiploy` would be a bot name
(you can choose any bot name but "Wikiploy" would be a good choice to separate it from other things).
The password will be something like `12345abcdefpqrst123456abcdef`.
*/
export const username = '...@...';
export const password = '...';
```