README.md
1# Declarative State Management
2
3This sub-project provides most of the revised implementation of Declarative State management.
4
5## Building just state mgmt
6
7The implementation is in Typescript.
8TS sources are built into a single JS file using `tsc`.
9`tsc` must be in shell's PATH.
10
11Before first build:
12`npm install`
13
14For every build
15`npm run build`
16
17The output is one JS file:
18`./dist/stateMgmt.js`
19
20## Unit tests for state mgmt using node.js / npm
21
22To compile the entire project and unit tests, and to run all tests
23`npm test`
24
25The output is one JS file:
26`./distTest/stateMgmt_test.js`
27
28The results are written to console.
29Successful run ends with the message `Passed all XX cases, YYY test asertions.`.
30
31## Organising
32
33`./src/lib*.ts` - implementation
34`./src/index.ts` - implementation 'main' creates singletons.
35`./test/utest/*` - unit tests
36