@commercetools-frontend/mc-scripts 0.0.0-CRAFT-1791-20251006162610
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/LICENSE +21 -0
- package/README.md +7 -0
- package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.d.ts +2 -0
- package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.dev.js +7 -0
- package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.js +7 -0
- package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.cjs.prod.js +7 -0
- package/application-runtime/dist/commercetools-frontend-mc-scripts-application-runtime.esm.js +5 -0
- package/application-runtime/package.json +4 -0
- package/bin/cli.js +8 -0
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.d.ts +2 -0
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.dev.js +199 -0
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.js +7 -0
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +199 -0
- package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +184 -0
- package/cli/package.json +4 -0
- package/config/create-webpack-config-for-development.js +8 -0
- package/config/create-webpack-config-for-production.js +8 -0
- package/config/vendors-to-transpile.js +6 -0
- package/dist/build-2a0a18bd.esm.js +155 -0
- package/dist/build-521f3f9f.cjs.prod.js +169 -0
- package/dist/build-988fc0f7.cjs.dev.js +169 -0
- package/dist/build-vite-16b1a575.cjs.dev.js +238 -0
- package/dist/build-vite-59e1f185.esm.js +208 -0
- package/dist/build-vite-5d317720.cjs.prod.js +238 -0
- package/dist/commercetools-frontend-mc-scripts.cjs.d.ts +2 -0
- package/dist/commercetools-frontend-mc-scripts.cjs.dev.js +29 -0
- package/dist/commercetools-frontend-mc-scripts.cjs.js +7 -0
- package/dist/commercetools-frontend-mc-scripts.cjs.prod.js +29 -0
- package/dist/commercetools-frontend-mc-scripts.esm.js +21 -0
- package/dist/compile-html-025cd493.esm.js +34 -0
- package/dist/compile-html-50fd05ec.cjs.prod.js +42 -0
- package/dist/compile-html-f4ac88cc.cjs.dev.js +42 -0
- package/dist/config-sync-70a16916.cjs.dev.js +852 -0
- package/dist/config-sync-72c20d80.cjs.prod.js +846 -0
- package/dist/config-sync-bc895390.esm.js +830 -0
- package/dist/create-postcss-config-cb7be312.cjs.dev.js +81 -0
- package/dist/create-postcss-config-dde0ccf1.esm.js +75 -0
- package/dist/create-postcss-config-edca0c33.cjs.prod.js +81 -0
- package/dist/create-webpack-config-for-development-1aed1cc0.cjs.prod.js +465 -0
- package/dist/create-webpack-config-for-development-a95f3634.esm.js +440 -0
- package/dist/create-webpack-config-for-development-d003697b.cjs.dev.js +465 -0
- package/dist/create-webpack-config-for-production-15fbe7db.cjs.dev.js +523 -0
- package/dist/create-webpack-config-for-production-764c482f.cjs.prod.js +523 -0
- package/dist/create-webpack-config-for-production-9f42c336.esm.js +493 -0
- package/dist/credentials-storage-66c1e51f.cjs.prod.js +95 -0
- package/dist/credentials-storage-d001f726.esm.js +83 -0
- package/dist/credentials-storage-e7884d17.cjs.dev.js +95 -0
- package/dist/declarations/src/application-runtime.d.ts +1 -0
- package/dist/declarations/src/cli.d.ts +4 -0
- package/dist/declarations/src/config/create-postcss-config.d.ts +4 -0
- package/dist/declarations/src/config/create-webpack-config-for-development.d.ts +10 -0
- package/dist/declarations/src/config/create-webpack-config-for-production.d.ts +10 -0
- package/dist/declarations/src/config/vendors-to-transpile.d.ts +2 -0
- package/dist/declarations/src/deprecated-entry-points.d.ts +7 -0
- package/dist/declarations/src/index.d.ts +3 -0
- package/dist/declarations/src/postcss.d.ts +1 -0
- package/dist/declarations/src/types.d.ts +94 -0
- package/dist/declarations/src/version.d.ts +2 -0
- package/dist/declarations/src/webpack-loaders/i18n-message-compilation-loader.d.ts +3 -0
- package/dist/declarations/src/webpack.d.ts +2 -0
- package/dist/deployment-previews-set-17e8ed48.cjs.prod.js +202 -0
- package/dist/deployment-previews-set-3648972f.esm.js +191 -0
- package/dist/deployment-previews-set-37aef990.cjs.dev.js +202 -0
- package/dist/does-file-exist-32618334.esm.js +12 -0
- package/dist/does-file-exist-be53305d.cjs.prod.js +18 -0
- package/dist/does-file-exist-eb86baca.cjs.dev.js +18 -0
- package/dist/graphql-requests-6a47ad5b.esm.js +247 -0
- package/dist/graphql-requests-779b867b.cjs.dev.js +270 -0
- package/dist/graphql-requests-8086eba7.cjs.prod.js +270 -0
- package/dist/has-jsx-runtime-aa5d21ee.cjs.dev.js +15 -0
- package/dist/has-jsx-runtime-c3202df5.cjs.prod.js +15 -0
- package/dist/has-jsx-runtime-e3ecb09b.esm.js +13 -0
- package/dist/i18n-message-complilation-21d3b0aa.esm.js +15 -0
- package/dist/i18n-message-complilation-7311cb29.cjs.dev.js +23 -0
- package/dist/i18n-message-complilation-7762da61.cjs.prod.js +23 -0
- package/dist/login-0a728449.esm.js +229 -0
- package/dist/login-817a5a26.cjs.dev.js +270 -0
- package/dist/login-85c25393.cjs.prod.js +270 -0
- package/dist/optimizations-7789145e.cjs.dev.js +85 -0
- package/dist/optimizations-bf991634.esm.js +67 -0
- package/dist/optimizations-fb93514f.cjs.prod.js +85 -0
- package/dist/package-7e170dc4.cjs.dev.js +160 -0
- package/dist/package-940b0a2a.cjs.prod.js +160 -0
- package/dist/package-99e547a7.esm.js +158 -0
- package/dist/paths-39f22b8b.esm.js +36 -0
- package/dist/paths-7768b440.cjs.prod.js +44 -0
- package/dist/paths-b76fc753.cjs.dev.js +44 -0
- package/dist/serve-1036c2de.esm.js +55 -0
- package/dist/serve-50d33f0b.cjs.dev.js +64 -0
- package/dist/serve-8a506da6.cjs.prod.js +64 -0
- package/dist/start-1d677ad8.cjs.dev.js +177 -0
- package/dist/start-2a7ae03d.esm.js +164 -0
- package/dist/start-f56cb5f7.cjs.prod.js +177 -0
- package/dist/start-vite-068e9f73.cjs.dev.js +128 -0
- package/dist/start-vite-29078b3a.cjs.prod.js +128 -0
- package/dist/start-vite-7d1161e8.esm.js +116 -0
- package/dist/vendors-to-transpile-04a49d40.cjs.prod.js +5 -0
- package/dist/vendors-to-transpile-6ab4ea06.cjs.dev.js +5 -0
- package/dist/vendors-to-transpile-7dc84a72.esm.js +3 -0
- package/dist/vite-plugin-svgr-4034a834.cjs.prod.js +151 -0
- package/dist/vite-plugin-svgr-7d06f400.cjs.dev.js +151 -0
- package/dist/vite-plugin-svgr-de6ee7da.esm.js +125 -0
- package/package.json +156 -0
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.d.ts +2 -0
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.dev.js +12 -0
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.js +7 -0
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.prod.js +12 -0
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.esm.js +4 -0
- package/postcss/package.json +4 -0
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.d.ts +2 -0
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.dev.js +57 -0
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.js +7 -0
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +57 -0
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.esm.js +48 -0
- package/webpack/package.json +4 -0
- package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.d.ts +3 -0
- package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.dev.js +30 -0
- package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.js +7 -0
- package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.prod.js +30 -0
- package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.esm.js +26 -0
- package/webpack-loaders/i18n-message-compilation-loader/package.json +4 -0
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var pkgJson = {
|
|
4
|
+
name: "@commercetools-frontend/mc-scripts",
|
|
5
|
+
version: "24.7.2",
|
|
6
|
+
description: "Configuration and scripts for developing a MC application",
|
|
7
|
+
bugs: "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
8
|
+
repository: {
|
|
9
|
+
type: "git",
|
|
10
|
+
url: "https://github.com/commercetools/merchant-center-application-kit.git",
|
|
11
|
+
directory: "packages/mc-scripts"
|
|
12
|
+
},
|
|
13
|
+
homepage: "https://docs.commercetools.com/merchant-center-customizations",
|
|
14
|
+
keywords: [
|
|
15
|
+
"javascript",
|
|
16
|
+
"frontend",
|
|
17
|
+
"react",
|
|
18
|
+
"toolkit"
|
|
19
|
+
],
|
|
20
|
+
license: "MIT",
|
|
21
|
+
publishConfig: {
|
|
22
|
+
access: "public"
|
|
23
|
+
},
|
|
24
|
+
main: "dist/commercetools-frontend-mc-scripts.cjs.js",
|
|
25
|
+
module: "dist/commercetools-frontend-mc-scripts.esm.js",
|
|
26
|
+
preconstruct: {
|
|
27
|
+
entrypoints: [
|
|
28
|
+
"./index.ts",
|
|
29
|
+
"./application-runtime.ts",
|
|
30
|
+
"./cli.ts",
|
|
31
|
+
"./postcss.ts",
|
|
32
|
+
"./webpack.ts",
|
|
33
|
+
"./webpack-loaders/i18n-message-compilation-loader.ts"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
files: [
|
|
37
|
+
"bin",
|
|
38
|
+
"cli",
|
|
39
|
+
"dist",
|
|
40
|
+
"config",
|
|
41
|
+
"application-runtime",
|
|
42
|
+
"postcss",
|
|
43
|
+
"webpack",
|
|
44
|
+
"webpack-loaders",
|
|
45
|
+
"package.json",
|
|
46
|
+
"LICENSE",
|
|
47
|
+
"README.md"
|
|
48
|
+
],
|
|
49
|
+
bin: "./bin/cli.js",
|
|
50
|
+
browserslist: {
|
|
51
|
+
production: [
|
|
52
|
+
">1%",
|
|
53
|
+
"not op_mini all",
|
|
54
|
+
"not dead"
|
|
55
|
+
],
|
|
56
|
+
development: [
|
|
57
|
+
"last 2 firefox versions",
|
|
58
|
+
"last 2 chrome versions"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
dependencies: {
|
|
62
|
+
"@babel/core": "^7.22.17",
|
|
63
|
+
"@babel/plugin-proposal-do-expressions": "^7.22.5",
|
|
64
|
+
"@babel/runtime": "^7.22.15",
|
|
65
|
+
"@babel/runtime-corejs3": "^7.22.15",
|
|
66
|
+
"@commercetools-frontend/application-components": "24.7.2",
|
|
67
|
+
"@commercetools-frontend/application-config": "24.7.2",
|
|
68
|
+
"@commercetools-frontend/assets": "24.7.2",
|
|
69
|
+
"@commercetools-frontend/babel-preset-mc-app": "24.7.2",
|
|
70
|
+
"@commercetools-frontend/constants": "24.7.2",
|
|
71
|
+
"@commercetools-frontend/mc-dev-authentication": "24.7.2",
|
|
72
|
+
"@commercetools-frontend/mc-html-template": "24.7.2",
|
|
73
|
+
"@commercetools/http-user-agent": "3.0.0",
|
|
74
|
+
"@emotion/babel-plugin": "^11.13.5",
|
|
75
|
+
"@formatjs/cli-lib": "^6.3.8",
|
|
76
|
+
"@pmmmwh/react-refresh-webpack-plugin": "0.6.1",
|
|
77
|
+
"@rollup/plugin-graphql": "2.0.5",
|
|
78
|
+
"@rollup/pluginutils": "5.2.0",
|
|
79
|
+
"@svgr/babel-preset": "^6.5.1",
|
|
80
|
+
"@svgr/core": "^6.5.1",
|
|
81
|
+
"@svgr/webpack": "^6.5.1",
|
|
82
|
+
"@types/prompts": "^2.4.4",
|
|
83
|
+
"@types/svgo": "^2.6.4",
|
|
84
|
+
"@types/webpack-bundle-analyzer": "^4.6.0",
|
|
85
|
+
"@vitejs/plugin-react": "4.7.0",
|
|
86
|
+
"@vitejs/plugin-react-swc": "3.11.0",
|
|
87
|
+
autoprefixer: "^10.4.15",
|
|
88
|
+
"babel-loader": "8.4.1",
|
|
89
|
+
"babel-plugin-formatjs": "^10.5.25",
|
|
90
|
+
browserslist: "^4.21.10",
|
|
91
|
+
chalk: "4.1.2",
|
|
92
|
+
commander: "^13.1.0",
|
|
93
|
+
"core-js": "^3.32.2",
|
|
94
|
+
"css-loader": "6.11.0",
|
|
95
|
+
"css-minimizer-webpack-plugin": "3.4.1",
|
|
96
|
+
dotenv: "16.6.1",
|
|
97
|
+
"dotenv-expand": "8.0.3",
|
|
98
|
+
"fs-extra": "10.1.0",
|
|
99
|
+
graphql: "16.11.0",
|
|
100
|
+
"graphql-request": "5.2.0",
|
|
101
|
+
"graphql-tag": "^2.12.6",
|
|
102
|
+
"html-webpack-plugin": "5.6.3",
|
|
103
|
+
"json-loader": "0.5.7",
|
|
104
|
+
"jwt-decode": "3.1.2",
|
|
105
|
+
lodash: "4.17.21",
|
|
106
|
+
"mini-css-extract-plugin": "2.9.4",
|
|
107
|
+
moment: "^2.29.4",
|
|
108
|
+
"moment-locales-webpack-plugin": "1.2.0",
|
|
109
|
+
"node-fetch": "2.7.0",
|
|
110
|
+
open: "^10.1.0",
|
|
111
|
+
postcss: "8.5.6",
|
|
112
|
+
"postcss-custom-media": "8.0.2",
|
|
113
|
+
"postcss-custom-properties": "12.1.4",
|
|
114
|
+
"postcss-import": "14.1.0",
|
|
115
|
+
"postcss-loader": "6.2.1",
|
|
116
|
+
"postcss-reporter": "7.1.0",
|
|
117
|
+
prettier: "2.8.8",
|
|
118
|
+
prompts: "^2.4.2",
|
|
119
|
+
"querystring-es3": "^0.2.1",
|
|
120
|
+
"react-dev-utils": "12.0.1",
|
|
121
|
+
"react-refresh": "0.17.0",
|
|
122
|
+
"rollup-plugin-visualizer": "^5.14.0",
|
|
123
|
+
"serve-handler": "6.1.6",
|
|
124
|
+
sharp: "^0.34.1",
|
|
125
|
+
shelljs: "0.10.0",
|
|
126
|
+
"style-loader": "3.3.4",
|
|
127
|
+
"svg-url-loader": "7.1.1",
|
|
128
|
+
"terser-webpack-plugin": "5.3.14",
|
|
129
|
+
"thread-loader": "3.0.4",
|
|
130
|
+
url: "^0.11.0",
|
|
131
|
+
vite: "~6.3.0",
|
|
132
|
+
"vite-bundle-analyzer": "0.23.0",
|
|
133
|
+
"vite-plugin-clean-build": "^1.4.1",
|
|
134
|
+
webpack: "5.101.1",
|
|
135
|
+
"webpack-bundle-analyzer": "4.10.2",
|
|
136
|
+
"webpack-dev-server": "4.15.2",
|
|
137
|
+
webpackbar: "5.0.2"
|
|
138
|
+
},
|
|
139
|
+
devDependencies: {
|
|
140
|
+
"@commercetools/composable-commerce-test-data": "11.0.0",
|
|
141
|
+
"@tsconfig/node22": "^22.0.0",
|
|
142
|
+
"@types/fs-extra": "^11.0.1",
|
|
143
|
+
"@types/lodash": "^4.14.198",
|
|
144
|
+
"@types/mock-fs": "^4.13.4",
|
|
145
|
+
"@types/moment-locales-webpack-plugin": "^1.2.3",
|
|
146
|
+
"@types/node-fetch": "2.6.13",
|
|
147
|
+
"@types/prettier": "2.7.3",
|
|
148
|
+
"@types/serve-handler": "^6.1.1",
|
|
149
|
+
"jest-mock": "29.7.0",
|
|
150
|
+
memfs: "^4.8.2",
|
|
151
|
+
"mock-fs": "^5.4.1",
|
|
152
|
+
msw: "^1.3.5",
|
|
153
|
+
rimraf: "5.0.10"
|
|
154
|
+
},
|
|
155
|
+
engines: {
|
|
156
|
+
node: "18.x || 20.x || >=22.0.0"
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
exports.pkgJson = pkgJson;
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var pkgJson = {
|
|
4
|
+
name: "@commercetools-frontend/mc-scripts",
|
|
5
|
+
version: "24.7.2",
|
|
6
|
+
description: "Configuration and scripts for developing a MC application",
|
|
7
|
+
bugs: "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
8
|
+
repository: {
|
|
9
|
+
type: "git",
|
|
10
|
+
url: "https://github.com/commercetools/merchant-center-application-kit.git",
|
|
11
|
+
directory: "packages/mc-scripts"
|
|
12
|
+
},
|
|
13
|
+
homepage: "https://docs.commercetools.com/merchant-center-customizations",
|
|
14
|
+
keywords: [
|
|
15
|
+
"javascript",
|
|
16
|
+
"frontend",
|
|
17
|
+
"react",
|
|
18
|
+
"toolkit"
|
|
19
|
+
],
|
|
20
|
+
license: "MIT",
|
|
21
|
+
publishConfig: {
|
|
22
|
+
access: "public"
|
|
23
|
+
},
|
|
24
|
+
main: "dist/commercetools-frontend-mc-scripts.cjs.js",
|
|
25
|
+
module: "dist/commercetools-frontend-mc-scripts.esm.js",
|
|
26
|
+
preconstruct: {
|
|
27
|
+
entrypoints: [
|
|
28
|
+
"./index.ts",
|
|
29
|
+
"./application-runtime.ts",
|
|
30
|
+
"./cli.ts",
|
|
31
|
+
"./postcss.ts",
|
|
32
|
+
"./webpack.ts",
|
|
33
|
+
"./webpack-loaders/i18n-message-compilation-loader.ts"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
files: [
|
|
37
|
+
"bin",
|
|
38
|
+
"cli",
|
|
39
|
+
"dist",
|
|
40
|
+
"config",
|
|
41
|
+
"application-runtime",
|
|
42
|
+
"postcss",
|
|
43
|
+
"webpack",
|
|
44
|
+
"webpack-loaders",
|
|
45
|
+
"package.json",
|
|
46
|
+
"LICENSE",
|
|
47
|
+
"README.md"
|
|
48
|
+
],
|
|
49
|
+
bin: "./bin/cli.js",
|
|
50
|
+
browserslist: {
|
|
51
|
+
production: [
|
|
52
|
+
">1%",
|
|
53
|
+
"not op_mini all",
|
|
54
|
+
"not dead"
|
|
55
|
+
],
|
|
56
|
+
development: [
|
|
57
|
+
"last 2 firefox versions",
|
|
58
|
+
"last 2 chrome versions"
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
dependencies: {
|
|
62
|
+
"@babel/core": "^7.22.17",
|
|
63
|
+
"@babel/plugin-proposal-do-expressions": "^7.22.5",
|
|
64
|
+
"@babel/runtime": "^7.22.15",
|
|
65
|
+
"@babel/runtime-corejs3": "^7.22.15",
|
|
66
|
+
"@commercetools-frontend/application-components": "24.7.2",
|
|
67
|
+
"@commercetools-frontend/application-config": "24.7.2",
|
|
68
|
+
"@commercetools-frontend/assets": "24.7.2",
|
|
69
|
+
"@commercetools-frontend/babel-preset-mc-app": "24.7.2",
|
|
70
|
+
"@commercetools-frontend/constants": "24.7.2",
|
|
71
|
+
"@commercetools-frontend/mc-dev-authentication": "24.7.2",
|
|
72
|
+
"@commercetools-frontend/mc-html-template": "24.7.2",
|
|
73
|
+
"@commercetools/http-user-agent": "3.0.0",
|
|
74
|
+
"@emotion/babel-plugin": "^11.13.5",
|
|
75
|
+
"@formatjs/cli-lib": "^6.3.8",
|
|
76
|
+
"@pmmmwh/react-refresh-webpack-plugin": "0.6.1",
|
|
77
|
+
"@rollup/plugin-graphql": "2.0.5",
|
|
78
|
+
"@rollup/pluginutils": "5.2.0",
|
|
79
|
+
"@svgr/babel-preset": "^6.5.1",
|
|
80
|
+
"@svgr/core": "^6.5.1",
|
|
81
|
+
"@svgr/webpack": "^6.5.1",
|
|
82
|
+
"@types/prompts": "^2.4.4",
|
|
83
|
+
"@types/svgo": "^2.6.4",
|
|
84
|
+
"@types/webpack-bundle-analyzer": "^4.6.0",
|
|
85
|
+
"@vitejs/plugin-react": "4.7.0",
|
|
86
|
+
"@vitejs/plugin-react-swc": "3.11.0",
|
|
87
|
+
autoprefixer: "^10.4.15",
|
|
88
|
+
"babel-loader": "8.4.1",
|
|
89
|
+
"babel-plugin-formatjs": "^10.5.25",
|
|
90
|
+
browserslist: "^4.21.10",
|
|
91
|
+
chalk: "4.1.2",
|
|
92
|
+
commander: "^13.1.0",
|
|
93
|
+
"core-js": "^3.32.2",
|
|
94
|
+
"css-loader": "6.11.0",
|
|
95
|
+
"css-minimizer-webpack-plugin": "3.4.1",
|
|
96
|
+
dotenv: "16.6.1",
|
|
97
|
+
"dotenv-expand": "8.0.3",
|
|
98
|
+
"fs-extra": "10.1.0",
|
|
99
|
+
graphql: "16.11.0",
|
|
100
|
+
"graphql-request": "5.2.0",
|
|
101
|
+
"graphql-tag": "^2.12.6",
|
|
102
|
+
"html-webpack-plugin": "5.6.3",
|
|
103
|
+
"json-loader": "0.5.7",
|
|
104
|
+
"jwt-decode": "3.1.2",
|
|
105
|
+
lodash: "4.17.21",
|
|
106
|
+
"mini-css-extract-plugin": "2.9.4",
|
|
107
|
+
moment: "^2.29.4",
|
|
108
|
+
"moment-locales-webpack-plugin": "1.2.0",
|
|
109
|
+
"node-fetch": "2.7.0",
|
|
110
|
+
open: "^10.1.0",
|
|
111
|
+
postcss: "8.5.6",
|
|
112
|
+
"postcss-custom-media": "8.0.2",
|
|
113
|
+
"postcss-custom-properties": "12.1.4",
|
|
114
|
+
"postcss-import": "14.1.0",
|
|
115
|
+
"postcss-loader": "6.2.1",
|
|
116
|
+
"postcss-reporter": "7.1.0",
|
|
117
|
+
prettier: "2.8.8",
|
|
118
|
+
prompts: "^2.4.2",
|
|
119
|
+
"querystring-es3": "^0.2.1",
|
|
120
|
+
"react-dev-utils": "12.0.1",
|
|
121
|
+
"react-refresh": "0.17.0",
|
|
122
|
+
"rollup-plugin-visualizer": "^5.14.0",
|
|
123
|
+
"serve-handler": "6.1.6",
|
|
124
|
+
sharp: "^0.34.1",
|
|
125
|
+
shelljs: "0.10.0",
|
|
126
|
+
"style-loader": "3.3.4",
|
|
127
|
+
"svg-url-loader": "7.1.1",
|
|
128
|
+
"terser-webpack-plugin": "5.3.14",
|
|
129
|
+
"thread-loader": "3.0.4",
|
|
130
|
+
url: "^0.11.0",
|
|
131
|
+
vite: "~6.3.0",
|
|
132
|
+
"vite-bundle-analyzer": "0.23.0",
|
|
133
|
+
"vite-plugin-clean-build": "^1.4.1",
|
|
134
|
+
webpack: "5.101.1",
|
|
135
|
+
"webpack-bundle-analyzer": "4.10.2",
|
|
136
|
+
"webpack-dev-server": "4.15.2",
|
|
137
|
+
webpackbar: "5.0.2"
|
|
138
|
+
},
|
|
139
|
+
devDependencies: {
|
|
140
|
+
"@commercetools/composable-commerce-test-data": "11.0.0",
|
|
141
|
+
"@tsconfig/node22": "^22.0.0",
|
|
142
|
+
"@types/fs-extra": "^11.0.1",
|
|
143
|
+
"@types/lodash": "^4.14.198",
|
|
144
|
+
"@types/mock-fs": "^4.13.4",
|
|
145
|
+
"@types/moment-locales-webpack-plugin": "^1.2.3",
|
|
146
|
+
"@types/node-fetch": "2.6.13",
|
|
147
|
+
"@types/prettier": "2.7.3",
|
|
148
|
+
"@types/serve-handler": "^6.1.1",
|
|
149
|
+
"jest-mock": "29.7.0",
|
|
150
|
+
memfs: "^4.8.2",
|
|
151
|
+
"mock-fs": "^5.4.1",
|
|
152
|
+
msw: "^1.3.5",
|
|
153
|
+
rimraf: "5.0.10"
|
|
154
|
+
},
|
|
155
|
+
engines: {
|
|
156
|
+
node: "18.x || 20.x || >=22.0.0"
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
exports.pkgJson = pkgJson;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
var pkgJson = {
|
|
2
|
+
name: "@commercetools-frontend/mc-scripts",
|
|
3
|
+
version: "24.7.2",
|
|
4
|
+
description: "Configuration and scripts for developing a MC application",
|
|
5
|
+
bugs: "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
|
+
repository: {
|
|
7
|
+
type: "git",
|
|
8
|
+
url: "https://github.com/commercetools/merchant-center-application-kit.git",
|
|
9
|
+
directory: "packages/mc-scripts"
|
|
10
|
+
},
|
|
11
|
+
homepage: "https://docs.commercetools.com/merchant-center-customizations",
|
|
12
|
+
keywords: [
|
|
13
|
+
"javascript",
|
|
14
|
+
"frontend",
|
|
15
|
+
"react",
|
|
16
|
+
"toolkit"
|
|
17
|
+
],
|
|
18
|
+
license: "MIT",
|
|
19
|
+
publishConfig: {
|
|
20
|
+
access: "public"
|
|
21
|
+
},
|
|
22
|
+
main: "dist/commercetools-frontend-mc-scripts.cjs.js",
|
|
23
|
+
module: "dist/commercetools-frontend-mc-scripts.esm.js",
|
|
24
|
+
preconstruct: {
|
|
25
|
+
entrypoints: [
|
|
26
|
+
"./index.ts",
|
|
27
|
+
"./application-runtime.ts",
|
|
28
|
+
"./cli.ts",
|
|
29
|
+
"./postcss.ts",
|
|
30
|
+
"./webpack.ts",
|
|
31
|
+
"./webpack-loaders/i18n-message-compilation-loader.ts"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
files: [
|
|
35
|
+
"bin",
|
|
36
|
+
"cli",
|
|
37
|
+
"dist",
|
|
38
|
+
"config",
|
|
39
|
+
"application-runtime",
|
|
40
|
+
"postcss",
|
|
41
|
+
"webpack",
|
|
42
|
+
"webpack-loaders",
|
|
43
|
+
"package.json",
|
|
44
|
+
"LICENSE",
|
|
45
|
+
"README.md"
|
|
46
|
+
],
|
|
47
|
+
bin: "./bin/cli.js",
|
|
48
|
+
browserslist: {
|
|
49
|
+
production: [
|
|
50
|
+
">1%",
|
|
51
|
+
"not op_mini all",
|
|
52
|
+
"not dead"
|
|
53
|
+
],
|
|
54
|
+
development: [
|
|
55
|
+
"last 2 firefox versions",
|
|
56
|
+
"last 2 chrome versions"
|
|
57
|
+
]
|
|
58
|
+
},
|
|
59
|
+
dependencies: {
|
|
60
|
+
"@babel/core": "^7.22.17",
|
|
61
|
+
"@babel/plugin-proposal-do-expressions": "^7.22.5",
|
|
62
|
+
"@babel/runtime": "^7.22.15",
|
|
63
|
+
"@babel/runtime-corejs3": "^7.22.15",
|
|
64
|
+
"@commercetools-frontend/application-components": "24.7.2",
|
|
65
|
+
"@commercetools-frontend/application-config": "24.7.2",
|
|
66
|
+
"@commercetools-frontend/assets": "24.7.2",
|
|
67
|
+
"@commercetools-frontend/babel-preset-mc-app": "24.7.2",
|
|
68
|
+
"@commercetools-frontend/constants": "24.7.2",
|
|
69
|
+
"@commercetools-frontend/mc-dev-authentication": "24.7.2",
|
|
70
|
+
"@commercetools-frontend/mc-html-template": "24.7.2",
|
|
71
|
+
"@commercetools/http-user-agent": "3.0.0",
|
|
72
|
+
"@emotion/babel-plugin": "^11.13.5",
|
|
73
|
+
"@formatjs/cli-lib": "^6.3.8",
|
|
74
|
+
"@pmmmwh/react-refresh-webpack-plugin": "0.6.1",
|
|
75
|
+
"@rollup/plugin-graphql": "2.0.5",
|
|
76
|
+
"@rollup/pluginutils": "5.2.0",
|
|
77
|
+
"@svgr/babel-preset": "^6.5.1",
|
|
78
|
+
"@svgr/core": "^6.5.1",
|
|
79
|
+
"@svgr/webpack": "^6.5.1",
|
|
80
|
+
"@types/prompts": "^2.4.4",
|
|
81
|
+
"@types/svgo": "^2.6.4",
|
|
82
|
+
"@types/webpack-bundle-analyzer": "^4.6.0",
|
|
83
|
+
"@vitejs/plugin-react": "4.7.0",
|
|
84
|
+
"@vitejs/plugin-react-swc": "3.11.0",
|
|
85
|
+
autoprefixer: "^10.4.15",
|
|
86
|
+
"babel-loader": "8.4.1",
|
|
87
|
+
"babel-plugin-formatjs": "^10.5.25",
|
|
88
|
+
browserslist: "^4.21.10",
|
|
89
|
+
chalk: "4.1.2",
|
|
90
|
+
commander: "^13.1.0",
|
|
91
|
+
"core-js": "^3.32.2",
|
|
92
|
+
"css-loader": "6.11.0",
|
|
93
|
+
"css-minimizer-webpack-plugin": "3.4.1",
|
|
94
|
+
dotenv: "16.6.1",
|
|
95
|
+
"dotenv-expand": "8.0.3",
|
|
96
|
+
"fs-extra": "10.1.0",
|
|
97
|
+
graphql: "16.11.0",
|
|
98
|
+
"graphql-request": "5.2.0",
|
|
99
|
+
"graphql-tag": "^2.12.6",
|
|
100
|
+
"html-webpack-plugin": "5.6.3",
|
|
101
|
+
"json-loader": "0.5.7",
|
|
102
|
+
"jwt-decode": "3.1.2",
|
|
103
|
+
lodash: "4.17.21",
|
|
104
|
+
"mini-css-extract-plugin": "2.9.4",
|
|
105
|
+
moment: "^2.29.4",
|
|
106
|
+
"moment-locales-webpack-plugin": "1.2.0",
|
|
107
|
+
"node-fetch": "2.7.0",
|
|
108
|
+
open: "^10.1.0",
|
|
109
|
+
postcss: "8.5.6",
|
|
110
|
+
"postcss-custom-media": "8.0.2",
|
|
111
|
+
"postcss-custom-properties": "12.1.4",
|
|
112
|
+
"postcss-import": "14.1.0",
|
|
113
|
+
"postcss-loader": "6.2.1",
|
|
114
|
+
"postcss-reporter": "7.1.0",
|
|
115
|
+
prettier: "2.8.8",
|
|
116
|
+
prompts: "^2.4.2",
|
|
117
|
+
"querystring-es3": "^0.2.1",
|
|
118
|
+
"react-dev-utils": "12.0.1",
|
|
119
|
+
"react-refresh": "0.17.0",
|
|
120
|
+
"rollup-plugin-visualizer": "^5.14.0",
|
|
121
|
+
"serve-handler": "6.1.6",
|
|
122
|
+
sharp: "^0.34.1",
|
|
123
|
+
shelljs: "0.10.0",
|
|
124
|
+
"style-loader": "3.3.4",
|
|
125
|
+
"svg-url-loader": "7.1.1",
|
|
126
|
+
"terser-webpack-plugin": "5.3.14",
|
|
127
|
+
"thread-loader": "3.0.4",
|
|
128
|
+
url: "^0.11.0",
|
|
129
|
+
vite: "~6.3.0",
|
|
130
|
+
"vite-bundle-analyzer": "0.23.0",
|
|
131
|
+
"vite-plugin-clean-build": "^1.4.1",
|
|
132
|
+
webpack: "5.101.1",
|
|
133
|
+
"webpack-bundle-analyzer": "4.10.2",
|
|
134
|
+
"webpack-dev-server": "4.15.2",
|
|
135
|
+
webpackbar: "5.0.2"
|
|
136
|
+
},
|
|
137
|
+
devDependencies: {
|
|
138
|
+
"@commercetools/composable-commerce-test-data": "11.0.0",
|
|
139
|
+
"@tsconfig/node22": "^22.0.0",
|
|
140
|
+
"@types/fs-extra": "^11.0.1",
|
|
141
|
+
"@types/lodash": "^4.14.198",
|
|
142
|
+
"@types/mock-fs": "^4.13.4",
|
|
143
|
+
"@types/moment-locales-webpack-plugin": "^1.2.3",
|
|
144
|
+
"@types/node-fetch": "2.6.13",
|
|
145
|
+
"@types/prettier": "2.7.3",
|
|
146
|
+
"@types/serve-handler": "^6.1.1",
|
|
147
|
+
"jest-mock": "29.7.0",
|
|
148
|
+
memfs: "^4.8.2",
|
|
149
|
+
"mock-fs": "^5.4.1",
|
|
150
|
+
msw: "^1.3.5",
|
|
151
|
+
rimraf: "5.0.10"
|
|
152
|
+
},
|
|
153
|
+
engines: {
|
|
154
|
+
node: "18.x || 20.x || >=22.0.0"
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
export { pkgJson as p };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import _findInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
2
|
+
import fs from 'fs';
|
|
3
|
+
import path from 'path';
|
|
4
|
+
import { d as doesFileExist } from './does-file-exist-32618334.esm.js';
|
|
5
|
+
|
|
6
|
+
const moduleFileExtensions = ['js', 'mjs', 'cjs', 'jsx', 'ts', 'tsx'];
|
|
7
|
+
|
|
8
|
+
// Make sure any symlinks in the project folder are resolved:
|
|
9
|
+
// https://github.com/facebook/create-react-app/issues/637
|
|
10
|
+
const appDirectory = fs.realpathSync(process.cwd());
|
|
11
|
+
const resolveApp = relativePath => path.resolve(appDirectory, relativePath);
|
|
12
|
+
|
|
13
|
+
// Resolve file paths in the order given
|
|
14
|
+
const resolveModule = (resolveFn, filePath) => {
|
|
15
|
+
const extension = _findInstanceProperty(moduleFileExtensions).call(moduleFileExtensions, extension => doesFileExist(resolveFn(`${filePath}.${extension}`)));
|
|
16
|
+
if (extension) {
|
|
17
|
+
return resolveFn(`${filePath}.${extension}`);
|
|
18
|
+
}
|
|
19
|
+
return resolveFn(`${filePath}.js`);
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
// Resolve the absolute path of the caller location. This is necessary
|
|
23
|
+
// to point to files within that folder.
|
|
24
|
+
const paths = {
|
|
25
|
+
appPackageJson: resolveApp('package.json'),
|
|
26
|
+
appBuild: resolveApp('public'),
|
|
27
|
+
appIndexHtmlTemplate: resolveApp('public/index.html.template'),
|
|
28
|
+
appIndexHtml: resolveApp('public/index.html'),
|
|
29
|
+
appWebpackConfig: resolveModule(resolveApp, `webpack.config.${process.env.NODE_ENV === 'production' ? 'prod' : 'dev'}`),
|
|
30
|
+
yarnLockFile: resolveApp('yarn.lock'),
|
|
31
|
+
appRoot: resolveApp('.'),
|
|
32
|
+
entryPoint: resolveModule(resolveApp, 'src/index'),
|
|
33
|
+
sourceFolders: [resolveApp('src')]
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export { paths as p };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
4
|
+
var fs = require('fs');
|
|
5
|
+
var path = require('path');
|
|
6
|
+
var doesFileExist = require('./does-file-exist-be53305d.cjs.prod.js');
|
|
7
|
+
|
|
8
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
9
|
+
|
|
10
|
+
var _findInstanceProperty__default = /*#__PURE__*/_interopDefault(_findInstanceProperty);
|
|
11
|
+
var fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
12
|
+
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
13
|
+
|
|
14
|
+
const moduleFileExtensions = ['js', 'mjs', 'cjs', 'jsx', 'ts', 'tsx'];
|
|
15
|
+
|
|
16
|
+
// Make sure any symlinks in the project folder are resolved:
|
|
17
|
+
// https://github.com/facebook/create-react-app/issues/637
|
|
18
|
+
const appDirectory = fs__default["default"].realpathSync(process.cwd());
|
|
19
|
+
const resolveApp = relativePath => path__default["default"].resolve(appDirectory, relativePath);
|
|
20
|
+
|
|
21
|
+
// Resolve file paths in the order given
|
|
22
|
+
const resolveModule = (resolveFn, filePath) => {
|
|
23
|
+
const extension = _findInstanceProperty__default["default"](moduleFileExtensions).call(moduleFileExtensions, extension => doesFileExist.doesFileExist(resolveFn(`${filePath}.${extension}`)));
|
|
24
|
+
if (extension) {
|
|
25
|
+
return resolveFn(`${filePath}.${extension}`);
|
|
26
|
+
}
|
|
27
|
+
return resolveFn(`${filePath}.js`);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
// Resolve the absolute path of the caller location. This is necessary
|
|
31
|
+
// to point to files within that folder.
|
|
32
|
+
const paths = {
|
|
33
|
+
appPackageJson: resolveApp('package.json'),
|
|
34
|
+
appBuild: resolveApp('public'),
|
|
35
|
+
appIndexHtmlTemplate: resolveApp('public/index.html.template'),
|
|
36
|
+
appIndexHtml: resolveApp('public/index.html'),
|
|
37
|
+
appWebpackConfig: resolveModule(resolveApp, `webpack.config.${'prod' }`),
|
|
38
|
+
yarnLockFile: resolveApp('yarn.lock'),
|
|
39
|
+
appRoot: resolveApp('.'),
|
|
40
|
+
entryPoint: resolveModule(resolveApp, 'src/index'),
|
|
41
|
+
sourceFolders: [resolveApp('src')]
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
exports.paths = paths;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var _findInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/find');
|
|
4
|
+
var fs = require('fs');
|
|
5
|
+
var path = require('path');
|
|
6
|
+
var doesFileExist = require('./does-file-exist-eb86baca.cjs.dev.js');
|
|
7
|
+
|
|
8
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
9
|
+
|
|
10
|
+
var _findInstanceProperty__default = /*#__PURE__*/_interopDefault(_findInstanceProperty);
|
|
11
|
+
var fs__default = /*#__PURE__*/_interopDefault(fs);
|
|
12
|
+
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
13
|
+
|
|
14
|
+
const moduleFileExtensions = ['js', 'mjs', 'cjs', 'jsx', 'ts', 'tsx'];
|
|
15
|
+
|
|
16
|
+
// Make sure any symlinks in the project folder are resolved:
|
|
17
|
+
// https://github.com/facebook/create-react-app/issues/637
|
|
18
|
+
const appDirectory = fs__default["default"].realpathSync(process.cwd());
|
|
19
|
+
const resolveApp = relativePath => path__default["default"].resolve(appDirectory, relativePath);
|
|
20
|
+
|
|
21
|
+
// Resolve file paths in the order given
|
|
22
|
+
const resolveModule = (resolveFn, filePath) => {
|
|
23
|
+
const extension = _findInstanceProperty__default["default"](moduleFileExtensions).call(moduleFileExtensions, extension => doesFileExist.doesFileExist(resolveFn(`${filePath}.${extension}`)));
|
|
24
|
+
if (extension) {
|
|
25
|
+
return resolveFn(`${filePath}.${extension}`);
|
|
26
|
+
}
|
|
27
|
+
return resolveFn(`${filePath}.js`);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
// Resolve the absolute path of the caller location. This is necessary
|
|
31
|
+
// to point to files within that folder.
|
|
32
|
+
const paths = {
|
|
33
|
+
appPackageJson: resolveApp('package.json'),
|
|
34
|
+
appBuild: resolveApp('public'),
|
|
35
|
+
appIndexHtmlTemplate: resolveApp('public/index.html.template'),
|
|
36
|
+
appIndexHtml: resolveApp('public/index.html'),
|
|
37
|
+
appWebpackConfig: resolveModule(resolveApp, `webpack.config.${process.env.NODE_ENV === 'production' ? 'prod' : 'dev'}`),
|
|
38
|
+
yarnLockFile: resolveApp('yarn.lock'),
|
|
39
|
+
appRoot: resolveApp('.'),
|
|
40
|
+
entryPoint: resolveModule(resolveApp, 'src/index'),
|
|
41
|
+
sourceFolders: [resolveApp('src')]
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
exports.paths = paths;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import _startsWithInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/starts-with';
|
|
2
|
+
import _URL from '@babel/runtime-corejs3/core-js-stable/url';
|
|
3
|
+
import http from 'http';
|
|
4
|
+
import serveHandler from 'serve-handler';
|
|
5
|
+
import { processConfig } from '@commercetools-frontend/application-config';
|
|
6
|
+
import { p as paths } from './paths-39f22b8b.esm.js';
|
|
7
|
+
import '@babel/runtime-corejs3/core-js-stable/instance/find';
|
|
8
|
+
import 'fs';
|
|
9
|
+
import 'path';
|
|
10
|
+
import './does-file-exist-32618334.esm.js';
|
|
11
|
+
import 'node:fs';
|
|
12
|
+
|
|
13
|
+
const port = 3001;
|
|
14
|
+
async function run() {
|
|
15
|
+
const applicationConfig = await processConfig();
|
|
16
|
+
const server = http.createServer((request, response) => {
|
|
17
|
+
var _context;
|
|
18
|
+
// When developing against local APIs, handle the login|logout routes separately.
|
|
19
|
+
if (_startsWithInstanceProperty(_context = applicationConfig.env.mcApiUrl).call(_context, 'http://localhost')) {
|
|
20
|
+
if (request.url?.startsWith('/login/authorize')) {
|
|
21
|
+
const redirectTo = new _URL(request.url, applicationConfig.env.mcApiUrl);
|
|
22
|
+
response.writeHead(301, {
|
|
23
|
+
Location: redirectTo.toString()
|
|
24
|
+
}).end();
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
if (request.url?.startsWith('/logout')) {
|
|
28
|
+
response.end('Please clear your session storage.');
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// You pass two more arguments for config and middleware
|
|
34
|
+
// More details here: https://github.com/vercel/serve-handler#options
|
|
35
|
+
return serveHandler(request, response, {
|
|
36
|
+
public: paths.appBuild,
|
|
37
|
+
rewrites: [{
|
|
38
|
+
source: '/favicon*',
|
|
39
|
+
destination: '/favicon.png'
|
|
40
|
+
}, {
|
|
41
|
+
// Match all routes except for the login, logout, and favicon routes.
|
|
42
|
+
// NOTE: this complex glob pattern would not be necessary if the rewrite
|
|
43
|
+
// implementation would stop at the first match.
|
|
44
|
+
// See https://github.com/vercel/serve-handler/issues/71
|
|
45
|
+
source: '{/!(favicon|login|logout)*/**,/!(favicon|login|logout)*}',
|
|
46
|
+
destination: '/index.html'
|
|
47
|
+
}]
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
server.listen(port, () => {
|
|
51
|
+
console.log(`Running at http://localhost:${port}`);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { run as default };
|