-
Notifications
You must be signed in to change notification settings - Fork 1
Developer quick start
calebwaldorf edited this page May 8, 2019
·
5 revisions
Watch for changes in all packages from the repository's root by running:
$ npm run watch
The npm run watch
command can also be used in any of the package directories.
The Reader is a React app built with webpack. For development, an Express server can be started to preview projects in a Git ignored epub
directory in packages/b-ber-reader
.
./b-ber-reader
├── epub
│ ├── test-epub
│ │ ├── META-INF
│ │ │ └── container.xml
│ │ ├── OPS
│ │ │ ├── content.opf
│ │ │ ├── fonts
│ │ │ ├── images
│ │ │ ├── javascripts
│ │ │ ├── media
│ │ │ ├── stylesheets
│ │ │ ├── text
To test out projects with the Reader, add EPUBs to the packages/b-ber-reader/epub
directory, start the server, and launch the Reader:
$ cd packages/b-ber-reader
$ npm start
The Express server will serve the contents of the epub
directory. Note that this is not guaranteed to work with books that have not been created by b-ber.
From the project root or from any individual package directory run:
$ npm test
- Adding metadata
- Creating content
- Generating new content
- Authoring and editing content
- Reading order (Table of Contents)
- Configuring the build
- Adding a cover image
- All directives
- Text
- Media
- Misc