You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The class model can be used a package or library, see [packages/class/README.md](packages/class/README.md#package-usage) for more information.
45
25
46
26
## Developers
47
27
@@ -62,17 +42,6 @@ Currently the repo is home to the following:
62
42
- apps/
63
43
- class-solid: web application with a graphical user interface for CLASS
64
44
65
-
### JSON schema
66
-
67
-
The Class model uses a JSON schema to validate the input configuration. The schema is defined in the `@classmodel/class` package and can be found in [packages/class/src/config.json](packages/class/src/config.json). The schema is used to validate the input configuration and to generate a form to input the configuration.
68
-
69
-
If any changes are made to the `packages/class/src/config.json` file then the Typescript type need to be regenerated with the following command:
70
-
71
-
```shell
72
-
cd packages/class
73
-
pnpm json2ts
74
-
```
75
-
76
45
### Publish package
77
46
78
47
To publish a new version of the class package:
@@ -113,34 +82,13 @@ To check types, you can run the `pnpm typecheck` command as other commands ignor
113
82
114
83
## Tests
115
84
116
-
The unit tests are written with [node:test](https://nodejs.org/api/test.html) and [node:assert](https://nodejs.org/api/assert.html).
117
85
118
-
The unit tests can be run with the following command:
86
+
The tests can be run with the following command:
119
87
120
88
```shell
121
89
pnpm test
122
90
```
123
91
124
-
To get test coverage
125
-
126
-
```shell
127
-
# Does not work via pnpm script so need to call node directly
0 commit comments