@quintype/framework 6.3.1 → 7.0.0
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 +2 -0
- package/package.json +46 -46
- package/server/publisher-config.js +1 -1
- package/server/start.js +9 -5
- package/server/static-configuration.js +1 -1
- package/server/utils/apm.js +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
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
|
+
## [7.0.0](https://github.com/quintype/quintype-node-framework/compare/v6.3.1...v7.0.0) (2021-11-30)
|
|
6
|
+
|
|
5
7
|
### [6.3.1](https://github.com/quintype/quintype-node-framework/compare/v6.3.0...v6.3.1) (2021-11-25)
|
|
6
8
|
|
|
7
9
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quintype/framework",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "Libraries to help build Quintype Node.js apps",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"prepublishOnly": "npm test && ./bin-dev-scripts/standard-version-release.sh",
|
|
8
7
|
"test": "NODE_ENV=test npx mocha --recursive --require ./test/babel",
|
|
9
8
|
"watch-test": "NODE_ENV=test npx mocha --recursive --watch --require ./test/babel",
|
|
10
9
|
"coverage": "nyc --all npm test",
|
|
@@ -26,75 +25,76 @@
|
|
|
26
25
|
},
|
|
27
26
|
"homepage": "https://github.com/quintype/quintype-node-framework#readme",
|
|
28
27
|
"dependencies": {
|
|
29
|
-
"@ampproject/toolbox-optimizer": "2.8.
|
|
28
|
+
"@ampproject/toolbox-optimizer": "2.8.3",
|
|
30
29
|
"@quintype/amp": "^2.4.15",
|
|
31
30
|
"@quintype/backend": "^2.1.0",
|
|
32
|
-
"@quintype/components": "^
|
|
31
|
+
"@quintype/components": "^3.0.0",
|
|
33
32
|
"@quintype/prerender-node": "^3.2.24",
|
|
34
33
|
"@quintype/seo": "^1.38.1",
|
|
35
34
|
"atob": "^2.1.2",
|
|
35
|
+
"chalk": "^4.1.2",
|
|
36
36
|
"cluster": "^0.7.7",
|
|
37
37
|
"compression": "^1.7.4",
|
|
38
|
-
"ejs": "^
|
|
39
|
-
"express": "^4.
|
|
40
|
-
"firebase": "^
|
|
38
|
+
"ejs": "^3.1.6",
|
|
39
|
+
"express": "^4.17.1",
|
|
40
|
+
"firebase": "^9.1.1",
|
|
41
41
|
"get-youtube-id": "^1.0.1",
|
|
42
42
|
"grpc": "^1.21.1",
|
|
43
|
-
"http-proxy": "^1.
|
|
44
|
-
"js-yaml": "^
|
|
45
|
-
"lodash": "^4.17.
|
|
43
|
+
"http-proxy": "^1.18.1",
|
|
44
|
+
"js-yaml": "^4.1.0",
|
|
45
|
+
"lodash": "^4.17.21",
|
|
46
46
|
"mocha-snapshots": "^4.2.0",
|
|
47
|
-
"morgan": "^1.
|
|
47
|
+
"morgan": "^1.10.0",
|
|
48
48
|
"path-to-regexp": "^6.2.0",
|
|
49
|
-
"react": "^16.
|
|
50
|
-
"react-dom": "^16.
|
|
51
|
-
"react-redux": "^7.
|
|
52
|
-
"react-router": "^5.
|
|
53
|
-
"redux": "^4.
|
|
49
|
+
"react": "^16.14.0",
|
|
50
|
+
"react-dom": "^16.14.0",
|
|
51
|
+
"react-redux": "^7.2.5",
|
|
52
|
+
"react-router": "^5.2.1",
|
|
53
|
+
"redux": "^4.1.1",
|
|
54
54
|
"request-promise": "^4.2.6",
|
|
55
|
-
"sleep-promise": "^
|
|
56
|
-
"winston": "3.
|
|
55
|
+
"sleep-promise": "^9.1.0",
|
|
56
|
+
"winston": "3.3.3"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@babel/eslint-parser": "^7.
|
|
60
|
-
"@loadable/component": "^5.
|
|
61
|
-
"@loadable/server": "^5.
|
|
62
|
-
"@quintype/build": "^3.13.
|
|
59
|
+
"@babel/eslint-parser": "^7.15.7",
|
|
60
|
+
"@loadable/component": "^5.15.0",
|
|
61
|
+
"@loadable/server": "^5.15.1",
|
|
62
|
+
"@quintype/build": "^3.13.1",
|
|
63
63
|
"babel-plugin-quintype-assets": "^1.1.1",
|
|
64
|
-
"babel-plugin-react-css-modules": "^5.2.
|
|
64
|
+
"babel-plugin-react-css-modules": "^5.2.6",
|
|
65
65
|
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
|
|
66
66
|
"babel-plugin-transform-object-rest-spread": "^6.26.0",
|
|
67
67
|
"babel-preset-es2015": "^6.24.1",
|
|
68
68
|
"babel-preset-es2015-tree-shaking": "^1.0.1",
|
|
69
69
|
"babel-preset-react": "^6.24.1",
|
|
70
70
|
"babel-register": "^6.26.0",
|
|
71
|
-
"better-docs": "^
|
|
72
|
-
"eslint": "^
|
|
73
|
-
"eslint-config-prettier": "^
|
|
74
|
-
"eslint-config-standard": "^
|
|
75
|
-
"eslint-plugin-import": "^2.
|
|
76
|
-
"eslint-plugin-node": "^
|
|
77
|
-
"eslint-plugin-prettier": "^
|
|
78
|
-
"eslint-plugin-promise": "^
|
|
79
|
-
"eslint-plugin-react": "^7.
|
|
80
|
-
"eslint-plugin-standard": "^4.0
|
|
81
|
-
"gh-pages": "^2.
|
|
82
|
-
"history": "^
|
|
83
|
-
"husky": "^
|
|
84
|
-
"jsdoc": "^3.6.
|
|
85
|
-
"jsdom": "^
|
|
71
|
+
"better-docs": "^2.3.2",
|
|
72
|
+
"eslint": "^7.32.0",
|
|
73
|
+
"eslint-config-prettier": "^8.3.0",
|
|
74
|
+
"eslint-config-standard": "^16.0.3",
|
|
75
|
+
"eslint-plugin-import": "^2.24.2",
|
|
76
|
+
"eslint-plugin-node": "^11.1.0",
|
|
77
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
78
|
+
"eslint-plugin-promise": "^5.1.0",
|
|
79
|
+
"eslint-plugin-react": "^7.26.1",
|
|
80
|
+
"eslint-plugin-standard": "^4.1.0",
|
|
81
|
+
"gh-pages": "^3.2.3",
|
|
82
|
+
"history": "^5.0.1",
|
|
83
|
+
"husky": "^7.0.2",
|
|
84
|
+
"jsdoc": "^3.6.7",
|
|
85
|
+
"jsdom": "^17.0.0",
|
|
86
86
|
"jsdom-global": "3.0.2",
|
|
87
|
-
"lint-staged": "^
|
|
88
|
-
"mocha": "^
|
|
89
|
-
"nyc": "^
|
|
90
|
-
"onchange": "^
|
|
87
|
+
"lint-staged": "^11.2.0",
|
|
88
|
+
"mocha": "^9.1.2",
|
|
89
|
+
"nyc": "^15.1.0",
|
|
90
|
+
"onchange": "^7.1.0",
|
|
91
91
|
"path": "^0.12.7",
|
|
92
|
-
"prettier": "^2.
|
|
93
|
-
"standard-version": "^
|
|
94
|
-
"supertest": "^
|
|
92
|
+
"prettier": "^2.4.1",
|
|
93
|
+
"standard-version": "^9.3.1",
|
|
94
|
+
"supertest": "^6.1.6"
|
|
95
95
|
},
|
|
96
96
|
"peerDependencies": {
|
|
97
|
-
"@quintype/seo": "^1.
|
|
97
|
+
"@quintype/seo": "^1.39.0"
|
|
98
98
|
},
|
|
99
99
|
"nyc": {
|
|
100
100
|
"exclude": [
|
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.cyanBright;
|
|
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")();
|
|
@@ -71,9 +73,11 @@ async function startWorker(appThunk, opts) {
|
|
|
71
73
|
const app = appThunk();
|
|
72
74
|
|
|
73
75
|
await initializeAllClients();
|
|
74
|
-
const server = app.listen(opts.port || 3000, () =>
|
|
75
|
-
console.log(
|
|
76
|
-
|
|
76
|
+
const server = app.listen(opts.port || 3000, () => {
|
|
77
|
+
console.log(logSuccess(`||=============================||`));
|
|
78
|
+
console.log(logSuccess(`|| App listening on port ${opts.port || 3000}! ||`))
|
|
79
|
+
console.log(logSuccess(`||=============================||`));
|
|
80
|
+
});
|
|
77
81
|
|
|
78
82
|
process.on("SIGTERM", () => {
|
|
79
83
|
server.close(() => {
|
|
@@ -83,7 +87,7 @@ async function startWorker(appThunk, opts) {
|
|
|
83
87
|
});
|
|
84
88
|
process.on("SIGHUP", () => {});
|
|
85
89
|
} catch (e) {
|
|
86
|
-
if (process.env.NODE_ENV
|
|
90
|
+
if (process.env.NODE_ENV !== "production") {
|
|
87
91
|
console.log(e.stack);
|
|
88
92
|
}
|
|
89
93
|
|