@common-stack/generate-plugin 6.0.6-alpha.0 → 6.0.6-alpha.1

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 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.6-alpha.1](https://github.com/cdmbase/common-stack/compare/v6.0.6-alpha.0...v6.0.6-alpha.1) (2024-08-26)
7
+
8
+ **Note:** Version bump only for package @common-stack/generate-plugin
9
+
6
10
  ## [6.0.6-alpha.0](https://github.com/cdmbase/common-stack/compare/v5.0.6-alpha.8...v6.0.6-alpha.0) (2024-08-26)
7
11
 
8
12
  **Note:** Version bump only for package @common-stack/generate-plugin
@@ -63,7 +63,7 @@
63
63
  "dependencies": {
64
64
  "@apollo/client": "^3.9.0",
65
65
  "@babel/runtime": "^7.20.1",
66
- "@common-stack/server-stack": "6.0.1-alpha.0",
66
+ "@common-stack/server-stack": "6.0.6-alpha.0",
67
67
  "@remix-run/node": "^2.8.1",
68
68
  "lodash": "^4.17.15",
69
69
  "react": "18.2.0",
@@ -29,7 +29,7 @@
29
29
  },
30
30
  "peerDependencies": {
31
31
  "@cdm-logger/client": "*",
32
- "@common-stack/client-react": "6.0.1-alpha.0",
32
+ "@common-stack/client-react": "6.0.6-alpha.0",
33
33
  "@remix-run/react": "*",
34
34
  "antd": ">=5.1.6",
35
35
  "lodash": "*",
@@ -81,8 +81,8 @@
81
81
  },
82
82
  "devDependencies": {
83
83
  "@cdmbase/vite-plugin-i18next-loader": "^2.0.12",
84
- "@common-stack/frontend-stack-react": "6.0.1-alpha.0",
85
- "@common-stack/rollup-vite-utils": "6.0.1-alpha.0",
84
+ "@common-stack/frontend-stack-react": "6.0.6-alpha.0",
85
+ "@common-stack/rollup-vite-utils": "6.0.6-alpha.0",
86
86
  "@remix-run/dev": "^2.8.1",
87
87
  "@remix-run/serve": "^2.8.1",
88
88
  "cross-env": "^7.0.3",
@@ -2,6 +2,4 @@ module.exports = {
2
2
  '*.{js,jsx,ts,tsx,json,md}': ['prettier --write', 'git add'],
3
3
  // '*.{ts,tsx}': ['eslint --fix'], // this can be tested
4
4
  'package.json': ['sort-package-json', 'prettier --write'],
5
- '*/**/package.json': ['sort-package-json', 'prettier --write'],
6
- '**/**/*/package.json': ['sort-package-json', 'prettier --write'],
7
5
  };
@@ -146,7 +146,7 @@
146
146
  "@babel/register": "^7.18.9",
147
147
  "@babel/runtime": "^7.20.1",
148
148
  "@common-stack/env-list-loader": "5.0.6-alpha.3",
149
- "@common-stack/generate-plugin": "6.0.1-alpha.0",
149
+ "@common-stack/generate-plugin": "6.0.6-alpha.0",
150
150
  "@emotion/babel-plugin": "^11.11.0",
151
151
  "@graphql-codegen/add": "^5.0.2",
152
152
  "@graphql-codegen/cli": "^5.0.2",
@@ -160,8 +160,8 @@
160
160
  "@graphql-codegen/typescript-resolvers": "^4.0.6",
161
161
  "@loadable/babel-plugin": "^5.13.2",
162
162
  "@loadable/webpack-plugin": "^5.15.2",
163
- "@open-wc/building-rollup": "^2.0.2",
164
- "@pmmmwh/react-refresh-webpack-plugin": "^0.5.8",
163
+ "@nx-aws-plugin/nx-aws-cache": "^3.2.2",
164
+ "@nx/workspace": "^19.5.1",
165
165
  "@redux-devtools/core": "^3.13.1",
166
166
  "@redux-devtools/dock-monitor": "^3.0.1",
167
167
  "@redux-devtools/log-monitor": "^4.0.1",
@@ -7,8 +7,12 @@ import { copy } from '@web/rollup-plugin-copy';
7
7
  import modifyLibFilesPlugin from '@common-stack/rollup-vite-utils/lib/rollup/rollupPluginModifyLibFiles.js';
8
8
  import generateJsonFromObject from '@common-stack/rollup-vite-utils/lib/rollup/rollupPluginGenerateJson.js';
9
9
  import addJsExtensionToImportsPlugin from '@common-stack/rollup-vite-utils/lib/rollup/rollupPluginAddJsExtension.js';
10
- // Define any additional plugins specific to this bundle
11
- const additionalPlugins = [copy({ patterns: '**/cdm-locales/**/*', rootDir: './src' })];
10
+ import { ignoreCssUrlPlugin } from '@common-stack/rollup-vite-utils/lib/rollup/pluginIgnore.js';
11
+
12
+ // Define any additional plugins specific to this bundle
13
+ const additionalPlugins = [
14
+ copy({ patterns: ['**/cdm-locales/**/*', '**/styles/**/*'], rootDir: './src' }),
15
+ ];
12
16
 
13
17
  function deepMergeConfigs(baseConfig, specificConfig) {
14
18
  const mergedConfig = { ...baseConfig, ...specificConfig };
@@ -35,6 +39,7 @@ const baseConfig = {
35
39
  excludeImports: ['@emotion/react/jsx-runtime'],
36
40
  }),
37
41
  typescript(), // TypeScript at the top as per best practices
42
+ ignoreCssUrlPlugin(),
38
43
  modifyLibFilesPlugin({
39
44
  include: ['**/**/compute.js'], // Adjust to target specific files or patterns
40
45
  outputDir: 'lib', // Ensure this matches your actual output directory
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "target": "ES2020",
3
+ "target": "ES2022",
4
4
  "module": "ES2022",
5
5
  "moduleResolution": "node",
6
6
  "esModuleInterop": true,
@@ -16,7 +16,7 @@
16
16
  "pretty": true,
17
17
  "removeComments": false,
18
18
  "lib": [
19
- "ES2020",
19
+ "ES2022",
20
20
  "dom",
21
21
  "esnext.asynciterable"
22
22
  ]
@@ -27,8 +27,8 @@
27
27
  "dependencies": {
28
28
  "@common-stack/client-core": "5.0.6-alpha.3",
29
29
  "@common-stack/core": "5.0.6-alpha.3",
30
- "@common-stack/server-core": "6.0.1-alpha.0",
31
- "@common-stack/server-stack": "6.0.1-alpha.0",
30
+ "@common-stack/server-core": "6.0.6-alpha.0",
31
+ "@common-stack/server-stack": "6.0.6-alpha.0",
32
32
  "@common-stack/store-mongo": "5.0.6-alpha.3",
33
33
  "@container-stack/mailing-api": "5.2.1-alpha.1",
34
34
  "helmet": "^3.21.2",
@@ -63,7 +63,7 @@
63
63
  "@apollo/client": ">=3.0.0",
64
64
  "@cdm-logger/server": ">=9.0.3",
65
65
  "@common-stack/core": "5.0.6-alpha.3",
66
- "@common-stack/server-core": "6.0.1-alpha.0",
66
+ "@common-stack/server-core": "6.0.6-alpha.0",
67
67
  "@common-stack/store-mongo": "5.0.6-alpha.3",
68
68
  "@container-stack/mailing-api": ">=0.0.35-alpha.1",
69
69
  "@vscode-alt/monaco-editor": "^0.21.4",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@common-stack/generate-plugin",
3
- "version": "6.0.6-alpha.0",
3
+ "version": "6.0.6-alpha.1",
4
4
  "type": "module",
5
5
  "main": "./lib/index.mjs",
6
6
  "typings": "./lib/index.d.ts",
@@ -26,5 +26,5 @@
26
26
  },
27
27
  "executors": "./executors.json",
28
28
  "generators": "./generators.json",
29
- "gitHead": "b0d198e30e60e102b7abc06e8b20cd7df6251dfa"
29
+ "gitHead": "a9fc7f1279f7113896ee550108d02edb9f7ae911"
30
30
  }
@@ -2,6 +2,4 @@ module.exports = {
2
2
  '*.{js,jsx,ts,tsx,json,md}': ['prettier --write', 'git add'],
3
3
  // '*.{ts,tsx}': ['eslint --fix'], // this can be tested
4
4
  'package.json': ['sort-package-json', 'prettier --write'],
5
- '*/**/package.json': ['sort-package-json', 'prettier --write'],
6
- '**/**/*/package.json': ['sort-package-json', 'prettier --write'],
7
5
  };
@@ -146,7 +146,7 @@
146
146
  "@babel/register": "^7.18.9",
147
147
  "@babel/runtime": "^7.20.1",
148
148
  "@common-stack/env-list-loader": "5.0.6-alpha.3",
149
- "@common-stack/generate-plugin": "6.0.1-alpha.0",
149
+ "@common-stack/generate-plugin": "6.0.6-alpha.0",
150
150
  "@emotion/babel-plugin": "^11.11.0",
151
151
  "@graphql-codegen/add": "^5.0.2",
152
152
  "@graphql-codegen/cli": "^5.0.2",
@@ -160,8 +160,8 @@
160
160
  "@graphql-codegen/typescript-resolvers": "^4.0.6",
161
161
  "@loadable/babel-plugin": "^5.13.2",
162
162
  "@loadable/webpack-plugin": "^5.15.2",
163
- "@open-wc/building-rollup": "^2.0.2",
164
- "@pmmmwh/react-refresh-webpack-plugin": "^0.5.8",
163
+ "@nx-aws-plugin/nx-aws-cache": "^3.2.2",
164
+ "@nx/workspace": "^19.5.1",
165
165
  "@redux-devtools/core": "^3.13.1",
166
166
  "@redux-devtools/dock-monitor": "^3.0.1",
167
167
  "@redux-devtools/log-monitor": "^4.0.1",
@@ -7,8 +7,12 @@ import { copy } from '@web/rollup-plugin-copy';
7
7
  import modifyLibFilesPlugin from '@common-stack/rollup-vite-utils/lib/rollup/rollupPluginModifyLibFiles.js';
8
8
  import generateJsonFromObject from '@common-stack/rollup-vite-utils/lib/rollup/rollupPluginGenerateJson.js';
9
9
  import addJsExtensionToImportsPlugin from '@common-stack/rollup-vite-utils/lib/rollup/rollupPluginAddJsExtension.js';
10
- // Define any additional plugins specific to this bundle
11
- const additionalPlugins = [copy({ patterns: '**/cdm-locales/**/*', rootDir: './src' })];
10
+ import { ignoreCssUrlPlugin } from '@common-stack/rollup-vite-utils/lib/rollup/pluginIgnore.js';
11
+
12
+ // Define any additional plugins specific to this bundle
13
+ const additionalPlugins = [
14
+ copy({ patterns: ['**/cdm-locales/**/*', '**/styles/**/*'], rootDir: './src' }),
15
+ ];
12
16
 
13
17
  function deepMergeConfigs(baseConfig, specificConfig) {
14
18
  const mergedConfig = { ...baseConfig, ...specificConfig };
@@ -35,6 +39,7 @@ const baseConfig = {
35
39
  excludeImports: ['@emotion/react/jsx-runtime'],
36
40
  }),
37
41
  typescript(), // TypeScript at the top as per best practices
42
+ ignoreCssUrlPlugin(),
38
43
  modifyLibFilesPlugin({
39
44
  include: ['**/**/compute.js'], // Adjust to target specific files or patterns
40
45
  outputDir: 'lib', // Ensure this matches your actual output directory
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "compilerOptions": {
3
- "target": "ES2020",
3
+ "target": "ES2022",
4
4
  "module": "ES2022",
5
5
  "moduleResolution": "node",
6
6
  "esModuleInterop": true,
@@ -16,7 +16,7 @@
16
16
  "pretty": true,
17
17
  "removeComments": false,
18
18
  "lib": [
19
- "ES2020",
19
+ "ES2022",
20
20
  "dom",
21
21
  "esnext.asynciterable"
22
22
  ]
@@ -27,8 +27,8 @@
27
27
  "dependencies": {
28
28
  "@common-stack/client-core": "5.0.6-alpha.3",
29
29
  "@common-stack/core": "5.0.6-alpha.3",
30
- "@common-stack/server-core": "6.0.1-alpha.0",
31
- "@common-stack/server-stack": "6.0.1-alpha.0",
30
+ "@common-stack/server-core": "6.0.6-alpha.0",
31
+ "@common-stack/server-stack": "6.0.6-alpha.0",
32
32
  "@common-stack/store-mongo": "5.0.6-alpha.3",
33
33
  "@container-stack/mailing-api": "5.2.1-alpha.1",
34
34
  "helmet": "^3.21.2",
@@ -1,72 +0,0 @@
1
-
2
- declare module '*/AddCounter.client.gql' {
3
- import { DocumentNode } from 'graphql';
4
- const defaultDocument: DocumentNode;
5
- export const addCounterState: DocumentNode;
6
-
7
- export default defaultDocument;
8
- }
9
-
10
-
11
- declare module '*/AddCounter.gql' {
12
- import { DocumentNode } from 'graphql';
13
- const defaultDocument: DocumentNode;
14
- export const addCounter: DocumentNode;
15
-
16
- export default defaultDocument;
17
- }
18
-
19
-
20
- declare module '*/AddCounter_WS.gql' {
21
- import { DocumentNode } from 'graphql';
22
- const defaultDocument: DocumentNode;
23
- export const AddCounter_WS: DocumentNode;
24
-
25
- export default defaultDocument;
26
- }
27
-
28
-
29
- declare module '*/SyncCachedCounter.gql' {
30
- import { DocumentNode } from 'graphql';
31
- const defaultDocument: DocumentNode;
32
- export const SyncCachedCounter: DocumentNode;
33
-
34
- export default defaultDocument;
35
- }
36
-
37
-
38
- declare module '*/CounterCacheQuery_WS.gql' {
39
- import { DocumentNode } from 'graphql';
40
- const defaultDocument: DocumentNode;
41
- export const counterCacheQuery: DocumentNode;
42
-
43
- export default defaultDocument;
44
- }
45
-
46
-
47
- declare module '*/CounterQuery.client.gql' {
48
- import { DocumentNode } from 'graphql';
49
- const defaultDocument: DocumentNode;
50
- export const CounterState: DocumentNode;
51
-
52
- export default defaultDocument;
53
- }
54
-
55
-
56
- declare module '*/CounterQuery.gql' {
57
- import { DocumentNode } from 'graphql';
58
- const defaultDocument: DocumentNode;
59
- export const counterQuery: DocumentNode;
60
-
61
- export default defaultDocument;
62
- }
63
-
64
-
65
- declare module '*/CounterSubscription.gql' {
66
- import { DocumentNode } from 'graphql';
67
- const defaultDocument: DocumentNode;
68
- export const onCounterUpdated: DocumentNode;
69
-
70
- export default defaultDocument;
71
- }
72
-
@@ -1,72 +0,0 @@
1
-
2
- declare module '*/AddCounter.client.gql' {
3
- import { DocumentNode } from 'graphql';
4
- const defaultDocument: DocumentNode;
5
- export const addCounterState: DocumentNode;
6
-
7
- export default defaultDocument;
8
- }
9
-
10
-
11
- declare module '*/AddCounter.gql' {
12
- import { DocumentNode } from 'graphql';
13
- const defaultDocument: DocumentNode;
14
- export const addCounter: DocumentNode;
15
-
16
- export default defaultDocument;
17
- }
18
-
19
-
20
- declare module '*/AddCounter_WS.gql' {
21
- import { DocumentNode } from 'graphql';
22
- const defaultDocument: DocumentNode;
23
- export const AddCounter_WS: DocumentNode;
24
-
25
- export default defaultDocument;
26
- }
27
-
28
-
29
- declare module '*/SyncCachedCounter.gql' {
30
- import { DocumentNode } from 'graphql';
31
- const defaultDocument: DocumentNode;
32
- export const SyncCachedCounter: DocumentNode;
33
-
34
- export default defaultDocument;
35
- }
36
-
37
-
38
- declare module '*/CounterCacheQuery_WS.gql' {
39
- import { DocumentNode } from 'graphql';
40
- const defaultDocument: DocumentNode;
41
- export const counterCacheQuery: DocumentNode;
42
-
43
- export default defaultDocument;
44
- }
45
-
46
-
47
- declare module '*/CounterQuery.client.gql' {
48
- import { DocumentNode } from 'graphql';
49
- const defaultDocument: DocumentNode;
50
- export const CounterState: DocumentNode;
51
-
52
- export default defaultDocument;
53
- }
54
-
55
-
56
- declare module '*/CounterQuery.gql' {
57
- import { DocumentNode } from 'graphql';
58
- const defaultDocument: DocumentNode;
59
- export const counterQuery: DocumentNode;
60
-
61
- export default defaultDocument;
62
- }
63
-
64
-
65
- declare module '*/CounterSubscription.gql' {
66
- import { DocumentNode } from 'graphql';
67
- const defaultDocument: DocumentNode;
68
- export const onCounterUpdated: DocumentNode;
69
-
70
- export default defaultDocument;
71
- }
72
-