wikiploy 2.1.1 → 2.1.4

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
@@ -16,16 +16,19 @@ See also:
16
16
 
17
17
  ### setupSummary (v2.1)
18
18
 
19
- A helper function that can replace your usages of `userPrompt`. It prompts a user and then supplies
20
- The `setupSummary` function initializes a summary for a given bot. It requires a `Wikiploy` bot object and optionally takes a gadget version and a standard summary text.
19
+ A helper function that can replace your usages of `userPrompt`. It prompts a user running wikiploy for a summary of changes.
20
+ It can optionally add a version number to the full summary of your edits (deploy-edits).
21
21
 
22
22
  #### Parameters
23
23
 
24
+ The `setupSummary` function requires a `Wikiploy` bot object and optionally takes a gadget version and a standard summary text.
25
+
24
26
  - `ployBot`: A `Wikiploy` bot object. This is required to setup the `summary()` function.
25
27
  - `version` (optional): The version of your gadget. Defaults to an empty string if not provided.
26
- - `standardSummary` (optional): A string that provides a standard summary aside from the version. Defaults to "changes from Github".
28
+ - `standardSummary` (optional): A string that provides a standard summary (aside from the version). Defaults to "changes from Github".
27
29
 
28
- For a prompt answer: "fixed bug #123", you would get: "v5.6.0: fixed bug #123" (`v${version}: ${summary}`).
30
+ If your answer to the prompt would be: "fixed bug #123", you would get a full summary: "v5.6.0: fixed bug #123" (v${version}: ${summary}).
31
+ For no answer you would get: "v5.6.0: changes from Github".
29
32
 
30
33
  #### Usage
31
34
 
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.1.4 with MWN v2.0.2 ##*/
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.1.4 with MWN v2.0.2 ##*/
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,6 +1,6 @@
1
1
  {
2
2
  "name": "wikiploy",
3
- "version": "2.1.1",
3
+ "version": "2.1.4",
4
4
  "description": "User scripts and gadgets deployment for MediaWiki (Wikipedia).",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -26,11 +26,12 @@
26
26
  },
27
27
  "homepage": "https://github.com/Eccenux/Wikiploy#readme",
28
28
  "dependencies": {
29
+ "axios": "0.x",
29
30
  "mwn": "2.0.x"
30
31
  },
31
32
  "devDependencies": {
32
33
  "bump-version": "0.5.0",
33
- "chai": "4.x",
34
+ "chai": "5.x",
34
35
  "eslint": "8.x",
35
36
  "mocha": "10.x"
36
37
  }