updated build process

master
Vladimir Mandic 2020-11-16 23:57:51 -05:00
parent 9d84cc749c
commit 86775430d4
3 changed files with 28 additions and 17 deletions

@ -14,6 +14,8 @@ npm run build
This will rebuild library itself (all variations) as well as demo
Build process is written as JavaScript `server/build.js` which can be modified to change any build parameters
<br>
Project is written in pure `JavaScript` [ECMAScript version 2020](https://www.ecma-international.org/ecma-262/11.0/index.html)

@ -10,9 +10,10 @@ Repository: **<git+https://github.com/vladmandic/human.git>**
## Changelog
### **HEAD -> main** 2020/11/16 mandic00@live.com
### **HEAD -> main, origin/main, origin/HEAD** 2020/11/16 mandic00@live.com
- switched to minified build
### **tag: 1.2, origin/main, origin/HEAD** 2020/11/15 mandic00@live.com
### **tag: 1.2** 2020/11/15 mandic00@live.com
- full rebuild
### **0.9.2** 2020/11/14 mandic00@live.com

@ -49,14 +49,14 @@ You can use a provided ones self-signed certificate or configure your own
Self-signed test certificate was generated using:
```shell
openssl req -x509 -newkey rsa:4096 -nodes -keyout dev-server.key -out dev-server.crt -days 365 -subj "/C=US/ST=Florida/L=Miami/O=@vladmandic"
openssl req -x509 -newkey rsa:4096 -nodes -keyout https.key -out https.crt -days 365 -subj "/C=US/ST=Florida/L=Miami/O=@vladmandic"
```
If you want to use your own certificate, edit `dev-server/dev-server.js`:
If you want to use your own certificate, edit `server/dev.js`:
```js
const options = {
key: fs.readFileSync('dev-server/dev-server.key'),
cert: fs.readFileSync('dev-server/dev-server.crt'),
key: fs.readFileSync('server/https.key'),
cert: fs.readFileSync('server/https.crt'),
};
```
@ -66,23 +66,31 @@ npm run dev
```
On first start, it will install all development dependencies required to rebuild `Human` library
By default, web server will run on port `8000` which is configurable in `dev-server/dev-server.js:options.port`
By default, web server will run on port `8000` which is configurable in `server/dev.js:options.port`
```log
> @vladmandic/human@0.7.5 dev /home/vlado/dev/human
> npm install && node --trace-warnings --unhandled-rejections=strict --trace-uncaught --no-deprecation dev-server.js
> @vladmandic/human@0.9.2 dev /home/vlado/dev/human
> npm install && node server/dev.js
audited 321 packages in 2.506s
audited 323 packages in 2.438s
found 0 vulnerabilities
2020-11-06 16:19:09 INFO: @vladmandic/human version 0.7.5
2020-11-06 16:19:09 INFO: User: vlado Platform: linux Arch: x64 Node: v15.0.1
2020-11-06 16:19:09 STATE: HTTP2 server listening: 8000
2020-11-06 16:19:09 STATE: Monitoring: [ 'package.json', 'config.js', 'demo', 'src', [length]: 4 ]
2020-11-06 16:19:16 DATA: GET/2.0 200 text/html 4866 / ::ffff:192.168.0.200
2020-11-06 16:19:16 DATA: GET/2.0 200 text/javascript 1708910 /dist/demo-browser-index.js ::ffff:192.168.0.200
2020-11-16 23:50:46 INFO: @vladmandic/human version 0.9.2
2020-11-16 23:50:46 INFO: User: vlado Platform: linux Arch: x64 Node: v15.0.1
2020-11-16 23:50:46 INFO: Build: file startup all
2020-11-16 23:50:46 STATE: HTTP2 server listening: 8000
2020-11-16 23:50:46 STATE: Monitoring: [ 'package.json', 'config.js', 'demo', 'src', [length]: 4 ]
2020-11-16 23:50:47 STATE: Build complete: iifeBundle
2020-11-16 23:50:47 STATE: Build complete: esmBundle
2020-11-16 23:50:47 STATE: Build complete: esmNoBundle
2020-11-16 23:50:48 STATE: Build complete: nodeBundle
2020-11-16 23:50:48 STATE: Build complete: nodeNoBundle
2020-11-16 23:50:49 STATE: Build complete: demo
2020-11-16 23:51:34 DATA: GET/2.0 200 text/html 5050 / ::ffff:192.168.0.200
2020-11-16 23:51:34 DATA: GET/2.0 200 text/javascript 1978411 /dist/demo-browser-index.js ::ffff:192.168.0.200
2020-11-16 23:51:34 DATA: GET/2.0 200 image/jpg 155876 /assets/sample-me.jpg ::ffff:192.168.0.200
...
```
<br>
**NodeJS**: