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
Copy file name to clipboardExpand all lines: README.md
+40Lines changed: 40 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,46 @@ There is no external implementation of Readium CSS so far.
46
46
47
47
Consequently, if you are encountering rendering issues with Readium (iOS apps, Android apps, or the Readium Chrome App), please report them on the [github section dedicated to the proper Readium project](https://github.com/readium) (readium-js, readium-shared-js, readium-sdk, etc.).
48
48
49
+
## Development
50
+
51
+
Active development is pulled in branch `develop` first, and then made available in the main branch when sufficiently tested and deemed stable.
52
+
53
+
### Init
54
+
55
+
Building and testing are relying on npm packages and scripts. To initialize your clone/fork, first install dev dependencies:
56
+
57
+
```
58
+
npm install
59
+
```
60
+
61
+
In case you’re encountering an error with Puppeteer, make sure you’re using at least Node v.20.11.1 – it might work with an earlier version but only the latest LTS as of March 21, 2024 has been tested.
62
+
63
+
Then create reference bitmaps for visual regression testing:
64
+
65
+
```
66
+
npm run test:ref
67
+
```
68
+
69
+
### Build
70
+
71
+
To transpile all stylesheets using PostCSS:
72
+
73
+
```
74
+
npm run build
75
+
```
76
+
77
+
To test the updated styles and catch visual regression bugs:
header: `/*\n * Readium CSS (v. ${version})\n * Developers: Jiminy Panoz \n * Copyright (c) 2017. Readium Foundation. All rights reserved.\n * Use of this source code is governed by a BSD-style license which is detailed in the\n * LICENSE file present in the project repository where this source code is maintained.\n*/`
0 commit comments