@ezeep/ezeep-js 1.0.136 → 1.0.137

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/readme.md +25 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ezeep/ezeep-js",
3
- "version": "1.0.136",
3
+ "version": "1.0.137",
4
4
  "description": "A JavaScript library to enable easy and fast printing on any web application uising ezeep Blue.",
5
5
  "author": "Thinprint GmbH",
6
6
  "license": "MIT",
package/readme.md CHANGED
@@ -17,7 +17,7 @@ The ezeep.js JavaScript library implements the [ezeep Blue API](https://apidocs.
17
17
 
18
18
  ### Usage
19
19
 
20
- Important: You need to set up your server with https!
20
+ #### Important: You need to set up your server with https!
21
21
 
22
22
  1. Include ezeep.js to your web app by the following options:
23
23
 
@@ -143,7 +143,30 @@ If you want to bind the printing process to a custom html element, you can use t
143
143
 
144
144
  Make sure you follow the [GitHub flow](https://guides.github.com/introduction/flow/) if you want to contribute. Clone and create a branch for your contribution. When finished, create a pull request for the main branch.
145
145
 
146
- Important: You need to set up your development server with https!
146
+ #### Important: You need to set up your development server with https!
147
+
148
+ The stencil.config is already set up to do exactly this in your development environment.
149
+
150
+
151
+ You'll need a certificate and key for this aswell as a .env file placed at the root of the project.
152
+
153
+ To generate a self signed certificate execute the following command:
154
+
155
+ ```bash
156
+ openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out certificate.pem
157
+ ```
158
+ and follow the steps to generate a key.pem and certificate.pem.
159
+
160
+
161
+ In your .env file specify the following variables:
162
+ ```.env
163
+ DEV_SERVER_ADDRESS="your-server-address.com"
164
+ DEV_SERVER_PORT= portnumber
165
+ ```
166
+
167
+ Additionally, you need to uncomment the "devServer" option in the stencil config file.
168
+
169
+ #### Make sure to comment out the "devServer" option before pushing to the repository!
147
170
 
148
171
  Clone this repository to a new directory:
149
172