@datapos/datapos-development 0.3.42 → 0.3.45
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/README.md +15 -8
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
[](https://www.npmjs.com/package/@datapos/datapos-development)
|
|
4
4
|
[](./LICENSE)
|
|
5
5
|
|
|
6
|
-
A library of
|
|
6
|
+
A TypeScript library of utilities for managing the Data Positioning repositories.
|
|
7
7
|
|
|
8
8
|
## Requirements
|
|
9
9
|
|
|
10
10
|
Ensure your environment meets the following prerequisites before using this library:
|
|
11
11
|
|
|
12
|
-
- **Node.js** version `>=
|
|
13
|
-
- **npm** version `>=
|
|
12
|
+
- **Node.js** version `>=22.0.0`,
|
|
13
|
+
- **npm** version `>=11.0.0`,
|
|
14
14
|
- A Unix-like shell (for command shortcuts, e.g., `bash`, `zsh`, or Git Bash on Windows),
|
|
15
15
|
- Access to the [npm registry](https://www.npmjs.com/) and [GitHub](https://github.com/) for publishing and syncing.
|
|
16
16
|
|
|
@@ -22,13 +22,17 @@ Install as a development (dev) dependency:
|
|
|
22
22
|
npm install --save-dev @datapos/datapos-development
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
##
|
|
25
|
+
## Utilities
|
|
26
26
|
|
|
27
|
-
The
|
|
27
|
+
The `src/index.ts' file exposes the following utilities:
|
|
28
28
|
|
|
29
29
|
| Name | Notes |
|
|
30
30
|
| ------------------------- | ------------------------------------------------------------------------ |
|
|
31
31
|
| buildConfig | Build the config.json file for the repository. |
|
|
32
|
+
| buildConnectorConfig | |
|
|
33
|
+
| buildContextConfig | |
|
|
34
|
+
| buildInformerConfig | |
|
|
35
|
+
| buildPresenterConfig | |
|
|
32
36
|
| buildPublicDirectoryIndex | Build an index for the repositories public directory. |
|
|
33
37
|
| bumpVersion | Bump the repositories version number. |
|
|
34
38
|
| clearDirectory | Clear the specified directory. |
|
|
@@ -46,15 +50,18 @@ For detailed implementation, see the `scripts` section in the `package.json` fil
|
|
|
46
50
|
| Name | Key Code | Notes |
|
|
47
51
|
| ------------------ | ---------------- | ---------------------------------------------------------------------------------------------------------- |
|
|
48
52
|
| audit | alt+ctrl+shift+a | Audit the project's dependencies for known security vulnerabilities. |
|
|
49
|
-
| build | alt+ctrl+shift+b |
|
|
53
|
+
| build | alt+ctrl+shift+b | Build the package using Vite. |
|
|
54
|
+
| build...Config | | ❌ Not implemented. |
|
|
55
|
+
| bumpVersion | alt+ctrl+shift+v | |
|
|
50
56
|
| check | alt+ctrl+shift+c | List outdated dependencies and run retire scanner. |
|
|
51
57
|
| document | alt+ctrl+shift+d | Identify licenses of the project's production and peer dependencies. See [LICENSES.json](./LICENSES.json). |
|
|
52
58
|
| format | alt+ctrl+shift+f | Enforce formatting style rules. |
|
|
53
59
|
| lint | alt+ctrl+shift+l | Check the code for errors and enforce coding style rules. |
|
|
60
|
+
| publishToNPM | alt+ctrl+shift+p | |
|
|
54
61
|
| release | alt+ctrl+shift+r | Bump version, synchronise local repository with the main GitHub repository and publish to npm. |
|
|
55
62
|
| syncWithGitHub | alt+ctrl+shift+s | Bump version and synchronise local repository with the main GitHub repository. |
|
|
56
|
-
| test | alt+ctrl+shift+t |
|
|
57
|
-
| updateDependencies | alt+ctrl+shift+u |
|
|
63
|
+
| test | alt+ctrl+shift+t | ❌ Not implemented. |
|
|
64
|
+
| updateDependencies | alt+ctrl+shift+u | ❌ Not implemented. |
|
|
58
65
|
|
|
59
66
|
## Compliance
|
|
60
67
|
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
|
-
"version": "0.3.
|
|
6
|
+
"version": "0.3.45",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist"
|
|
9
9
|
],
|
|
@@ -38,14 +38,15 @@
|
|
|
38
38
|
"scripts": {
|
|
39
39
|
"audit": "npm audit",
|
|
40
40
|
"build": "vite build",
|
|
41
|
+
"buildConfig": "echo \"***** BUILD CONFIG SCRIPT NOT IMPLEMENTED. *****\"",
|
|
41
42
|
"bumpVersion": "node -e \"import('./dist/datapos-development.es.js').then(m => m.bumpVersion())\"",
|
|
42
43
|
"check": "npm outdated; npm-check-updates -i && retire",
|
|
43
44
|
"document": "license-report --only=prod,peer > LICENSES.json && license-report-check --source ./LICENSES.json --allowed 'MIT' --allowed 'n/a' --allowed 'Apache-2.0' --output=table",
|
|
44
|
-
"format": "prettier --write
|
|
45
|
-
"lint": "eslint
|
|
45
|
+
"format": "prettier --write src/",
|
|
46
|
+
"lint": "eslint . --ext .ts --fix --ignore-path .gitignore",
|
|
46
47
|
"publishToNPM": "npm publish --access public",
|
|
47
48
|
"release": "npm run syncWithGitHub && npm run publishToNPM",
|
|
48
|
-
"syncWithGitHub": "npm run bumpVersion && node -e \"import('./
|
|
49
|
+
"syncWithGitHub": "npm run bumpVersion && node -e \"import('./dist/datapos-development.es.js').then(m => m.syncWithGitHub())\"",
|
|
49
50
|
"test": "echo \"***** TEST SCRIPT NOT IMPLEMENTED. *****\"",
|
|
50
51
|
"updateDependencies": "echo \"***** UPDATE DEPENDENCIES SCRIPT NOT IMPLEMENTED. *****\""
|
|
51
52
|
}
|