@common-stack/generate-plugin 6.0.8-alpha.41 → 6.0.8-alpha.43
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 +8 -0
- package/lib/generators/add-frontend/frameworks/antui/entry.client.tsx.template +6 -10
- package/lib/generators/add-frontend/frameworks/antui/root.tsx.template +5 -0
- package/lib/generators/add-frontend/frameworks/chakraui/entry.client.tsx.template +1 -6
- package/lib/generators/add-frontend/frameworks/tailwindui/entry.client.tsx.template +3 -10
- package/lib/generators/add-fullstack/files/Jenkinsfile +1 -1
- package/lib/generators/add-fullstack/files/package.json +8 -5
- package/package.json +2 -2
- package/src/generators/add-frontend/frameworks/antui/entry.client.tsx.template +6 -10
- package/src/generators/add-frontend/frameworks/antui/root.tsx.template +5 -0
- package/src/generators/add-frontend/frameworks/chakraui/entry.client.tsx.template +1 -6
- package/src/generators/add-frontend/frameworks/tailwindui/entry.client.tsx.template +3 -10
- package/src/generators/add-fullstack/files/Jenkinsfile +1 -1
- package/src/generators/add-fullstack/files/package.json +8 -5
- package/lib/generators/add-fullstack/files/codegen.yml +0 -47
- package/src/generators/add-fullstack/files/codegen.yml +0 -47
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [6.0.8-alpha.43](https://github.com/cdmbase/common-stack/compare/v6.0.8-alpha.42...v6.0.8-alpha.43) (2025-02-04)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @common-stack/generate-plugin
|
|
9
|
+
|
|
10
|
+
## [6.0.8-alpha.42](https://github.com/cdmbase/common-stack/compare/v6.0.8-alpha.41...v6.0.8-alpha.42) (2025-02-03)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @common-stack/generate-plugin
|
|
13
|
+
|
|
6
14
|
## [6.0.8-alpha.41](https://github.com/cdmbase/common-stack/compare/v6.0.8-alpha.40...v6.0.8-alpha.41) (2025-02-02)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @common-stack/generate-plugin
|
|
@@ -13,8 +13,8 @@ import { ApolloProvider } from '@apollo/client/index.js';
|
|
|
13
13
|
import { SlotFillProvider, removeUniversalPortals } from '@common-stack/components-pro';
|
|
14
14
|
import { InversifyProvider } from '@common-stack/client-react';
|
|
15
15
|
import { Provider as ReduxProvider } from 'react-redux';
|
|
16
|
-
import { PersistGate } from 'redux-persist/integration/react';
|
|
17
|
-
import { persistStore } from 'redux-persist';
|
|
16
|
+
// import { PersistGate } from 'redux-persist/integration/react';
|
|
17
|
+
// import { persistStore } from 'redux-persist';
|
|
18
18
|
import { CacheProvider } from '@emotion/react';
|
|
19
19
|
import i18next from 'i18next';
|
|
20
20
|
import { I18nextProvider, initReactI18next } from 'react-i18next';
|
|
@@ -36,7 +36,7 @@ import { LocaleContext } from './context';
|
|
|
36
36
|
|
|
37
37
|
const { apolloClient: client, container, serviceFunc } = createClientContainer();
|
|
38
38
|
const { store } = createReduxStore(client, serviceFunc(), container);
|
|
39
|
-
const persistor = persistStore(store);
|
|
39
|
+
// const persistor = persistStore(store);
|
|
40
40
|
const antCache = createCache();
|
|
41
41
|
const cache = createEmotionCache();
|
|
42
42
|
|
|
@@ -79,13 +79,9 @@ async function hydrate() {
|
|
|
79
79
|
<ReduxProvider store={store}>
|
|
80
80
|
<SlotFillProvider>
|
|
81
81
|
<InversifyProvider container={container} modules={clientModules}>
|
|
82
|
-
<
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
<RemixBrowser />
|
|
86
|
-
</ApolloProvider>
|
|
87
|
-
)}
|
|
88
|
-
</PersistGate>
|
|
82
|
+
<ApolloProvider client={client}>
|
|
83
|
+
<RemixBrowser />
|
|
84
|
+
</ApolloProvider>
|
|
89
85
|
</InversifyProvider>
|
|
90
86
|
</SlotFillProvider>
|
|
91
87
|
</ReduxProvider>
|
|
@@ -49,6 +49,11 @@ export function Layout({ children }: { children: React.ReactNode }) {
|
|
|
49
49
|
return (
|
|
50
50
|
<>
|
|
51
51
|
<script>window.__ENV__=[__ENV__]</script>
|
|
52
|
+
<script
|
|
53
|
+
dangerouslySetInnerHTML={{
|
|
54
|
+
__html: `window.process = {} `,
|
|
55
|
+
}}
|
|
56
|
+
/>
|
|
52
57
|
<script
|
|
53
58
|
src="https://cdnjs.cloudflare.com/ajax/libs/reflect-metadata/0.1.13/Reflect.min.js"
|
|
54
59
|
integrity="sha512-jvbPH2TH5BSZumEfOJZn9IV+5bSwwN+qG4dvthYe3KCGC3/9HmxZ4phADbt9Pfcp+XSyyfc2vGZ/RMsSUZ9tbQ=="
|
|
@@ -6,8 +6,6 @@ import { ApolloProvider } from '@apollo/client/index.js';
|
|
|
6
6
|
import { SlotFillProvider, removeUniversalPortals } from '@common-stack/components-pro';
|
|
7
7
|
import { InversifyProvider, PluginArea } from '@common-stack/client-react';
|
|
8
8
|
import { Provider as ReduxProvider } from 'react-redux';
|
|
9
|
-
import { PersistGate } from 'redux-persist/integration/react';
|
|
10
|
-
import { persistStore } from 'redux-persist';
|
|
11
9
|
import { CacheProvider } from '@emotion/react';
|
|
12
10
|
|
|
13
11
|
// @ts-ignore
|
|
@@ -31,7 +29,6 @@ import { ClientStyleContext, LocaleContext } from './context';
|
|
|
31
29
|
|
|
32
30
|
const { apolloClient: client, container, serviceFunc } = createClientContainer();
|
|
33
31
|
const { store } = createReduxStore(client, serviceFunc(), container);
|
|
34
|
-
const persistor = persistStore(store);
|
|
35
32
|
|
|
36
33
|
(window as any).__remixStore = store;
|
|
37
34
|
removeUniversalPortals((window as any).__SLOT_FILLS__ || []);
|
|
@@ -95,9 +92,7 @@ async function hydrate() {
|
|
|
95
92
|
<ReduxProvider store={store}>
|
|
96
93
|
<SlotFillProvider>
|
|
97
94
|
<InversifyProvider container={container} modules={clientModules}>
|
|
98
|
-
<
|
|
99
|
-
{() => <RemixBrowser />}
|
|
100
|
-
</PersistGate>
|
|
95
|
+
<RemixBrowser />
|
|
101
96
|
</InversifyProvider>
|
|
102
97
|
</SlotFillProvider>
|
|
103
98
|
</ReduxProvider>
|
|
@@ -12,8 +12,6 @@ import { ApolloProvider } from '@apollo/client/index.js';
|
|
|
12
12
|
import { SlotFillProvider, removeUniversalPortals } from '@common-stack/components-pro';
|
|
13
13
|
import { InversifyProvider } from '@common-stack/client-react';
|
|
14
14
|
import { Provider as ReduxProvider } from 'react-redux';
|
|
15
|
-
import { PersistGate } from 'redux-persist/integration/react';
|
|
16
|
-
import { persistStore } from 'redux-persist';
|
|
17
15
|
import i18next from 'i18next';
|
|
18
16
|
import { I18nextProvider, initReactI18next } from 'react-i18next';
|
|
19
17
|
import LanguageDetector from 'i18next-browser-languagedetector';
|
|
@@ -31,7 +29,6 @@ import config from '@app/cde-webconfig.json';
|
|
|
31
29
|
|
|
32
30
|
const { apolloClient: client, container, serviceFunc } = createClientContainer();
|
|
33
31
|
const { store } = createReduxStore(client, serviceFunc(), container);
|
|
34
|
-
const persistor = persistStore(store);
|
|
35
32
|
|
|
36
33
|
(window as any).__remixStore = store;
|
|
37
34
|
removeUniversalPortals((window as any).__SLOT_FILLS__ || []);
|
|
@@ -64,13 +61,9 @@ async function hydrate() {
|
|
|
64
61
|
<ReduxProvider store={store}>
|
|
65
62
|
<SlotFillProvider>
|
|
66
63
|
<InversifyProvider container={container} modules={clientModules}>
|
|
67
|
-
<
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
<RemixBrowser />
|
|
71
|
-
</ApolloProvider>
|
|
72
|
-
)}
|
|
73
|
-
</PersistGate>
|
|
64
|
+
<ApolloProvider client={client}>
|
|
65
|
+
<RemixBrowser />
|
|
66
|
+
</ApolloProvider>
|
|
74
67
|
</InversifyProvider>
|
|
75
68
|
</SlotFillProvider>
|
|
76
69
|
</ReduxProvider>
|
|
@@ -29,7 +29,7 @@ pipeline {
|
|
|
29
29
|
// by default first value of the choice will be choosen
|
|
30
30
|
choice choices: ['auto', 'force'], description: 'Choose merge strategy', name: 'NPM_PUBLISH_STRATEGY'
|
|
31
31
|
choice choices: ['yarn', 'npm'], description: 'Choose build strategy', name: 'BUILD_STRATEGY'
|
|
32
|
-
choice choices: ['0.7.
|
|
32
|
+
choice choices: ['0.7.12','0.7.11', '0.6.0'], description: 'Choose Idestack chart version', name: 'IDESTACK_CHART_VERSION'
|
|
33
33
|
choice choices: ['nodejs20', 'nodejs18', 'nodejs22'], description: 'Choose NodeJS version', name: 'NODEJS_TOOL_VERSION'
|
|
34
34
|
choice choices: ['buildOnly', 'buildAndTest', 'buildAndPublish', 'mobileBuild', 'mobilePreview', 'mobilePreviewLocal', 'mobilePreviewSubmit', 'mobileProd', 'mobileProdSubmit', 'devDeployOnly', 'stageDeploy', 'stageDeployOnly', 'prodDeploy', 'prodDeployOnly', 'allenv'], description: 'Where to deploy micro services?', name: 'ENV_CHOICE'
|
|
35
35
|
choice choices: ['all', 'ios', 'android' ], description: 'Mobile type if it is mobile build?', name: 'MOBILE_CHOICE'
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"prebootstrap": "lerna run prepare",
|
|
28
|
-
"bootstrap": "yarn
|
|
28
|
+
"bootstrap": "yarn",
|
|
29
29
|
"postbootstrap": "yarn build",
|
|
30
30
|
"build": "yarn build:packages",
|
|
31
31
|
"build:clean": "lerna exec yarn build:clean",
|
|
@@ -61,7 +61,6 @@
|
|
|
61
61
|
"gitcommit": "git add -A && git diff --staged --quiet || git commit -am 'auto publish [skip ci] \r\n'",
|
|
62
62
|
"husky-skip": "cross-env HUSKY_SKIP_HOOKS=1",
|
|
63
63
|
"jest": "./node_modules/.bin/jest",
|
|
64
|
-
"lerna": "lerna bootstrap",
|
|
65
64
|
"prelernapublish": "git checkout $PUBLISH_BRANCH && git pull origin $PUBLISH_BRANCH && git merge -s recursive -X theirs $MASTER_BRANCH -m 'merge from master' && yarn gitcommit && node tools/update-dependency-version.mjs && yarn gitcommit",
|
|
66
65
|
"lernapublish": "lerna publish patch --ignore-scripts",
|
|
67
66
|
"postlernapublish": "yarn update-lerna-on-develop && git checkout $MASTER_BRANCH",
|
|
@@ -151,7 +150,7 @@
|
|
|
151
150
|
"@babel/register": "^7.18.9",
|
|
152
151
|
"@babel/runtime": "^7.20.1",
|
|
153
152
|
"@common-stack/env-list-loader": "6.0.8-alpha.31",
|
|
154
|
-
"@common-stack/generate-plugin": "6.0.8-alpha.
|
|
153
|
+
"@common-stack/generate-plugin": "6.0.8-alpha.42",
|
|
155
154
|
"@common-stack/rollup-vite-utils": "6.0.8-alpha.40",
|
|
156
155
|
"@emotion/babel-plugin": "^11.11.0",
|
|
157
156
|
"@graphql-codegen/add": "^5.0.2",
|
|
@@ -180,7 +179,8 @@
|
|
|
180
179
|
"@rollup/plugin-typescript": "^11.1.5",
|
|
181
180
|
"@shelf/jest-mongodb": "^4.1.3",
|
|
182
181
|
"@svgr/webpack": "^6.5.1",
|
|
183
|
-
"@testing-library/
|
|
182
|
+
"@testing-library/dom": "^10.4.0",
|
|
183
|
+
"@testing-library/react": "^16.1.0",
|
|
184
184
|
"@testing-library/react-hooks": "^8.0.1",
|
|
185
185
|
"@types/async": "^3.2.15",
|
|
186
186
|
"@types/body-parser": "1.19.2",
|
|
@@ -311,6 +311,7 @@
|
|
|
311
311
|
"redux-devtools-extension": "^2.13.9",
|
|
312
312
|
"redux-mock-store": "^1.5.4",
|
|
313
313
|
"remap-istanbul": "^0.13.0",
|
|
314
|
+
"remix-development-tools": "^4.4.1",
|
|
314
315
|
"resolve-url-loader": "^5.0.0",
|
|
315
316
|
"rimraf": "^3.0.2",
|
|
316
317
|
"rollup": "^4.13.0",
|
|
@@ -318,6 +319,7 @@
|
|
|
318
319
|
"rollup-plugin-multi-input": "^1.5.0",
|
|
319
320
|
"rollup-plugin-string": "^3.0.0",
|
|
320
321
|
"rollup-plugin-svg": "^2.0.0",
|
|
322
|
+
"rollup-plugin-visualizer": "^5.14.0",
|
|
321
323
|
"sass-loader": "^13.1.0",
|
|
322
324
|
"shelljs": "^0.8.5",
|
|
323
325
|
"simple-git": "^3.14.1",
|
|
@@ -342,10 +344,11 @@
|
|
|
342
344
|
"vite-plugin-babel-macros": "^1.0.6",
|
|
343
345
|
"vite-plugin-cjs-interop": "^2.0.6",
|
|
344
346
|
"vite-plugin-compression": "^0.5.1",
|
|
347
|
+
"vitest": "^3.0.4",
|
|
345
348
|
"wait-on": "^6.0.1",
|
|
346
349
|
"webpack": "^5.74.0",
|
|
347
350
|
"webpack-bundle-analyzer": "^4.7.0",
|
|
348
|
-
"webpack-cli": "^
|
|
351
|
+
"webpack-cli": "^5.1.4",
|
|
349
352
|
"webpack-dev-server": "^4.11.1",
|
|
350
353
|
"webpack-manifest-plugin": "^5.0.0",
|
|
351
354
|
"webpack-merge": "^5.8.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common-stack/generate-plugin",
|
|
3
|
-
"version": "6.0.8-alpha.
|
|
3
|
+
"version": "6.0.8-alpha.43",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./lib/index.mjs",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
},
|
|
26
26
|
"executors": "./executors.json",
|
|
27
27
|
"generators": "./generators.json",
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "46570a4970ffd587ba4049983159e0c4376c7f39"
|
|
29
29
|
}
|
|
@@ -13,8 +13,8 @@ import { ApolloProvider } from '@apollo/client/index.js';
|
|
|
13
13
|
import { SlotFillProvider, removeUniversalPortals } from '@common-stack/components-pro';
|
|
14
14
|
import { InversifyProvider } from '@common-stack/client-react';
|
|
15
15
|
import { Provider as ReduxProvider } from 'react-redux';
|
|
16
|
-
import { PersistGate } from 'redux-persist/integration/react';
|
|
17
|
-
import { persistStore } from 'redux-persist';
|
|
16
|
+
// import { PersistGate } from 'redux-persist/integration/react';
|
|
17
|
+
// import { persistStore } from 'redux-persist';
|
|
18
18
|
import { CacheProvider } from '@emotion/react';
|
|
19
19
|
import i18next from 'i18next';
|
|
20
20
|
import { I18nextProvider, initReactI18next } from 'react-i18next';
|
|
@@ -36,7 +36,7 @@ import { LocaleContext } from './context';
|
|
|
36
36
|
|
|
37
37
|
const { apolloClient: client, container, serviceFunc } = createClientContainer();
|
|
38
38
|
const { store } = createReduxStore(client, serviceFunc(), container);
|
|
39
|
-
const persistor = persistStore(store);
|
|
39
|
+
// const persistor = persistStore(store);
|
|
40
40
|
const antCache = createCache();
|
|
41
41
|
const cache = createEmotionCache();
|
|
42
42
|
|
|
@@ -79,13 +79,9 @@ async function hydrate() {
|
|
|
79
79
|
<ReduxProvider store={store}>
|
|
80
80
|
<SlotFillProvider>
|
|
81
81
|
<InversifyProvider container={container} modules={clientModules}>
|
|
82
|
-
<
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
<RemixBrowser />
|
|
86
|
-
</ApolloProvider>
|
|
87
|
-
)}
|
|
88
|
-
</PersistGate>
|
|
82
|
+
<ApolloProvider client={client}>
|
|
83
|
+
<RemixBrowser />
|
|
84
|
+
</ApolloProvider>
|
|
89
85
|
</InversifyProvider>
|
|
90
86
|
</SlotFillProvider>
|
|
91
87
|
</ReduxProvider>
|
|
@@ -49,6 +49,11 @@ export function Layout({ children }: { children: React.ReactNode }) {
|
|
|
49
49
|
return (
|
|
50
50
|
<>
|
|
51
51
|
<script>window.__ENV__=[__ENV__]</script>
|
|
52
|
+
<script
|
|
53
|
+
dangerouslySetInnerHTML={{
|
|
54
|
+
__html: `window.process = {} `,
|
|
55
|
+
}}
|
|
56
|
+
/>
|
|
52
57
|
<script
|
|
53
58
|
src="https://cdnjs.cloudflare.com/ajax/libs/reflect-metadata/0.1.13/Reflect.min.js"
|
|
54
59
|
integrity="sha512-jvbPH2TH5BSZumEfOJZn9IV+5bSwwN+qG4dvthYe3KCGC3/9HmxZ4phADbt9Pfcp+XSyyfc2vGZ/RMsSUZ9tbQ=="
|
|
@@ -6,8 +6,6 @@ import { ApolloProvider } from '@apollo/client/index.js';
|
|
|
6
6
|
import { SlotFillProvider, removeUniversalPortals } from '@common-stack/components-pro';
|
|
7
7
|
import { InversifyProvider, PluginArea } from '@common-stack/client-react';
|
|
8
8
|
import { Provider as ReduxProvider } from 'react-redux';
|
|
9
|
-
import { PersistGate } from 'redux-persist/integration/react';
|
|
10
|
-
import { persistStore } from 'redux-persist';
|
|
11
9
|
import { CacheProvider } from '@emotion/react';
|
|
12
10
|
|
|
13
11
|
// @ts-ignore
|
|
@@ -31,7 +29,6 @@ import { ClientStyleContext, LocaleContext } from './context';
|
|
|
31
29
|
|
|
32
30
|
const { apolloClient: client, container, serviceFunc } = createClientContainer();
|
|
33
31
|
const { store } = createReduxStore(client, serviceFunc(), container);
|
|
34
|
-
const persistor = persistStore(store);
|
|
35
32
|
|
|
36
33
|
(window as any).__remixStore = store;
|
|
37
34
|
removeUniversalPortals((window as any).__SLOT_FILLS__ || []);
|
|
@@ -95,9 +92,7 @@ async function hydrate() {
|
|
|
95
92
|
<ReduxProvider store={store}>
|
|
96
93
|
<SlotFillProvider>
|
|
97
94
|
<InversifyProvider container={container} modules={clientModules}>
|
|
98
|
-
<
|
|
99
|
-
{() => <RemixBrowser />}
|
|
100
|
-
</PersistGate>
|
|
95
|
+
<RemixBrowser />
|
|
101
96
|
</InversifyProvider>
|
|
102
97
|
</SlotFillProvider>
|
|
103
98
|
</ReduxProvider>
|
|
@@ -12,8 +12,6 @@ import { ApolloProvider } from '@apollo/client/index.js';
|
|
|
12
12
|
import { SlotFillProvider, removeUniversalPortals } from '@common-stack/components-pro';
|
|
13
13
|
import { InversifyProvider } from '@common-stack/client-react';
|
|
14
14
|
import { Provider as ReduxProvider } from 'react-redux';
|
|
15
|
-
import { PersistGate } from 'redux-persist/integration/react';
|
|
16
|
-
import { persistStore } from 'redux-persist';
|
|
17
15
|
import i18next from 'i18next';
|
|
18
16
|
import { I18nextProvider, initReactI18next } from 'react-i18next';
|
|
19
17
|
import LanguageDetector from 'i18next-browser-languagedetector';
|
|
@@ -31,7 +29,6 @@ import config from '@app/cde-webconfig.json';
|
|
|
31
29
|
|
|
32
30
|
const { apolloClient: client, container, serviceFunc } = createClientContainer();
|
|
33
31
|
const { store } = createReduxStore(client, serviceFunc(), container);
|
|
34
|
-
const persistor = persistStore(store);
|
|
35
32
|
|
|
36
33
|
(window as any).__remixStore = store;
|
|
37
34
|
removeUniversalPortals((window as any).__SLOT_FILLS__ || []);
|
|
@@ -64,13 +61,9 @@ async function hydrate() {
|
|
|
64
61
|
<ReduxProvider store={store}>
|
|
65
62
|
<SlotFillProvider>
|
|
66
63
|
<InversifyProvider container={container} modules={clientModules}>
|
|
67
|
-
<
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
<RemixBrowser />
|
|
71
|
-
</ApolloProvider>
|
|
72
|
-
)}
|
|
73
|
-
</PersistGate>
|
|
64
|
+
<ApolloProvider client={client}>
|
|
65
|
+
<RemixBrowser />
|
|
66
|
+
</ApolloProvider>
|
|
74
67
|
</InversifyProvider>
|
|
75
68
|
</SlotFillProvider>
|
|
76
69
|
</ReduxProvider>
|
|
@@ -29,7 +29,7 @@ pipeline {
|
|
|
29
29
|
// by default first value of the choice will be choosen
|
|
30
30
|
choice choices: ['auto', 'force'], description: 'Choose merge strategy', name: 'NPM_PUBLISH_STRATEGY'
|
|
31
31
|
choice choices: ['yarn', 'npm'], description: 'Choose build strategy', name: 'BUILD_STRATEGY'
|
|
32
|
-
choice choices: ['0.7.
|
|
32
|
+
choice choices: ['0.7.12','0.7.11', '0.6.0'], description: 'Choose Idestack chart version', name: 'IDESTACK_CHART_VERSION'
|
|
33
33
|
choice choices: ['nodejs20', 'nodejs18', 'nodejs22'], description: 'Choose NodeJS version', name: 'NODEJS_TOOL_VERSION'
|
|
34
34
|
choice choices: ['buildOnly', 'buildAndTest', 'buildAndPublish', 'mobileBuild', 'mobilePreview', 'mobilePreviewLocal', 'mobilePreviewSubmit', 'mobileProd', 'mobileProdSubmit', 'devDeployOnly', 'stageDeploy', 'stageDeployOnly', 'prodDeploy', 'prodDeployOnly', 'allenv'], description: 'Where to deploy micro services?', name: 'ENV_CHOICE'
|
|
35
35
|
choice choices: ['all', 'ios', 'android' ], description: 'Mobile type if it is mobile build?', name: 'MOBILE_CHOICE'
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"prebootstrap": "lerna run prepare",
|
|
28
|
-
"bootstrap": "yarn
|
|
28
|
+
"bootstrap": "yarn",
|
|
29
29
|
"postbootstrap": "yarn build",
|
|
30
30
|
"build": "yarn build:packages",
|
|
31
31
|
"build:clean": "lerna exec yarn build:clean",
|
|
@@ -61,7 +61,6 @@
|
|
|
61
61
|
"gitcommit": "git add -A && git diff --staged --quiet || git commit -am 'auto publish [skip ci] \r\n'",
|
|
62
62
|
"husky-skip": "cross-env HUSKY_SKIP_HOOKS=1",
|
|
63
63
|
"jest": "./node_modules/.bin/jest",
|
|
64
|
-
"lerna": "lerna bootstrap",
|
|
65
64
|
"prelernapublish": "git checkout $PUBLISH_BRANCH && git pull origin $PUBLISH_BRANCH && git merge -s recursive -X theirs $MASTER_BRANCH -m 'merge from master' && yarn gitcommit && node tools/update-dependency-version.mjs && yarn gitcommit",
|
|
66
65
|
"lernapublish": "lerna publish patch --ignore-scripts",
|
|
67
66
|
"postlernapublish": "yarn update-lerna-on-develop && git checkout $MASTER_BRANCH",
|
|
@@ -151,7 +150,7 @@
|
|
|
151
150
|
"@babel/register": "^7.18.9",
|
|
152
151
|
"@babel/runtime": "^7.20.1",
|
|
153
152
|
"@common-stack/env-list-loader": "6.0.8-alpha.31",
|
|
154
|
-
"@common-stack/generate-plugin": "6.0.8-alpha.
|
|
153
|
+
"@common-stack/generate-plugin": "6.0.8-alpha.42",
|
|
155
154
|
"@common-stack/rollup-vite-utils": "6.0.8-alpha.40",
|
|
156
155
|
"@emotion/babel-plugin": "^11.11.0",
|
|
157
156
|
"@graphql-codegen/add": "^5.0.2",
|
|
@@ -180,7 +179,8 @@
|
|
|
180
179
|
"@rollup/plugin-typescript": "^11.1.5",
|
|
181
180
|
"@shelf/jest-mongodb": "^4.1.3",
|
|
182
181
|
"@svgr/webpack": "^6.5.1",
|
|
183
|
-
"@testing-library/
|
|
182
|
+
"@testing-library/dom": "^10.4.0",
|
|
183
|
+
"@testing-library/react": "^16.1.0",
|
|
184
184
|
"@testing-library/react-hooks": "^8.0.1",
|
|
185
185
|
"@types/async": "^3.2.15",
|
|
186
186
|
"@types/body-parser": "1.19.2",
|
|
@@ -311,6 +311,7 @@
|
|
|
311
311
|
"redux-devtools-extension": "^2.13.9",
|
|
312
312
|
"redux-mock-store": "^1.5.4",
|
|
313
313
|
"remap-istanbul": "^0.13.0",
|
|
314
|
+
"remix-development-tools": "^4.4.1",
|
|
314
315
|
"resolve-url-loader": "^5.0.0",
|
|
315
316
|
"rimraf": "^3.0.2",
|
|
316
317
|
"rollup": "^4.13.0",
|
|
@@ -318,6 +319,7 @@
|
|
|
318
319
|
"rollup-plugin-multi-input": "^1.5.0",
|
|
319
320
|
"rollup-plugin-string": "^3.0.0",
|
|
320
321
|
"rollup-plugin-svg": "^2.0.0",
|
|
322
|
+
"rollup-plugin-visualizer": "^5.14.0",
|
|
321
323
|
"sass-loader": "^13.1.0",
|
|
322
324
|
"shelljs": "^0.8.5",
|
|
323
325
|
"simple-git": "^3.14.1",
|
|
@@ -342,10 +344,11 @@
|
|
|
342
344
|
"vite-plugin-babel-macros": "^1.0.6",
|
|
343
345
|
"vite-plugin-cjs-interop": "^2.0.6",
|
|
344
346
|
"vite-plugin-compression": "^0.5.1",
|
|
347
|
+
"vitest": "^3.0.4",
|
|
345
348
|
"wait-on": "^6.0.1",
|
|
346
349
|
"webpack": "^5.74.0",
|
|
347
350
|
"webpack-bundle-analyzer": "^4.7.0",
|
|
348
|
-
"webpack-cli": "^
|
|
351
|
+
"webpack-cli": "^5.1.4",
|
|
349
352
|
"webpack-dev-server": "^4.11.1",
|
|
350
353
|
"webpack-manifest-plugin": "^5.0.0",
|
|
351
354
|
"webpack-merge": "^5.8.0",
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
overwrite: true
|
|
2
|
-
schema: "./servers/backend-server/generated-schema.graphql"
|
|
3
|
-
generates:
|
|
4
|
-
typings/graphql.d.ts:
|
|
5
|
-
schema:
|
|
6
|
-
- "packages-modules/counter/browser/src/apollo-server-n-client/**/*.graphql"
|
|
7
|
-
- packages-modules/counter/server/src/schema/**/*.graphql
|
|
8
|
-
documents: "packages-modules/counter/browser/src/**/*.gql"
|
|
9
|
-
plugins:
|
|
10
|
-
- typescript-graphql-files-modules
|
|
11
|
-
packages-modules/counter/browser/src/generated-models.ts:
|
|
12
|
-
schema:
|
|
13
|
-
- "packages-modules/counter/browser/src/apollo-server-n-client/**/*.graphql"
|
|
14
|
-
- packages-modules/counter/server/src/schema/**/*.graphql
|
|
15
|
-
documents: "packages-modules/counter/browser/src/**/*.gql"
|
|
16
|
-
config:
|
|
17
|
-
noNamespaces: true
|
|
18
|
-
withMutationFn: false
|
|
19
|
-
withHOC: false
|
|
20
|
-
withComponent: false
|
|
21
|
-
noGraphQLTag: true
|
|
22
|
-
plugins:
|
|
23
|
-
- add:
|
|
24
|
-
content: /* tslint:disable */
|
|
25
|
-
- typescript
|
|
26
|
-
- typescript-operations
|
|
27
|
-
- typescript-resolvers
|
|
28
|
-
- typescript-react-apollo
|
|
29
|
-
packages-modules/counter/browser/src/apollo-server-n-client/generated-model.tsx:
|
|
30
|
-
schema:
|
|
31
|
-
- "packages-modules/counter/browser/src/apollo-server-n-client/**/*.graphql"
|
|
32
|
-
- packages-modules/counter/server/src/schema/**/*.graphql
|
|
33
|
-
documents: "packages-modules/counter/browser/src/**/*.gql"
|
|
34
|
-
config:
|
|
35
|
-
withMutationFn: false
|
|
36
|
-
withHOC: false
|
|
37
|
-
withComponent: false
|
|
38
|
-
withHooks: true
|
|
39
|
-
noGraphQLTag: true
|
|
40
|
-
preset: import-types-preset
|
|
41
|
-
presetConfig:
|
|
42
|
-
typesPath: "../generated-models"
|
|
43
|
-
importTypesNamespace: SchemaTypes
|
|
44
|
-
plugins:
|
|
45
|
-
- add:
|
|
46
|
-
content: /* tslint:disable */
|
|
47
|
-
- typescript-react-apollo
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
overwrite: true
|
|
2
|
-
schema: "./servers/backend-server/generated-schema.graphql"
|
|
3
|
-
generates:
|
|
4
|
-
typings/graphql.d.ts:
|
|
5
|
-
schema:
|
|
6
|
-
- "packages-modules/counter/browser/src/apollo-server-n-client/**/*.graphql"
|
|
7
|
-
- packages-modules/counter/server/src/schema/**/*.graphql
|
|
8
|
-
documents: "packages-modules/counter/browser/src/**/*.gql"
|
|
9
|
-
plugins:
|
|
10
|
-
- typescript-graphql-files-modules
|
|
11
|
-
packages-modules/counter/browser/src/generated-models.ts:
|
|
12
|
-
schema:
|
|
13
|
-
- "packages-modules/counter/browser/src/apollo-server-n-client/**/*.graphql"
|
|
14
|
-
- packages-modules/counter/server/src/schema/**/*.graphql
|
|
15
|
-
documents: "packages-modules/counter/browser/src/**/*.gql"
|
|
16
|
-
config:
|
|
17
|
-
noNamespaces: true
|
|
18
|
-
withMutationFn: false
|
|
19
|
-
withHOC: false
|
|
20
|
-
withComponent: false
|
|
21
|
-
noGraphQLTag: true
|
|
22
|
-
plugins:
|
|
23
|
-
- add:
|
|
24
|
-
content: /* tslint:disable */
|
|
25
|
-
- typescript
|
|
26
|
-
- typescript-operations
|
|
27
|
-
- typescript-resolvers
|
|
28
|
-
- typescript-react-apollo
|
|
29
|
-
packages-modules/counter/browser/src/apollo-server-n-client/generated-model.tsx:
|
|
30
|
-
schema:
|
|
31
|
-
- "packages-modules/counter/browser/src/apollo-server-n-client/**/*.graphql"
|
|
32
|
-
- packages-modules/counter/server/src/schema/**/*.graphql
|
|
33
|
-
documents: "packages-modules/counter/browser/src/**/*.gql"
|
|
34
|
-
config:
|
|
35
|
-
withMutationFn: false
|
|
36
|
-
withHOC: false
|
|
37
|
-
withComponent: false
|
|
38
|
-
withHooks: true
|
|
39
|
-
noGraphQLTag: true
|
|
40
|
-
preset: import-types-preset
|
|
41
|
-
presetConfig:
|
|
42
|
-
typesPath: "../generated-models"
|
|
43
|
-
importTypesNamespace: SchemaTypes
|
|
44
|
-
plugins:
|
|
45
|
-
- add:
|
|
46
|
-
content: /* tslint:disable */
|
|
47
|
-
- typescript-react-apollo
|