wikiploy 2.2.3 → 2.3.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/commandbar.json +1 -1
- package/.vscode/extensions.json +1 -1
- package/.vscode/settings.json +9 -1
- package/.vscode/tasks.json +1 -1
- package/DEV.md +3 -4
- package/assets/test.css +1 -1
- package/assets/test.js +1 -1
- package/check_up.php +1 -1
- package/package.json +6 -5
- package/src/WikiployLite.js +1 -1
- package/test/DeployConfig.test.js +1 -1
- package/test/Wikiploy.test.js +1 -1
package/.vscode/commandbar.json
CHANGED
package/.vscode/extensions.json
CHANGED
package/.vscode/settings.json
CHANGED
|
@@ -4,5 +4,13 @@
|
|
|
4
4
|
},
|
|
5
5
|
"editor.detectIndentation": false,
|
|
6
6
|
"editor.useTabStops": true,
|
|
7
|
-
|
|
7
|
+
"editor.insertSpaces": false,
|
|
8
|
+
"spellright.language": [
|
|
9
|
+
"en"
|
|
10
|
+
],
|
|
11
|
+
"spellright.documentTypes": [
|
|
12
|
+
"markdown",
|
|
13
|
+
"latex",
|
|
14
|
+
"plaintext"
|
|
15
|
+
],
|
|
8
16
|
}
|
package/.vscode/tasks.json
CHANGED
package/DEV.md
CHANGED
|
@@ -3,7 +3,7 @@ Development
|
|
|
3
3
|
|
|
4
4
|
Wikiploy is a Node.js project and is configured to use VSCode for development.
|
|
5
5
|
|
|
6
|
-
##
|
|
6
|
+
## Preparation
|
|
7
7
|
|
|
8
8
|
### Install Nodejs
|
|
9
9
|
Obviously you'll need [Node.js](https://nodejs.org/en).
|
|
@@ -15,15 +15,14 @@ Note that you can use [NVM-windows](https://github.com/coreybutler/nvm-windows)
|
|
|
15
15
|
Run first `npm i`.
|
|
16
16
|
You might want to run `npm up` to update some scripts too.
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
Recommended global modules/tools:
|
|
19
19
|
```bash
|
|
20
20
|
npm install -g eslint
|
|
21
|
-
npm install -g mocha
|
|
22
21
|
```
|
|
23
22
|
You mostly need above if you will be using your shell (command line).
|
|
24
23
|
|
|
25
24
|
## Running tests
|
|
26
|
-
To run tests in your shell you can use npm: `npm test`.
|
|
25
|
+
To run tests in your shell you can use npm: `npm test`.
|
|
27
26
|
|
|
28
27
|
Better yet install [VSCode](https://code.visualstudio.com/download) and the recommended extenstions. It will make things easier (especially for debugging tests).
|
|
29
28
|
|
package/assets/test.css
CHANGED
package/assets/test.js
CHANGED
package/check_up.php
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wikiploy",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"description": "User scripts and gadgets deployment for MediaWiki (Wikipedia).",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"bump": "bump patch",
|
|
9
|
-
"test": "
|
|
9
|
+
"test:run": "vitest run",
|
|
10
|
+
"test": "vitest"
|
|
10
11
|
},
|
|
11
12
|
"repository": {
|
|
12
13
|
"type": "git",
|
|
@@ -33,8 +34,8 @@
|
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
36
|
"bump-version": "0.5.0",
|
|
36
|
-
"chai": "
|
|
37
|
-
"eslint": "
|
|
38
|
-
"
|
|
37
|
+
"chai": "6.x",
|
|
38
|
+
"eslint": "9.x",
|
|
39
|
+
"vitest": "^4.1.0"
|
|
39
40
|
}
|
|
40
41
|
}
|
package/src/WikiployLite.js
CHANGED
|
@@ -6,7 +6,7 @@ import DeployConfig from './DeployConfig.js';
|
|
|
6
6
|
|
|
7
7
|
import { promises as fs } from "fs"; // node v11+
|
|
8
8
|
|
|
9
|
-
const version = /*version:main:*/'2.
|
|
9
|
+
const version = /*version:main:*/'2.3.0'/*:main:version*/;
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* MediaWiki deployment automation.
|
package/test/Wikiploy.test.js
CHANGED