wikiploy 2.1.2 → 2.2.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/DEV.md CHANGED
@@ -37,7 +37,10 @@ You can also run (and debug) each test case directly from a test file. You might
37
37
 
38
38
  Step 1. Check and update versions.
39
39
  ```bash
40
+ # check mwn updates and update test assets
40
41
  php ./check_up.php
42
+ # force update of assets
43
+ php ./check_up.php --force
41
44
  # npm up
42
45
  # npm test
43
46
  ```
package/README.md CHANGED
@@ -1,11 +1,30 @@
1
1
  Wikiploy
2
2
  ==========================
3
3
 
4
- Wikiploy is a one-click solution to deploy JS and CSS to Wikipedia.
4
+ Wikiploy is a one-click solution to deploy JS and CSS to Wikipedia. It uses NodeJS version 14 or higher.
5
5
 
6
6
  After the initial setup, you can quickly build and deploy your user scripts and gadgets. Though this was designed to work with Wikipedia, you should be able to deploy to any [MediaWiki](https://www.mediawiki.org/)-based wiki. You can even deploy to multiple websites with just one click on your commandbar. Your only limitation is your access level to the wikis.
7
7
 
8
- See also:
8
+ ## Table of contents
9
+ <!-- TOC depthfrom:2 updateonsave:false -->
10
+
11
+ - [Table of contents](#table-of-contents)
12
+ - [See also](#see-also)
13
+ - [New capabilities](#new-capabilities)
14
+ - [setupSummary v2.1](#setupsummary-v21)
15
+ - [Parameters](#parameters)
16
+ - [Usage](#usage)
17
+ - [Lightweight Dependencies v2.0](#lightweight-dependencies-v20)
18
+ - [userPrompt v1.8](#userprompt-v18)
19
+ - [nowiki v1.7](#nowiki-v17)
20
+ - [Using Wikiploy](#using-wikiploy)
21
+ - [Botpass configuration](#botpass-configuration)
22
+ - [Different wiki sites](#different-wiki-sites)
23
+ - [External links](#external-links)
24
+
25
+ <!-- /TOC -->
26
+
27
+ ## See also
9
28
 
10
29
  - [Wikiploy project template](https://github.com/Eccenux/wikiploy-rollout-example/releases) — quick start for you gadgets.
11
30
  - [README: building your project](https://github.com/Eccenux/Wikiploy/blob/main/README.building%20your%20project.md) — recommendation on how to build JS and CSS for your gadgets (includes unit testing setup).
package/assets/test.css CHANGED
@@ -5,4 +5,4 @@
5
5
  .tavern {
6
6
  display: block;
7
7
  }
8
- /*## Wikiploy v2.0.0 with MWN v2.0.2 ##*/
8
+ /*## Wikiploy v2.2.0 with MWN v3.0.1 ##*/
package/assets/test.js CHANGED
@@ -7,4 +7,4 @@
7
7
  */
8
8
  // test.js
9
9
  console.log('test');
10
- /*## Wikiploy v2.0.0 with MWN v2.0.2 ##*/
10
+ /*## Wikiploy v2.2.0 with MWN v3.0.1 ##*/
package/check_up.php CHANGED
@@ -7,12 +7,14 @@ require_once "./check/runner.php";
7
7
 
8
8
  runner('git pull', -1);
9
9
 
10
+ $options = getopt("", ["force"]);
11
+
10
12
  $versionChecker = new UpdateChecker();
11
13
  // check and update internals
12
14
  // $versionChecker->checkPackage("puppeteer");
13
15
  $versionChecker->checkPackage("mwn");
14
16
  // save
15
- if (!$versionChecker->hasChanges) {
17
+ if (!isset($options['force']) && !$versionChecker->hasChanges) {
16
18
  echo "\n[INFO] No updates for main deps.\n";
17
19
  } else {
18
20
  $versionChecker->save();
package/package.json CHANGED
@@ -1,37 +1,40 @@
1
1
  {
2
- "name": "wikiploy",
3
- "version": "2.1.2",
4
- "description": "User scripts and gadgets deployment for MediaWiki (Wikipedia).",
5
- "main": "src/index.js",
6
- "type": "module",
7
- "scripts": {
8
- "bump": "bump patch",
9
- "test": "mocha"
10
- },
11
- "repository": {
12
- "type": "git",
13
- "url": "git+https://github.com/Eccenux/Wikiploy.git"
14
- },
15
- "keywords": [
16
- "Mediawiki",
17
- "Wikipedia",
18
- "deploy",
19
- "rollout",
20
- "gadgets"
21
- ],
22
- "author": "Maciej Nux Jaros",
23
- "license": "MIT",
24
- "bugs": {
25
- "url": "https://github.com/Eccenux/Wikiploy/issues"
26
- },
27
- "homepage": "https://github.com/Eccenux/Wikiploy#readme",
28
- "dependencies": {
29
- "mwn": "2.0.x"
30
- },
31
- "devDependencies": {
32
- "bump-version": "0.5.0",
33
- "chai": "5.x",
34
- "eslint": "8.x",
35
- "mocha": "10.x"
36
- }
37
- }
2
+ "name": "wikiploy",
3
+ "version": "2.2.0",
4
+ "description": "User scripts and gadgets deployment for MediaWiki (Wikipedia).",
5
+ "main": "src/index.js",
6
+ "type": "module",
7
+ "scripts": {
8
+ "bump": "bump patch",
9
+ "test": "mocha"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "git+https://github.com/Eccenux/Wikiploy.git"
14
+ },
15
+ "keywords": [
16
+ "Mediawiki",
17
+ "Wikipedia",
18
+ "deploy",
19
+ "rollout",
20
+ "gadgets"
21
+ ],
22
+ "author": "Maciej Nux Jaros",
23
+ "license": "MIT",
24
+ "bugs": {
25
+ "url": "https://github.com/Eccenux/Wikiploy/issues"
26
+ },
27
+ "homepage": "https://github.com/Eccenux/Wikiploy#readme",
28
+ "engines": {
29
+ "node": ">=14"
30
+ },
31
+ "dependencies": {
32
+ "mwn": "3.0.x"
33
+ },
34
+ "devDependencies": {
35
+ "bump-version": "0.5.0",
36
+ "chai": "5.x",
37
+ "eslint": "8.x",
38
+ "mocha": "10.x"
39
+ }
40
+ }