Skip to content

Commit cd2b58d

Browse files
authored
Merge pull request #27 from SharinPix/lint-and-node
Instructions to run lint fix and update gitignore
2 parents fd3b610 + ed5d865 commit cd2b58d

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ Makefile
77
node_modules/
88
examples/node/svgdump/
99
examples/node/pdf2png/*.png
10+
.npm/*
11+
.cache/*
12+
.bash_history

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,17 @@ the `pdfjs-dist` name. For more information and examples please refer to the
111111
+ Start the docker container with `mutagen-compose up pdfjs`
112112
+ Access server at `http://localhost:8888/web/viewer.html`
113113

114+
## Lint
115+
+ To fix lint errors, run the following commands:
116+
117+
``` bash
118+
mutagen-compose run pdfjs bash
119+
```
120+
121+
``` bash
122+
npx gulp lint --fix
123+
```
124+
114125
## Including via a CDN
115126

116127
PDF.js is hosted on several free CDNs:

0 commit comments

Comments
 (0)