@common-stack/generate-plugin 6.0.6-alpha.12 → 6.0.6-alpha.14
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/root.tsx.template +4 -2
- package/lib/generators/add-frontend/frameworks/chakraui/root.tsx.template +2 -2
- package/lib/generators/add-frontend/templates/package.json +1 -1
- package/lib/generators/add-fullstack/files/Jenkinsfile +5 -5
- package/lib/generators/add-fullstack/files/package.json +8 -5
- package/package.json +3 -3
- package/src/generators/add-frontend/frameworks/antui/root.tsx.template +4 -2
- package/src/generators/add-frontend/frameworks/chakraui/root.tsx.template +2 -2
- package/src/generators/add-fullstack/files/Jenkinsfile +5 -5
- package/src/generators/add-fullstack/files/package.json +9 -6
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.6-alpha.14](https://github.com/cdmbase/common-stack/compare/v6.0.6-alpha.13...v6.0.6-alpha.14) (2024-09-08)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @common-stack/generate-plugin
|
|
9
|
+
|
|
10
|
+
## [6.0.6-alpha.13](https://github.com/cdmbase/common-stack/compare/v6.0.6-alpha.12...v6.0.6-alpha.13) (2024-09-08)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @common-stack/generate-plugin
|
|
13
|
+
|
|
6
14
|
## [6.0.6-alpha.12](https://github.com/cdmbase/common-stack/compare/v6.0.6-alpha.11...v6.0.6-alpha.12) (2024-09-07)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @common-stack/generate-plugin
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'reflect-metadata';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { Links, Meta, Outlet, Scripts, ScrollRestoration,
|
|
3
|
+
import { Links, Meta, Outlet, Scripts, ScrollRestoration, useRouteLoaderData, useRouteError, json } from '@remix-run/react';
|
|
4
4
|
// @ts-ignore
|
|
5
5
|
import publicEnv from '@src/config/public-config';
|
|
6
6
|
import { PluginArea } from '@common-stack/client-react';
|
|
@@ -34,7 +34,9 @@ export function shouldRevalidate(params: any) {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
export function Layout({ children }: { children: React.ReactNode }) {
|
|
37
|
-
|
|
37
|
+
// useLoaderData is for happy paths with Error boundary it will fail
|
|
38
|
+
// https://github.com/remix-run/remix/issues/8951#issuecomment-1973321870
|
|
39
|
+
const data = useRouteLoaderData<{ locale: any }>('root');
|
|
38
40
|
const locale = data?.locale;
|
|
39
41
|
|
|
40
42
|
const { i18n } = useTranslation();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
|
-
import { Links, Meta, Outlet, Scripts, ScrollRestoration,
|
|
4
|
+
import { Links, Meta, Outlet, Scripts, ScrollRestoration, useRouteLoaderData } from '@remix-run/react';
|
|
5
5
|
import { json } from '@remix-run/node';
|
|
6
6
|
import { PluginArea } from '@common-stack/client-react';
|
|
7
7
|
import { subscribeReduxRouter } from '@common-stack/remix-router-redux';
|
|
@@ -79,7 +79,7 @@ export function shouldRevalidate(params: any) {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
export default function App() {
|
|
82
|
-
// const { locale } =
|
|
82
|
+
// const { locale } = useRouteLoaderData();
|
|
83
83
|
const locale = 'en';
|
|
84
84
|
useChangeLanguage(locale);
|
|
85
85
|
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@cdmbase/vite-plugin-i18next-loader": "^2.0.12",
|
|
83
83
|
"@common-stack/frontend-stack-react": "6.0.6-alpha.6",
|
|
84
|
-
"@common-stack/rollup-vite-utils": "6.0.6-alpha.
|
|
84
|
+
"@common-stack/rollup-vite-utils": "6.0.6-alpha.13",
|
|
85
85
|
"@remix-run/dev": "^2.8.1",
|
|
86
86
|
"@remix-run/serve": "^2.8.1",
|
|
87
87
|
"cross-env": "^7.0.3",
|
|
@@ -13,23 +13,23 @@ pipeline {
|
|
|
13
13
|
string(name: 'CONNECTION_ID', defaultValue: 'test', description: 'connection id', trim: true)
|
|
14
14
|
string(name: 'WORKSPACE_ID', defaultValue: 'fullstack-pro', description: 'workspace id', trim: true)
|
|
15
15
|
string(name: 'UNIQUE_NAME', defaultValue: 'default', description: 'chart name', trim: true)
|
|
16
|
-
string(name: 'VERSION', defaultValue: '
|
|
16
|
+
string(name: 'VERSION', defaultValue: 'v1', description: 'version of the deployment', trim: true)
|
|
17
17
|
string(name: 'HEMERA_LOG_LEVEL', defaultValue: 'info', description: 'log level for hemera')
|
|
18
18
|
string(name: 'LOG_LEVEL', defaultValue: 'info', description: 'log level')
|
|
19
19
|
string(name: 'DEPLOYMENT_PATH', defaultValue: '/servers', description: 'folder path to load helm charts')
|
|
20
|
-
string(name: 'PUBLISH_BRANCH', defaultValue: '
|
|
20
|
+
string(name: 'PUBLISH_BRANCH', defaultValue: 'devpublish', description: 'the publish branch for packages release')
|
|
21
21
|
string(name: 'EXCLUDE_SETTING_NAMESPACE_FILTER', defaultValue: 'brigade', description: 'exclude setting namespace that matches search string')
|
|
22
22
|
string(name: 'GIT_CREDENTIAL_ID', defaultValue: 'fullstack-pro-github-deploy-key', description: 'jenkins credential id of git deploy secret')
|
|
23
23
|
string(name: 'BUILD_MODULE_TO_INCLUDE', defaultValue: '@sample-stack*', description: 'build env')
|
|
24
24
|
string(name: 'REPOSITORY_SSH_URL', defaultValue: 'git@github.com:CDEBase/fullstack-pro.git', description: 'ssh url of the git repository')
|
|
25
|
-
string(name: 'REPOSITORY_BRANCH', defaultValue: '
|
|
26
|
-
string(name: 'DEVELOP_BRANCH', defaultValue: '
|
|
25
|
+
string(name: 'REPOSITORY_BRANCH', defaultValue: 'develop', description: 'the branch with changes')
|
|
26
|
+
string(name: 'DEVELOP_BRANCH', defaultValue: 'develop', description: 'the branch for the development')
|
|
27
27
|
string(name: 'MASTER_BRANCH', defaultValue: 'master', description: 'Master branch as default branch for production.')
|
|
28
28
|
|
|
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.11','0.7.9', '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'
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"@babel/register": "^7.18.9",
|
|
148
148
|
"@babel/runtime": "^7.20.1",
|
|
149
149
|
"@common-stack/env-list-loader": "6.0.6-alpha.5",
|
|
150
|
-
"@common-stack/generate-plugin": "6.0.6-alpha.
|
|
150
|
+
"@common-stack/generate-plugin": "6.0.6-alpha.13",
|
|
151
151
|
"@emotion/babel-plugin": "^11.11.0",
|
|
152
152
|
"@graphql-codegen/add": "^5.0.2",
|
|
153
153
|
"@graphql-codegen/cli": "^5.0.2",
|
|
@@ -166,12 +166,13 @@
|
|
|
166
166
|
"@redux-devtools/core": "^3.13.1",
|
|
167
167
|
"@redux-devtools/dock-monitor": "^3.0.1",
|
|
168
168
|
"@redux-devtools/log-monitor": "^4.0.1",
|
|
169
|
-
"@
|
|
170
|
-
"@
|
|
169
|
+
"@rollup/plugin-alias": "^5.1.0",
|
|
170
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
171
171
|
"@rollup/plugin-graphql": "2.0.2",
|
|
172
172
|
"@rollup/plugin-image": "^3.0.1",
|
|
173
173
|
"@rollup/plugin-json": "^6.1.0",
|
|
174
|
-
"@rollup/plugin-
|
|
174
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
175
|
+
"@rollup/plugin-typescript": "^11.1.5",
|
|
175
176
|
"@shelf/jest-mongodb": "^4.1.3",
|
|
176
177
|
"@svgr/webpack": "^6.5.1",
|
|
177
178
|
"@testing-library/react": "^16.4.0",
|
|
@@ -205,6 +206,7 @@
|
|
|
205
206
|
"@typescript-eslint/parser": "^6.7.4",
|
|
206
207
|
"@web/rollup-plugin-copy": "^0.5.1",
|
|
207
208
|
"@webpack-cli/serve": "^1.7.0",
|
|
209
|
+
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
|
|
208
210
|
"autoprefixer": "^10.4.13",
|
|
209
211
|
"babel-core": "^7.0.0-bridge.0",
|
|
210
212
|
"babel-eslint": "^10.1.0",
|
|
@@ -266,6 +268,7 @@
|
|
|
266
268
|
"jest-dom": "^4.0.0",
|
|
267
269
|
"jest-junit": "^14.0.1",
|
|
268
270
|
"jest-matcher-utils": "^29.2.2",
|
|
271
|
+
"jest-raw-loader": "^1.0.1",
|
|
269
272
|
"jest-transform-graphql": "^2.1.0",
|
|
270
273
|
"jsdom": "^20.0.2",
|
|
271
274
|
"lerna": "8",
|
|
@@ -326,7 +329,7 @@
|
|
|
326
329
|
"ts-node": "^10.9.1",
|
|
327
330
|
"tslib": "^2.4.1",
|
|
328
331
|
"typedoc": "^0.23.20",
|
|
329
|
-
"typescript": "^5.
|
|
332
|
+
"typescript": "^5.5.4",
|
|
330
333
|
"url-loader": "^4.1.1",
|
|
331
334
|
"wait-on": "^6.0.1",
|
|
332
335
|
"webpack": "^5.74.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@common-stack/generate-plugin",
|
|
3
|
-
"version": "6.0.6-alpha.
|
|
3
|
+
"version": "6.0.6-alpha.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./lib/index.mjs",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"watch": "yarn build:lib:watch"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@common-stack/rollup-vite-utils": "6.0.6-alpha.
|
|
20
|
+
"@common-stack/rollup-vite-utils": "6.0.6-alpha.13",
|
|
21
21
|
"tslib": "^2.3.0"
|
|
22
22
|
},
|
|
23
23
|
"publishConfig": {
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
},
|
|
26
26
|
"executors": "./executors.json",
|
|
27
27
|
"generators": "./generators.json",
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "b7a8d208e75dd7032e00cbdcc669c10699c4d629"
|
|
29
29
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import 'reflect-metadata';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { Links, Meta, Outlet, Scripts, ScrollRestoration,
|
|
3
|
+
import { Links, Meta, Outlet, Scripts, ScrollRestoration, useRouteLoaderData, useRouteError, json } from '@remix-run/react';
|
|
4
4
|
// @ts-ignore
|
|
5
5
|
import publicEnv from '@src/config/public-config';
|
|
6
6
|
import { PluginArea } from '@common-stack/client-react';
|
|
@@ -34,7 +34,9 @@ export function shouldRevalidate(params: any) {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
export function Layout({ children }: { children: React.ReactNode }) {
|
|
37
|
-
|
|
37
|
+
// useLoaderData is for happy paths with Error boundary it will fail
|
|
38
|
+
// https://github.com/remix-run/remix/issues/8951#issuecomment-1973321870
|
|
39
|
+
const data = useRouteLoaderData<{ locale: any }>('root');
|
|
38
40
|
const locale = data?.locale;
|
|
39
41
|
|
|
40
42
|
const { i18n } = useTranslation();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
|
|
4
|
-
import { Links, Meta, Outlet, Scripts, ScrollRestoration,
|
|
4
|
+
import { Links, Meta, Outlet, Scripts, ScrollRestoration, useRouteLoaderData } from '@remix-run/react';
|
|
5
5
|
import { json } from '@remix-run/node';
|
|
6
6
|
import { PluginArea } from '@common-stack/client-react';
|
|
7
7
|
import { subscribeReduxRouter } from '@common-stack/remix-router-redux';
|
|
@@ -79,7 +79,7 @@ export function shouldRevalidate(params: any) {
|
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
export default function App() {
|
|
82
|
-
// const { locale } =
|
|
82
|
+
// const { locale } = useRouteLoaderData();
|
|
83
83
|
const locale = 'en';
|
|
84
84
|
useChangeLanguage(locale);
|
|
85
85
|
|
|
@@ -13,23 +13,23 @@ pipeline {
|
|
|
13
13
|
string(name: 'CONNECTION_ID', defaultValue: 'test', description: 'connection id', trim: true)
|
|
14
14
|
string(name: 'WORKSPACE_ID', defaultValue: 'fullstack-pro', description: 'workspace id', trim: true)
|
|
15
15
|
string(name: 'UNIQUE_NAME', defaultValue: 'default', description: 'chart name', trim: true)
|
|
16
|
-
string(name: 'VERSION', defaultValue: '
|
|
16
|
+
string(name: 'VERSION', defaultValue: 'v1', description: 'version of the deployment', trim: true)
|
|
17
17
|
string(name: 'HEMERA_LOG_LEVEL', defaultValue: 'info', description: 'log level for hemera')
|
|
18
18
|
string(name: 'LOG_LEVEL', defaultValue: 'info', description: 'log level')
|
|
19
19
|
string(name: 'DEPLOYMENT_PATH', defaultValue: '/servers', description: 'folder path to load helm charts')
|
|
20
|
-
string(name: 'PUBLISH_BRANCH', defaultValue: '
|
|
20
|
+
string(name: 'PUBLISH_BRANCH', defaultValue: 'devpublish', description: 'the publish branch for packages release')
|
|
21
21
|
string(name: 'EXCLUDE_SETTING_NAMESPACE_FILTER', defaultValue: 'brigade', description: 'exclude setting namespace that matches search string')
|
|
22
22
|
string(name: 'GIT_CREDENTIAL_ID', defaultValue: 'fullstack-pro-github-deploy-key', description: 'jenkins credential id of git deploy secret')
|
|
23
23
|
string(name: 'BUILD_MODULE_TO_INCLUDE', defaultValue: '@sample-stack*', description: 'build env')
|
|
24
24
|
string(name: 'REPOSITORY_SSH_URL', defaultValue: 'git@github.com:CDEBase/fullstack-pro.git', description: 'ssh url of the git repository')
|
|
25
|
-
string(name: 'REPOSITORY_BRANCH', defaultValue: '
|
|
26
|
-
string(name: 'DEVELOP_BRANCH', defaultValue: '
|
|
25
|
+
string(name: 'REPOSITORY_BRANCH', defaultValue: 'develop', description: 'the branch with changes')
|
|
26
|
+
string(name: 'DEVELOP_BRANCH', defaultValue: 'develop', description: 'the branch for the development')
|
|
27
27
|
string(name: 'MASTER_BRANCH', defaultValue: 'master', description: 'Master branch as default branch for production.')
|
|
28
28
|
|
|
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.11','0.7.9', '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'
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
"@babel/register": "^7.18.9",
|
|
148
148
|
"@babel/runtime": "^7.20.1",
|
|
149
149
|
"@common-stack/env-list-loader": "6.0.6-alpha.5",
|
|
150
|
-
"@common-stack/generate-plugin": "6.0.6-alpha.
|
|
150
|
+
"@common-stack/generate-plugin": "6.0.6-alpha.13",
|
|
151
151
|
"@emotion/babel-plugin": "^11.11.0",
|
|
152
152
|
"@graphql-codegen/add": "^5.0.2",
|
|
153
153
|
"@graphql-codegen/cli": "^5.0.2",
|
|
@@ -166,15 +166,16 @@
|
|
|
166
166
|
"@redux-devtools/core": "^3.13.1",
|
|
167
167
|
"@redux-devtools/dock-monitor": "^3.0.1",
|
|
168
168
|
"@redux-devtools/log-monitor": "^4.0.1",
|
|
169
|
-
"@
|
|
170
|
-
"@
|
|
169
|
+
"@rollup/plugin-alias": "^5.1.0",
|
|
170
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
171
171
|
"@rollup/plugin-graphql": "2.0.2",
|
|
172
172
|
"@rollup/plugin-image": "^3.0.1",
|
|
173
173
|
"@rollup/plugin-json": "^6.1.0",
|
|
174
|
-
"@rollup/plugin-
|
|
174
|
+
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
175
|
+
"@rollup/plugin-typescript": "^11.1.5",
|
|
175
176
|
"@shelf/jest-mongodb": "^4.1.3",
|
|
176
177
|
"@svgr/webpack": "^6.5.1",
|
|
177
|
-
"@testing-library/react": "^16.
|
|
178
|
+
"@testing-library/react": "^16.0.1",
|
|
178
179
|
"@testing-library/react-hooks": "^8.0.1",
|
|
179
180
|
"@types/async": "^3.2.15",
|
|
180
181
|
"@types/body-parser": "1.19.2",
|
|
@@ -205,6 +206,7 @@
|
|
|
205
206
|
"@typescript-eslint/parser": "^6.7.4",
|
|
206
207
|
"@web/rollup-plugin-copy": "^0.5.1",
|
|
207
208
|
"@webpack-cli/serve": "^1.7.0",
|
|
209
|
+
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
|
|
208
210
|
"autoprefixer": "^10.4.13",
|
|
209
211
|
"babel-core": "^7.0.0-bridge.0",
|
|
210
212
|
"babel-eslint": "^10.1.0",
|
|
@@ -266,6 +268,7 @@
|
|
|
266
268
|
"jest-dom": "^4.0.0",
|
|
267
269
|
"jest-junit": "^14.0.1",
|
|
268
270
|
"jest-matcher-utils": "^29.2.2",
|
|
271
|
+
"jest-raw-loader": "^1.0.1",
|
|
269
272
|
"jest-transform-graphql": "^2.1.0",
|
|
270
273
|
"jsdom": "^20.0.2",
|
|
271
274
|
"lerna": "8",
|
|
@@ -326,7 +329,7 @@
|
|
|
326
329
|
"ts-node": "^10.9.1",
|
|
327
330
|
"tslib": "^2.4.1",
|
|
328
331
|
"typedoc": "^0.23.20",
|
|
329
|
-
"typescript": "^5.
|
|
332
|
+
"typescript": "^5.5.4",
|
|
330
333
|
"url-loader": "^4.1.1",
|
|
331
334
|
"wait-on": "^6.0.1",
|
|
332
335
|
"webpack": "^5.74.0",
|