Commit 1d28cb53 authored by Fred Chasen's avatar Fred Chasen

Readme updates from #62

parent 4230d057
......@@ -150,7 +150,17 @@ $ npm start
## Deployment
Build the `dist` output
```sh
$ npm run prepare
$ npm run build
```
Compile the `lib` output
```sh
$ npm run compile
```
Generate legacy builds with polyfills included
```sh
$ npm run legacy
```
## Testing
......@@ -162,7 +172,7 @@ Testing for Paged.js uses [Jest](https://facebook.github.io/jest/en/) but is spl
Unit tests for Chunker and Polisher methods are run in node using JSDOM.
```bash
npm run tests
npm test
```
### Specs
......@@ -188,12 +198,6 @@ sudo apt-get install ghostscript
sudo apt-get install libgs-dev
```
Then you can install the node library
```bash
npm install ghostscript4js --no-save
```
To test the pdf output of specs, you'll need to build the library locally.
```bash
......@@ -225,7 +229,7 @@ A `pagedmedia/pagedjs` docker image contains all the dependencies needed to run
To build the image run
```bash
docker build -t pagedmedia/pagedjs .
docker build -t pagedmedia/pagedjs .
```
By default the container will run the development server with `npm start`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment