wikiploy 1.0.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vscode/launch.json +1 -1
- package/README.md +14 -1
- package/package.json +2 -2
- package/{Wiki_bot_test.js → src/Wiki_bot_test.js} +2 -2
- package/src/index.js +7 -0
- /package/{test.css → assets/test.css} +0 -0
- /package/{test.js → assets/test.js} +0 -0
- /package/{DeployConfig.js → src/DeployConfig.js} +0 -0
- /package/{PageCache.js → src/PageCache.js} +0 -0
- /package/{WikiOps.js → src/WikiOps.js} +0 -0
- /package/{Wikiploy.js → src/Wikiploy.js} +0 -0
- /package/{chrome.config.js → src/chrome.config.js} +0 -0
- /package/{chromeBase.js → src/chromeBase.js} +0 -0
- /package/{test → src/test}/DeployConfig.test.js +0 -0
package/.vscode/launch.json
CHANGED
package/README.md
CHANGED
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
Wikiploy
|
|
2
2
|
==========================
|
|
3
3
|
|
|
4
|
+
## Polski opis
|
|
5
|
+
|
|
6
|
+
[Wikipedia:Wikiploy](https://pl.wikipedia.org/wiki/Wikipedia:Wikiploy)
|
|
7
|
+
|
|
8
|
+
## English description
|
|
9
|
+
|
|
4
10
|
User scripts and gadgets deployment for wikis (Wikipedia or more generally MediaWiki based wiki).
|
|
5
11
|
Rollout your JS, CSS etc from your git repository to as many MW wikis as you need.
|
|
6
12
|
|
|
7
13
|
This is using [Puppeteer](https://pptr.dev/) to control [Chrome Canary](https://www.google.com/chrome/canary/). You just open Chrome and run a script. The idea is that you are logged in in Chrome and so all edits are still your edits. You can keep the Canary running in the background when you are changing and deploying more stuff.
|
|
8
14
|
|
|
15
|
+
## Early release notice
|
|
16
|
+
|
|
9
17
|
**Note!** While the program should be working already, I still don't think it's ready for general use.
|
|
10
18
|
|
|
11
|
-
I will definitely add more features and handle more use cases.
|
|
19
|
+
I will definitely add more features and handle more use cases.
|
|
20
|
+
|
|
21
|
+
## External links
|
|
22
|
+
* [Wikiploy rollout example (repo)](https://github.com/Eccenux/wikiploy-rollout-example/)
|
|
23
|
+
* [Wikiploy on npm](https://www.npmjs.com/package/wikiploy)
|
|
24
|
+
* [Wikiploy on pl.wiki](https://pl.wikipedia.org/wiki/Wikipedia:Wikiploy)
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wikiploy",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "User scripts and gadgets deployment for MediaWiki (Wikipedia).",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
@@ -9,11 +9,11 @@ const ployBot = new Wikiploy();
|
|
|
9
9
|
(async () => {
|
|
10
10
|
const configs = [];
|
|
11
11
|
configs.push(new DeployConfig({
|
|
12
|
-
src: 'test.js',
|
|
12
|
+
src: 'assets/test.js',
|
|
13
13
|
dst: 'User:Nux/test-jsbot--test.js',
|
|
14
14
|
}));
|
|
15
15
|
configs.push(new DeployConfig({
|
|
16
|
-
src: 'test.css',
|
|
16
|
+
src: 'assets/test.css',
|
|
17
17
|
dst: 'User:Nux/test-jsbot--test.css',
|
|
18
18
|
}));
|
|
19
19
|
await ployBot.deploy(configs);
|
package/src/index.js
ADDED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|