@lionweb/validation 0.6.0-beta.5 → 0.6.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/README.md +13 -18
- package/package.json +5 -8
- package/build.sh +0 -6
package/README.md
CHANGED
|
@@ -5,27 +5,22 @@ This package is intentionally kept very lightweight, e.g. it uses types instead
|
|
|
5
5
|
|
|
6
6
|
It's tested by running the validators against the [test set in `lionweb-integration-testing/testset`](https://github.com/LionWeb-io/lionweb-integration-testing/tree/main/testset).
|
|
7
7
|
|
|
8
|
-
To
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
npm run
|
|
8
|
+
To make the testset available in this propject, run
|
|
9
|
+
```
|
|
10
|
+
npm run setup
|
|
11
|
+
```
|
|
12
|
+
To build from soure:
|
|
13
|
+
```
|
|
14
|
+
npm run build
|
|
15
|
+
```
|
|
16
|
+
To run the tests:
|
|
17
|
+
```
|
|
18
|
+
npm run test
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
This will run the tests in the respective folders in the `testset/` folder
|
|
22
|
-
|
|
23
|
-
The commands `npm run publish-local` and `npm run unpublish-local` are used to do a release on a _local_ npm registry (in our case `verdaccio`), for use in other local projects. This ensures that we do not have to do contineous releases when we develop two packages depending on aech other'
|
|
21
|
+
This will run the tests in the respective folders in the `testset/` folder of `lionweb-integration-testing`.
|
|
24
22
|
|
|
25
|
-
|
|
26
|
-
- Testing with enums is not implemented yet.
|
|
27
|
-
- All tests in the test set with duplicates (which used to be considered invalid), are not invalid anymore, as decided in the meeting on 23-08-2023.
|
|
28
|
-
They should be moved to valid.
|
|
23
|
+
The commands `npm run publish-local` and `npm run unpublish-local` are used to do a release on a _local_ npm registry (in our case `verdaccio`), for use in other local projects. This ensures that we do not have to do contineous releases when we develop two packages depending on aech other.
|
|
29
24
|
|
|
30
25
|
The test runner runs tests at various levels similar (but probably not quite) as described in the [model correctness document](https://github.com/LionWeb-io/specification/blob/meinte/correctness/documentation/correctness.adoc).
|
|
31
26
|
These two should converge in the future.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lionweb/validation",
|
|
3
|
-
"version": "0.6.0
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"license": "Apache 2.0",
|
|
5
5
|
"description": "LionWeb Serialization validation",
|
|
6
6
|
"author": "jos.warmer@openmodeling.nl",
|
|
@@ -14,20 +14,17 @@
|
|
|
14
14
|
"testing"
|
|
15
15
|
],
|
|
16
16
|
"scripts": {
|
|
17
|
+
"clean": "rm -rf dist/ lionweb-validation-*.tgz",
|
|
17
18
|
"build": "tsc",
|
|
19
|
+
"lint": "eslint src",
|
|
20
|
+
"test-here": "cd ../test && find dist/validation -type d | sed '1!G;h;$!d' | xargs npx mocha",
|
|
21
|
+
"release": "npm publish",
|
|
18
22
|
"testValid": "node dist/runners/RunCheckFolder.js ../../../lionweb-integration-testing/testset/valid",
|
|
19
23
|
"testInvalid": "node dist/runners/RunCheckFolder.js ../../../lionweb-integration-testing/testset/invalid",
|
|
20
24
|
"testInvalidWithLanguage": "node dist/runners/RunCheckFolderWithLanguage.js ../../../lionweb-integration-testing/testset/withLanguage/invalid/ ../../../lionweb-integration-testing/testset/withLanguage/myLang.language.json",
|
|
21
25
|
"testValidWithLanguage": "node dist/runners/RunCheckFolderWithLanguage.js ../../../lionweb-integration-testing/testset/withLanguage/valid/ ../../../lionweb-integration-testing/testset/withLanguage/myLang.language.json",
|
|
22
|
-
"test": "mocha",
|
|
23
26
|
"publish-local": "npm publish --registry http://localhost:4873",
|
|
24
27
|
"unpublish-local": "npm unpublish --force --registry http://localhost:4873",
|
|
25
28
|
"republish-local": "yarn unpublish-local && yarn publish-local"
|
|
26
|
-
},
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"@types/node": "20.10.4",
|
|
29
|
-
"typescript": "5.3.3"
|
|
30
|
-
},
|
|
31
|
-
"dependencies": {
|
|
32
29
|
}
|
|
33
30
|
}
|