@quintype/framework 6.1.5-webpack5.4 → 6.1.5-webpack5.5
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.
- package/CHANGELOG.md +13 -0
- package/package.json +3 -2
- package/server/start.js +5 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [6.2.0](https://github.com/quintype/quintype-node-framework/compare/v5.0.5...v6.2.0) (2021-10-11)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* support collection of collection of stories data based on index ([#271](https://github.com/quintype/quintype-node-framework/issues/271)) ([6c7afa3](https://github.com/quintype/quintype-node-framework/commit/6c7afa37e02cdddbebf0ed57dca849133dfb0261))
|
|
11
|
+
* support svg in between header and footer when service worker is enabled ([#273](https://github.com/quintype/quintype-node-framework/issues/273)) ([07a61ce](https://github.com/quintype/quintype-node-framework/commit/07a61ce50c4759c1dfb77436d14077dfc6f625f1))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* update backend version ([#274](https://github.com/quintype/quintype-node-framework/issues/274)) ([16efdae](https://github.com/quintype/quintype-node-framework/commit/16efdae8a88f4dd8bcd2358512032108e7f13a14))
|
|
17
|
+
|
|
5
18
|
### [6.1.4](https://github.com/quintype/quintype-node-framework/compare/v6.1.2...v6.1.4) (2021-10-04)
|
|
6
19
|
|
|
7
20
|
### [6.1.3](https://github.com/quintype/quintype-node-framework/compare/v6.1.2...v6.1.3) (2021-10-04)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quintype/framework",
|
|
3
|
-
"version": "6.1.5-webpack5.
|
|
3
|
+
"version": "6.1.5-webpack5.5",
|
|
4
4
|
"description": "Libraries to help build Quintype Node.js apps",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -27,12 +27,13 @@
|
|
|
27
27
|
"homepage": "https://github.com/quintype/quintype-node-framework#readme",
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@ampproject/toolbox-optimizer": "2.8.3",
|
|
30
|
-
"@quintype/amp": "^2.4.
|
|
30
|
+
"@quintype/amp": "^2.4.14",
|
|
31
31
|
"@quintype/backend": "^2.1.0",
|
|
32
32
|
"@quintype/components": "^2.31.8-webpack5.2",
|
|
33
33
|
"@quintype/prerender-node": "^3.2.24",
|
|
34
34
|
"@quintype/seo": "^1.38.1",
|
|
35
35
|
"atob": "^2.1.2",
|
|
36
|
+
"chalk": "^4.1.2",
|
|
36
37
|
"cluster": "^0.7.7",
|
|
37
38
|
"compression": "^1.7.4",
|
|
38
39
|
"ejs": "^3.1.6",
|
package/server/start.js
CHANGED
|
@@ -10,10 +10,12 @@
|
|
|
10
10
|
// istanbul ignore file
|
|
11
11
|
// This is the start file, to be called from your start.js
|
|
12
12
|
|
|
13
|
+
const chalk = require('chalk');
|
|
13
14
|
const cluster = require("cluster");
|
|
14
15
|
const process = require("process");
|
|
15
16
|
const { initializeAllClients } = require("./api-client");
|
|
16
17
|
const logger = require("./logger");
|
|
18
|
+
const logSuccess = chalk.bold.green.underline;
|
|
17
19
|
|
|
18
20
|
function startMaster({ workers = 4 }) {
|
|
19
21
|
let terminating = false;
|
|
@@ -62,7 +64,7 @@ function startMaster({ workers = 4 }) {
|
|
|
62
64
|
}
|
|
63
65
|
|
|
64
66
|
async function startWorker(appThunk, opts) {
|
|
65
|
-
if (process.env.NODE_ENV
|
|
67
|
+
if (process.env.NODE_ENV !== "production") {
|
|
66
68
|
require("@quintype/build")(opts);
|
|
67
69
|
}
|
|
68
70
|
require("../assetify/server")();
|
|
@@ -72,7 +74,7 @@ async function startWorker(appThunk, opts) {
|
|
|
72
74
|
|
|
73
75
|
await initializeAllClients();
|
|
74
76
|
const server = app.listen(opts.port || 3000, () =>
|
|
75
|
-
console.log(`App listening on port ${opts.port || 3000}!`)
|
|
77
|
+
console.log(logSuccess(`App listening on port ${opts.port || 3000}!`))
|
|
76
78
|
);
|
|
77
79
|
|
|
78
80
|
process.on("SIGTERM", () => {
|
|
@@ -83,7 +85,7 @@ async function startWorker(appThunk, opts) {
|
|
|
83
85
|
});
|
|
84
86
|
process.on("SIGHUP", () => {});
|
|
85
87
|
} catch (e) {
|
|
86
|
-
if (process.env.NODE_ENV
|
|
88
|
+
if (process.env.NODE_ENV !== "production") {
|
|
87
89
|
console.log(e.stack);
|
|
88
90
|
}
|
|
89
91
|
|