@common-stack/generate-plugin 6.0.8-alpha.41 → 6.0.8-alpha.42
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 +4 -0
- package/lib/generators/add-frontend/frameworks/antui/root.tsx.template +5 -0
- package/lib/generators/add-fullstack/files/package.json +8 -5
- package/package.json +2 -2
- package/src/generators/add-frontend/frameworks/antui/root.tsx.template +5 -0
- 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,10 @@
|
|
|
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.42](https://github.com/cdmbase/common-stack/compare/v6.0.8-alpha.41...v6.0.8-alpha.42) (2025-02-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @common-stack/generate-plugin
|
|
9
|
+
|
|
6
10
|
## [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
11
|
|
|
8
12
|
**Note:** Version bump only for package @common-stack/generate-plugin
|
|
@@ -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=="
|
|
@@ -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.41",
|
|
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.42",
|
|
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": "9ca67cea67c8e448c56b7b0eb2b200655e1941be"
|
|
29
29
|
}
|
|
@@ -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=="
|
|
@@ -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.41",
|
|
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
|