Commit b4b9168c authored by Fred Chasen's avatar Fred Chasen

Merge branch 'remove_ghostscript4js_dev_dependancy' into 'master'

Remove ghostscript4js as a dev dependancy

See merge request !46
parents ec341b8e ef9d77b6
......@@ -129,9 +129,6 @@ Install dependencies
$ npm install
```
NOTE: This library depends on the `ghostscript4js` package.
Make sure that all the prerequisites are met before installing the dependencies: https://www.npmjs.com/package/ghostscript4js#prerequisites
## Development
Run the local dev-server with livereload and autocompile on [http://localhost:9090/](http://localhost:9090/)
```sh
......@@ -162,6 +159,29 @@ Specs run a html file in Chrome (using puppeteer) to test against CSS specificat
They can also output a pdf and compare pages (one at a time) in that PDF with samples PDFs (saved as images).
The PDF comparison tests depend on the `ghostscript` and the `ghostscript4js` package.
To run them you'll need to install a local version of Ghostscript for you system according to https://www.npmjs.com/package/ghostscript4js#prerequisites
For Mac you can install it with
```bash
brew install ghostscript
```
For Debian you can install it with
```bash
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
......
This diff is collapsed.
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