Skip to content

Commit

Permalink
Merge pull request #100 from steveklebanoff/dev-instructions
Browse files Browse the repository at this point in the history
Add development instructions to README
  • Loading branch information
crabbly committed Dec 1, 2017
2 parents 43f83e4 + 2eaab1c commit 96744e3
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Expand Up @@ -58,6 +58,24 @@ Clear, concise pull requests are excellent at continuing the project's community

Please make your commits in logical sections with clear commit messages.

##### Setting up dev environment

```
npm install
npm run watch
```

If you want to do a quick test with your modified code:

```
npm install http-server -g
http-server .
```

Navigate to `http://localhost:8080/test.html`

When you are ready to put in your PR and want to update the `dist/` with a minified production-ready version, do `npm run production`


## License

Expand Down
13 changes: 13 additions & 0 deletions test.html
@@ -0,0 +1,13 @@
<html>
<script src='./dist/print.min.js'></script>
<script type='text/javascript'>
function customPrint() {
printJS({ printable: "test.pdf" });
}
</script>
<body>
<button onClick='customPrint();'>
Print PDF
</button>
</body>
</html>
Binary file added test.pdf
Binary file not shown.

0 comments on commit 96744e3

Please sign in to comment.