wikiploy 2.1.2 → 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/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.2",
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,6 +26,7 @@
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": {