@common-stack/generate-plugin 6.0.8-alpha.9 → 7.0.2-alpha.0
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 +5 -271
- package/lib/common/package-releases/package.json +26 -0
- package/lib/common/package-releases/package.json.cjs +33 -0
- package/lib/common/package-releases/package.json.cjs.map +1 -0
- package/lib/common/package-releases/package.json.mjs +33 -0
- package/lib/common/package-releases/package.json.mjs.map +1 -0
- package/lib/generators/add-backend/files/Dockerfile +2 -0
- package/lib/generators/add-backend/files/package.json +4 -2
- package/lib/generators/add-backend/files/webpack.config.js +3 -1
- package/lib/generators/add-frontend/frameworks/antui/src/context.tsx.template +8 -0
- package/lib/generators/add-frontend/frameworks/antui/{entry.client.tsx.template → src/entry.client.tsx.template} +12 -12
- package/{src/generators/add-frontend/frameworks/antui → lib/generators/add-frontend/frameworks/antui/src}/entry.server.tsx.template +61 -51
- package/{src/generators/add-frontend/frameworks/antui → lib/generators/add-frontend/frameworks/antui/src}/root.tsx.template +6 -15
- package/lib/generators/add-frontend/frameworks/chakraui/{context.tsx.template → src/context.tsx.template} +6 -0
- package/lib/generators/add-frontend/frameworks/chakraui/{entry.client.tsx.template → src/entry.client.tsx.template} +21 -18
- package/{src/generators/add-frontend/frameworks/chakraui → lib/generators/add-frontend/frameworks/chakraui/src}/entry.server.tsx.template +33 -30
- package/lib/generators/add-frontend/frameworks/chakraui/{root.tsx.template → src/root.tsx.template} +8 -4
- package/{src/generators/add-frontend/frameworks/tailwindui → lib/generators/add-frontend/frameworks/tailwindui/src}/entry.client.tsx.template +3 -10
- package/lib/generators/add-frontend/generator.cjs +83 -36
- package/lib/generators/add-frontend/generator.cjs.map +1 -1
- package/lib/generators/add-frontend/generator.mjs +83 -36
- package/lib/generators/add-frontend/generator.mjs.map +1 -1
- package/lib/generators/add-frontend/templates/Dockerfile +4 -0
- package/lib/generators/add-frontend/templates/package.json +7 -3
- package/lib/generators/add-frontend/templates/vite.config.ts.template +18 -1
- package/lib/generators/add-fullstack/files/Jenkinsfile +2 -2
- package/lib/generators/add-fullstack/files/cdecode-config.json +126 -0
- package/lib/generators/add-fullstack/files/package.json +31 -18
- package/lib/generators/add-fullstack/files/rollup.config.base.mjs +17 -95
- package/lib/generators/add-fullstack/files/tools/codegenGenerator.mjs +36 -0
- package/lib/generators/add-fullstack/generator.cjs +8 -4
- package/lib/generators/add-fullstack/generator.cjs.map +1 -1
- package/lib/generators/add-fullstack/generator.mjs +8 -4
- package/lib/generators/add-fullstack/generator.mjs.map +1 -1
- package/lib/generators/add-fullstack/schema.json +1 -1
- package/lib/generators/add-moleculer/files/Dockerfile +2 -0
- package/lib/generators/add-moleculer/files/config.json +5 -0
- package/lib/generators/add-moleculer/files/package.json +10 -6
- package/lib/generators/add-moleculer/files/rollup.config.mjs +14 -1
- package/package.json +4 -3
- package/rollup.config.mjs +3 -0
- package/src/common/package-releases/package.json +26 -0
- package/src/generators/add-frontend/__snapshots__/generator.test.ts.snap +33 -0
- package/src/generators/add-frontend/frameworks/antui/src/context.tsx.template +8 -0
- package/src/generators/add-frontend/frameworks/antui/{entry.client.tsx.template → src/entry.client.tsx.template} +12 -12
- package/{lib/generators/add-frontend/frameworks/antui → src/generators/add-frontend/frameworks/antui/src}/entry.server.tsx.template +61 -51
- package/{lib/generators/add-frontend/frameworks/antui → src/generators/add-frontend/frameworks/antui/src}/root.tsx.template +6 -15
- package/src/generators/add-frontend/frameworks/chakraui/{context.tsx.template → src/context.tsx.template} +6 -0
- package/src/generators/add-frontend/frameworks/chakraui/{entry.client.tsx.template → src/entry.client.tsx.template} +21 -18
- package/{lib/generators/add-frontend/frameworks/chakraui → src/generators/add-frontend/frameworks/chakraui/src}/entry.server.tsx.template +33 -30
- package/src/generators/add-frontend/frameworks/chakraui/{root.tsx.template → src/root.tsx.template} +8 -4
- package/src/generators/add-frontend/frameworks/tailwindui/postcss.config.js +6 -0
- package/{lib/generators/add-frontend/frameworks/tailwindui → src/generators/add-frontend/frameworks/tailwindui/src}/entry.client.tsx.template +3 -10
- package/src/generators/add-frontend/frameworks/tailwindui/tailwind.config.ts.template +12 -0
- package/src/generators/add-frontend/generator.test.ts +79 -0
- package/src/generators/add-frontend/generator.ts +109 -44
- package/src/generators/add-fullstack/files/Jenkinsfile +2 -2
- package/src/generators/add-fullstack/files/cdecode-config.json +126 -0
- package/src/generators/add-fullstack/files/package.json +32 -19
- package/src/generators/add-fullstack/files/rollup.config.base.mjs +17 -95
- package/src/generators/add-fullstack/files/tools/codegenGenerator.mjs +36 -0
- package/src/generators/add-fullstack/generator.ts +8 -4
- package/src/generators/add-fullstack/schema.json +1 -1
- package/src/generators/add-moleculer/files/.dockerignore +2 -1
- package/src/generators/add-moleculer/files/CHANGELOG.md +0 -4
- package/src/generators/add-moleculer/files/Dockerfile +2 -0
- package/src/generators/add-moleculer/files/config.json +5 -0
- package/src/generators/add-moleculer/files/package.json +11 -7
- package/src/generators/add-moleculer/files/rollup.config.mjs +14 -1
- package/tsconfig.spec.json +9 -0
- package/docker-releases/backend/package.json +0 -134
- package/docker-releases/frontend/antd/package.json +0 -121
- package/lib/generators/add-fullstack/files/codegen.yml +0 -47
- package/lib/generators/add-moleculer/files/src/modules/module.ts.template +0 -31
- package/src/generators/add-frontend/generator.spec.ts +0 -20
- package/src/generators/add-fullstack/files/codegen.yml +0 -47
- package/src/generators/add-moleculer/files/src/modules/module.ts.template +0 -31
- /package/lib/generators/add-frontend/{templates → frameworks/tailwindui}/postcss.config.js +0 -0
- /package/lib/generators/add-frontend/frameworks/tailwindui/{entry.server.tsx.template → src/entry.server.tsx.template} +0 -0
- /package/lib/generators/add-frontend/frameworks/tailwindui/{root.tsx.template → src/root.tsx.template} +0 -0
- /package/lib/generators/add-frontend/frameworks/tailwindui/{tailwind.css → src/tailwind.css} +0 -0
- /package/lib/generators/add-frontend/{templates → frameworks/tailwindui}/tailwind.config.ts.template +0 -0
- /package/lib/generators/add-frontend/{generator.spec.d.ts → generator.test.d.ts} +0 -0
- /package/src/generators/add-frontend/frameworks/tailwindui/{entry.server.tsx.template → src/entry.server.tsx.template} +0 -0
- /package/src/generators/add-frontend/frameworks/tailwindui/{root.tsx.template → src/root.tsx.template} +0 -0
- /package/src/generators/add-frontend/frameworks/tailwindui/{tailwind.css → src/tailwind.css} +0 -0
|
@@ -24,11 +24,15 @@ import {
|
|
|
24
24
|
} from '../../index';
|
|
25
25
|
|
|
26
26
|
export async function addFullstackGenerator(tree: Tree, options: AddFullstackGeneratorSchema) {
|
|
27
|
-
|
|
27
|
+
let projectPath = options.path || '';
|
|
28
|
+
if (projectPath !== '') {
|
|
29
|
+
const basePath = process.cwd();
|
|
30
|
+
projectPath = path.relative(basePath, projectPath);
|
|
31
|
+
}
|
|
28
32
|
const projectName = getValid(options.name) ?? 'fullstack-pro';
|
|
29
|
-
const projectRoot = path.join(
|
|
33
|
+
const projectRoot = path.join(projectPath, projectName);
|
|
30
34
|
|
|
31
|
-
console.log(`
|
|
35
|
+
// console.log(`Project Path: ${projectPath}`);
|
|
32
36
|
|
|
33
37
|
// backup existing lerna values
|
|
34
38
|
const lernaBackup = backupLernaJson(tree, projectRoot);
|
|
@@ -59,7 +63,7 @@ export async function addFullstackGenerator(tree: Tree, options: AddFullstackGen
|
|
|
59
63
|
await formatFiles(tree);
|
|
60
64
|
|
|
61
65
|
if (isValid(options.config)) {
|
|
62
|
-
const configPath = path.resolve(
|
|
66
|
+
const configPath = path.resolve(projectPath, getValid(options.config));
|
|
63
67
|
if (fs.existsSync(configPath)) {
|
|
64
68
|
try {
|
|
65
69
|
const configs = JSON.parse(fs.readFileSync(configPath).toString());
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"path": {
|
|
17
17
|
"type": "string",
|
|
18
18
|
"description": "The base path where the project will be created or updated",
|
|
19
|
-
"x-prompt": "Where do you want to create or update the project? (
|
|
19
|
+
"x-prompt": "Where do you want to create or update the project? (Please provide in absolute path, or leave empty for the current directory)"
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"required": ["name"]
|
|
@@ -3,10 +3,6 @@
|
|
|
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
|
-
## [5.0.5-alpha.10](https://github.com/cdmbase/common-stack/compare/v5.0.5-alpha.9...v5.0.5-alpha.10) (2024-08-15)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package moleculer-server
|
|
9
|
-
|
|
10
6
|
## [3.1.1-alpha.5](https://github.com/CDEBase/adminIde-stack/compare/v3.1.1-alpha.4...v3.1.1-alpha.5) (2023-01-23)
|
|
11
7
|
|
|
12
8
|
**Note:** Version bump only for package adminide-stack-billing-server
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
FROM node:20.16-alpine
|
|
2
2
|
|
|
3
3
|
COPY .npmrc package.json /tmp/
|
|
4
|
+
COPY common /tmp/common
|
|
4
5
|
|
|
5
6
|
RUN set -ex \
|
|
6
7
|
&& apk add --no-cache \
|
|
@@ -13,6 +14,7 @@ RUN set -ex \
|
|
|
13
14
|
&& rm -f /tmp/.npmrc \
|
|
14
15
|
&& mkdir -p /home/app \
|
|
15
16
|
&& cp -a /tmp/node_modules /home/app/ \
|
|
17
|
+
&& cp -a /tmp/common /home/app/common \
|
|
16
18
|
&& rm -Rf /tmp/*
|
|
17
19
|
|
|
18
20
|
WORKDIR /home/app
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "moleculer-server",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.1.1-alpha.5",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"build:clean": "rimraf dist",
|
|
13
13
|
"build:dist": "rollup -c rollup.config.mjs",
|
|
14
14
|
"build:watch": "npm run build:dist -- --watch",
|
|
15
|
-
"
|
|
15
|
+
"copycommon": "cp -r ../../packages/common .",
|
|
16
|
+
"docker:build": "yarn copycommon && npm run build && docker build . -t $npm_package_name:$npm_package_version",
|
|
16
17
|
"docker:run": "docker run -it --env-file ../../config/staging/docker-staging.env $npm_package_name:$npm_package_version",
|
|
17
18
|
"jest": "./node_modules/.bin/jest",
|
|
18
19
|
"start": "cross-env NODE_ENV=production tsx dist/index.js",
|
|
@@ -24,12 +25,15 @@
|
|
|
24
25
|
"test:watch": "npm test -- --watch",
|
|
25
26
|
"watch": "npm run start:dev"
|
|
26
27
|
},
|
|
28
|
+
"resolutions": {
|
|
29
|
+
"common": "link:./common"
|
|
30
|
+
},
|
|
27
31
|
"dependencies": {
|
|
28
|
-
"@common-stack/client-core": "6.0.8-alpha.
|
|
29
|
-
"@common-stack/core": "6.0.8-alpha.
|
|
30
|
-
"@common-stack/server-core": "6.0.8-alpha.
|
|
31
|
-
"@common-stack/server-stack": "6.0.8-alpha.
|
|
32
|
-
"@common-stack/store-mongo": "6.0.8-alpha.
|
|
32
|
+
"@common-stack/client-core": "6.0.8-alpha.0",
|
|
33
|
+
"@common-stack/core": "6.0.8-alpha.0",
|
|
34
|
+
"@common-stack/server-core": "6.0.8-alpha.0",
|
|
35
|
+
"@common-stack/server-stack": "6.0.8-alpha.0",
|
|
36
|
+
"@common-stack/store-mongo": "6.0.8-alpha.0",
|
|
33
37
|
"@container-stack/mailing-api": "5.2.1-alpha.1",
|
|
34
38
|
"helmet": "^3.21.2",
|
|
35
39
|
"react": "18.2.0",
|
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
import graphql from '@rollup/plugin-graphql';
|
|
2
2
|
import typescript from '@rollup/plugin-typescript';
|
|
3
3
|
import { string } from 'rollup-plugin-string';
|
|
4
|
+
import path from 'path';
|
|
5
|
+
import { fileURLToPath } from 'url';
|
|
6
|
+
import { writeBackendModuleFile } from '@common-stack/rollup-vite-utils';
|
|
7
|
+
|
|
8
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
9
|
+
const __dirname = path.dirname(__filename);
|
|
10
|
+
|
|
11
|
+
// Write backend module file before bundling
|
|
12
|
+
try {
|
|
13
|
+
const packageConfig = await import('./config.json', { assert: { type: 'json' } });
|
|
14
|
+
await writeBackendModuleFile(path.join(__dirname, 'src/modules'), packageConfig.default);
|
|
15
|
+
} catch (e) {
|
|
16
|
+
console.error('Error writing backend module file:', e);
|
|
17
|
+
}
|
|
4
18
|
|
|
5
19
|
const bundle = (config) => ({
|
|
6
20
|
...config,
|
|
7
21
|
input: 'src/index.ts',
|
|
8
|
-
// marking all node modules as external
|
|
9
22
|
external: (id) => !/^[./]/.test(id),
|
|
10
23
|
});
|
|
11
24
|
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "base-backend-server",
|
|
3
|
-
"version": "6.0.6-alpha.82",
|
|
4
|
-
"private": true,
|
|
5
|
-
"description": "Starter kit for apollo server using webpack and typescript",
|
|
6
|
-
"keywords": [
|
|
7
|
-
"apollo",
|
|
8
|
-
"apollo-server",
|
|
9
|
-
"backend",
|
|
10
|
-
"express",
|
|
11
|
-
"graphiql",
|
|
12
|
-
"graphql",
|
|
13
|
-
"typescript",
|
|
14
|
-
"webpack"
|
|
15
|
-
],
|
|
16
|
-
"homepage": "https://github.com/cdmbase/fullstack-pro#readme",
|
|
17
|
-
"bugs": {
|
|
18
|
-
"url": "https://github.com/cdmbase/fullstack-pro/issues"
|
|
19
|
-
},
|
|
20
|
-
"repository": {
|
|
21
|
-
"type": "git",
|
|
22
|
-
"url": "git+https://github.com/cdmbase/fullstack-pro.git"
|
|
23
|
-
},
|
|
24
|
-
"license": "MIT",
|
|
25
|
-
"author": "CDMBase LLC",
|
|
26
|
-
"main": "dist/index.js",
|
|
27
|
-
"typings": "dist/main.d.ts",
|
|
28
|
-
"scripts": {
|
|
29
|
-
"build": "cross-env NODE_ENV=production webpack --config webpack.config.js",
|
|
30
|
-
"build:clean": "rimraf dist .awcache",
|
|
31
|
-
"build:dev": "cross-env NODE_ENV=development ENV_FILE=../../config/development/dev.env webpack --config webpack.config.js",
|
|
32
|
-
"db:migrate": "knex -- migrate:latest --cwd . --knexfile ./knexfile.js",
|
|
33
|
-
"db:migrate:rollback": "knex -- migrate:rollback --cwd . --knexfile ./knexfile.js",
|
|
34
|
-
"db:seed": "yarn db:migrate && knex -- seed:run --cwd . --knexfile ./knexfile.js",
|
|
35
|
-
"docker:build": "yarn build && docker build . -t $npm_package_name:$npm_package_version",
|
|
36
|
-
"docker:build:debug": "yarn build:debug && docker build . -t $npm_package_name:$npm_package_version",
|
|
37
|
-
"docker:run": "docker run --env-file ../../config/staging/docker-staging.env -p 8080:8080 -it $npm_package_name:$npm_package_version",
|
|
38
|
-
"docker:run:debug": "cross-env NODE_ENV=development docker run --env-file ../../config/staging/docker-staging.env -p 8080:8080 -it $npm_package_name:$npm_package_version",
|
|
39
|
-
"proddb:migrate": "NODE_ENV=production yarn db:migrate",
|
|
40
|
-
"proddb:migrate:rollback": "NODE_ENV=production yarn db:migrate:rollback",
|
|
41
|
-
"proddb:seed": "NODE_ENV=production yarn db:seed",
|
|
42
|
-
"prepublish": "yarn build:clean",
|
|
43
|
-
"stagedb:migrate": "cross-env ENV_FILE=../../config/test/test.env NODE_ENV=test yarn db:migrate",
|
|
44
|
-
"stagedb:migrate:rollback": "cross-env ENV_FILE=../../config/test/test.env NODE_ENV=test yarn db:migrate:rollback",
|
|
45
|
-
"stagedb:seed": "cross-env ENV_FILE=../../config/test/test.env NODE_ENV=test yarn db:seed",
|
|
46
|
-
"start": "cross-env NODE_ENV=production tsx dist/index.js",
|
|
47
|
-
"start:dev": "cross-env NODE_ENV=development ENV_FILE=../../config/development/dev.env tsx watch dist/index.js",
|
|
48
|
-
"start:staging": "cross-env NODE_ENV=staging ENV_FILE=../../config/staging/staging.env tsx dist/index.js",
|
|
49
|
-
"start:test": "cross-env NODE_ENV=test ENV_FILE=../../config/test/test.env tsx dist/index.js",
|
|
50
|
-
"test": "jest",
|
|
51
|
-
"test:notify": "yarn test:watch -- --notify",
|
|
52
|
-
"test:watch": "npm test -- --watch",
|
|
53
|
-
"preupver": "npm test",
|
|
54
|
-
"upver": "standard-version",
|
|
55
|
-
"watch": "cross-env NODE_ENV=development ENV_FILE=../../config/development/dev.env yarn build:dev && yarn start:dev",
|
|
56
|
-
"watch:staging": "cross-env NODE_ENV=test ENV_FILE=../../config/staging/staging.env yarn build && yarn start:stage",
|
|
57
|
-
"watch:test": "cross-env NODE_ENV=test ENV_FILE=../../config/test/test.env yarn build:test && yarn start:test"
|
|
58
|
-
},
|
|
59
|
-
"resolutions": {
|
|
60
|
-
"html-to-text": "^8.0.0"
|
|
61
|
-
},
|
|
62
|
-
"dependencies": {
|
|
63
|
-
"@apollo/client": "^3.9.0",
|
|
64
|
-
"@apollo/datasource-rest": "^6.3.0",
|
|
65
|
-
"@apollo/server": "^4.10.4",
|
|
66
|
-
"@apollo/server-plugin-response-cache": "^4.1.3",
|
|
67
|
-
"@apollo/utils.keyvadapter": "^3.1.0",
|
|
68
|
-
"@babel/runtime": "^7.20.1",
|
|
69
|
-
"@casl/ability": "^4.1.5",
|
|
70
|
-
"@cdm-logger/client": "^9.0.3",
|
|
71
|
-
"@cdm-logger/server": "^9.0.3",
|
|
72
|
-
"@cdmbase/graphql-type-uri": "^4.0.0",
|
|
73
|
-
"@common-stack/cache-api-server": "6.0.8-alpha.8",
|
|
74
|
-
"@common-stack/client-core": "6.0.8-alpha.7",
|
|
75
|
-
"@common-stack/core": "6.0.8-alpha.7",
|
|
76
|
-
"@common-stack/server-core": "6.0.8-alpha.8",
|
|
77
|
-
"@common-stack/server-stack": "6.0.8-alpha.8",
|
|
78
|
-
"@common-stack/store-mongo": "6.0.8-alpha.8",
|
|
79
|
-
"@graphql-tools/links": "~9.0.1",
|
|
80
|
-
"@graphql-tools/schema": "~10.0.6",
|
|
81
|
-
"@graphql-tools/stitch": "~9.2.10",
|
|
82
|
-
"@graphql-tools/utils": "~10.5.4",
|
|
83
|
-
"@graphql-tools/wrap": "~10.0.5",
|
|
84
|
-
"@keyv/redis": "2.8.4",
|
|
85
|
-
"@remix-run/node": "~2.10.1",
|
|
86
|
-
"@sentry/node": "~7.24.2",
|
|
87
|
-
"@sentry/profiling-node": "^8.25.0",
|
|
88
|
-
"apollo-errors": "^1.9.0",
|
|
89
|
-
"body-parser": "^1.19.0",
|
|
90
|
-
"cors": "^2.8.5",
|
|
91
|
-
"dataloader": "^2.0.0",
|
|
92
|
-
"dotenv": "^8.2.0",
|
|
93
|
-
"dotenv-esm": "^16.0.3-4",
|
|
94
|
-
"envalid": "~7.2.2",
|
|
95
|
-
"express": "^4.17.1",
|
|
96
|
-
"graphql": "^16.0.0",
|
|
97
|
-
"graphql-bigint": "^1.0.0",
|
|
98
|
-
"graphql-middleware": "^6.1.33",
|
|
99
|
-
"graphql-nats-subscriptions": "^1.5.0",
|
|
100
|
-
"graphql-playground-middleware-express": "^1.7.3",
|
|
101
|
-
"graphql-shield": "^7.3.5",
|
|
102
|
-
"graphql-subscriptions": "^2.0.0",
|
|
103
|
-
"graphql-tools": "~9.0.0",
|
|
104
|
-
"graphql-type-json": "^0.3.1",
|
|
105
|
-
"graphql-ws": "^5.11.2",
|
|
106
|
-
"inversify": "~6.0.2",
|
|
107
|
-
"ioredis": "^5.4.1",
|
|
108
|
-
"isomorphic-fetch": "^2.2.1",
|
|
109
|
-
"lodash": "^4.17.15",
|
|
110
|
-
"moleculer": "^0.14.2",
|
|
111
|
-
"mongoose": "^6.3.3",
|
|
112
|
-
"mongoose-autopopulate": "^1.1.0",
|
|
113
|
-
"mongoose-execution-time": "^1.1.0",
|
|
114
|
-
"morgan": "^1.9.1",
|
|
115
|
-
"nats": "^1.3.2",
|
|
116
|
-
"react": "18.2.0",
|
|
117
|
-
"redux": "^5.0.1",
|
|
118
|
-
"reflect-metadata": "^0.1.13",
|
|
119
|
-
"rxjs": "^7.8.1",
|
|
120
|
-
"subscriptions-transport-ws": "^0.11.0",
|
|
121
|
-
"universal-cookie-express": "^4.0.1",
|
|
122
|
-
"ws": "^8.11.0"
|
|
123
|
-
},
|
|
124
|
-
"devDependencies": {
|
|
125
|
-
"cross-env": "^7.0.3",
|
|
126
|
-
"esbuild-loader": "^4.2.2",
|
|
127
|
-
"pm2": "^5.2.2",
|
|
128
|
-
"rimraf": "^3.0.2",
|
|
129
|
-
"tsx": "^4.7.0"
|
|
130
|
-
},
|
|
131
|
-
"typescript": {
|
|
132
|
-
"definition": "dist/main.d.ts"
|
|
133
|
-
}
|
|
134
|
-
}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "base-backend-server",
|
|
3
|
-
"version": "6.0.6-alpha.82",
|
|
4
|
-
"private": true,
|
|
5
|
-
"description": "Starter kit for apollo server using webpack and typescript",
|
|
6
|
-
"keywords": [
|
|
7
|
-
"apollo",
|
|
8
|
-
"apollo-server",
|
|
9
|
-
"backend",
|
|
10
|
-
"express",
|
|
11
|
-
"graphiql",
|
|
12
|
-
"graphql",
|
|
13
|
-
"typescript",
|
|
14
|
-
"webpack"
|
|
15
|
-
],
|
|
16
|
-
"homepage": "https://github.com/cdmbase/fullstack-pro#readme",
|
|
17
|
-
"bugs": {
|
|
18
|
-
"url": "https://github.com/cdmbase/fullstack-pro/issues"
|
|
19
|
-
},
|
|
20
|
-
"repository": {
|
|
21
|
-
"type": "git",
|
|
22
|
-
"url": "git+https://github.com/cdmbase/fullstack-pro.git"
|
|
23
|
-
},
|
|
24
|
-
"license": "MIT",
|
|
25
|
-
"author": "CDMBase LLC",
|
|
26
|
-
"main": "dist/index.js",
|
|
27
|
-
"typings": "dist/main.d.ts",
|
|
28
|
-
"scripts": {
|
|
29
|
-
"build": "cross-env NODE_ENV=production webpack --config webpack.config.js",
|
|
30
|
-
"build:clean": "rimraf dist .awcache",
|
|
31
|
-
"build:dev": "cross-env NODE_ENV=development ENV_FILE=../../config/development/dev.env webpack --config webpack.config.js",
|
|
32
|
-
"db:migrate": "knex -- migrate:latest --cwd . --knexfile ./knexfile.js",
|
|
33
|
-
"db:migrate:rollback": "knex -- migrate:rollback --cwd . --knexfile ./knexfile.js",
|
|
34
|
-
"db:seed": "yarn db:migrate && knex -- seed:run --cwd . --knexfile ./knexfile.js",
|
|
35
|
-
"docker:build": "yarn build && docker build . -t $npm_package_name:$npm_package_version",
|
|
36
|
-
"docker:build:debug": "yarn build:debug && docker build . -t $npm_package_name:$npm_package_version",
|
|
37
|
-
"docker:run": "docker run --env-file ../../config/staging/docker-staging.env -p 8080:8080 -it $npm_package_name:$npm_package_version",
|
|
38
|
-
"docker:run:debug": "cross-env NODE_ENV=development docker run --env-file ../../config/staging/docker-staging.env -p 8080:8080 -it $npm_package_name:$npm_package_version",
|
|
39
|
-
"proddb:migrate": "NODE_ENV=production yarn db:migrate",
|
|
40
|
-
"proddb:migrate:rollback": "NODE_ENV=production yarn db:migrate:rollback",
|
|
41
|
-
"proddb:seed": "NODE_ENV=production yarn db:seed",
|
|
42
|
-
"prepublish": "yarn build:clean",
|
|
43
|
-
"stagedb:migrate": "cross-env ENV_FILE=../../config/test/test.env NODE_ENV=test yarn db:migrate",
|
|
44
|
-
"stagedb:migrate:rollback": "cross-env ENV_FILE=../../config/test/test.env NODE_ENV=test yarn db:migrate:rollback",
|
|
45
|
-
"stagedb:seed": "cross-env ENV_FILE=../../config/test/test.env NODE_ENV=test yarn db:seed",
|
|
46
|
-
"start": "cross-env NODE_ENV=production tsx dist/index.js",
|
|
47
|
-
"start:dev": "cross-env NODE_ENV=development ENV_FILE=../../config/development/dev.env tsx watch dist/index.js",
|
|
48
|
-
"start:staging": "cross-env NODE_ENV=staging ENV_FILE=../../config/staging/staging.env tsx dist/index.js",
|
|
49
|
-
"start:test": "cross-env NODE_ENV=test ENV_FILE=../../config/test/test.env tsx dist/index.js",
|
|
50
|
-
"test": "jest",
|
|
51
|
-
"test:notify": "yarn test:watch -- --notify",
|
|
52
|
-
"test:watch": "npm test -- --watch",
|
|
53
|
-
"preupver": "npm test",
|
|
54
|
-
"upver": "standard-version",
|
|
55
|
-
"watch": "cross-env NODE_ENV=development ENV_FILE=../../config/development/dev.env yarn build:dev && yarn start:dev",
|
|
56
|
-
"watch:staging": "cross-env NODE_ENV=test ENV_FILE=../../config/staging/staging.env yarn build && yarn start:stage",
|
|
57
|
-
"watch:test": "cross-env NODE_ENV=test ENV_FILE=../../config/test/test.env yarn build:test && yarn start:test"
|
|
58
|
-
},
|
|
59
|
-
"resolutions": {
|
|
60
|
-
"html-to-text": "^8.0.0"
|
|
61
|
-
},
|
|
62
|
-
"dependencies": {
|
|
63
|
-
"@apollo/client": "^3.9.0",
|
|
64
|
-
"@cdm-logger/client": "^9.0.3",
|
|
65
|
-
"@cdm-logger/server": "^9.0.3",
|
|
66
|
-
"@common-stack/cache-api-server": "6.0.8-alpha.8",
|
|
67
|
-
"@common-stack/client-core": "6.0.8-alpha.7",
|
|
68
|
-
"@common-stack/client-react": "6.0.8-alpha.7",
|
|
69
|
-
"@common-stack/components-pro": "6.0.8-alpha.7",
|
|
70
|
-
"@common-stack/core": "6.0.8-alpha.7",
|
|
71
|
-
"@common-stack/remix-router-redux": "6.0.8-alpha.7",
|
|
72
|
-
"@common-stack/server-core": "6.0.8-alpha.8",
|
|
73
|
-
"@reduxjs/toolkit": "^2.2.6",
|
|
74
|
-
"@remix-run/express": "~2.10.1",
|
|
75
|
-
"@remix-run/node": "~2.10.1",
|
|
76
|
-
"@remix-run/react": "~2.10.1",
|
|
77
|
-
"@sentry/browser": "~5.11.2",
|
|
78
|
-
"cors": "^2.8.5",
|
|
79
|
-
"cross-fetch": "^4.0.0",
|
|
80
|
-
"dotenv": "^8.2.0",
|
|
81
|
-
"envalid": "~7.2.2",
|
|
82
|
-
"express": "^4.18.2",
|
|
83
|
-
"graphql": "^16.0.0",
|
|
84
|
-
"graphql-tag": "^2.11.0",
|
|
85
|
-
"graphql-ws": "^5.11.2",
|
|
86
|
-
"i18next": "^23.10.1",
|
|
87
|
-
"i18next-browser-languagedetector": "^8.0.0",
|
|
88
|
-
"i18next-fs-backend": "^2.3.1",
|
|
89
|
-
"i18next-http-backend": "^2.5.2",
|
|
90
|
-
"inversify": "~6.0.2",
|
|
91
|
-
"ioredis": "^5.4.1",
|
|
92
|
-
"isbot": "^4.1.0",
|
|
93
|
-
"isomorphic-fetch": "^2.2.1",
|
|
94
|
-
"lodash": "^4.17.15",
|
|
95
|
-
"prop-types": "^15.8.1",
|
|
96
|
-
"react": "18.3.1",
|
|
97
|
-
"react-dom": "18.3.1",
|
|
98
|
-
"react-i18next": "^14.1.0",
|
|
99
|
-
"react-redux": "^9.1.1",
|
|
100
|
-
"redux-observable": "^3.0.0-rc.2",
|
|
101
|
-
"redux-persist": "^6.0.0",
|
|
102
|
-
"redux-persist-transform-filter": "^0.0.20",
|
|
103
|
-
"reflect-metadata": "^0.1.13",
|
|
104
|
-
"remix-i18next": "~6.1.0",
|
|
105
|
-
"remix-island": "^0.2.0",
|
|
106
|
-
"rxjs": "^7.8.1",
|
|
107
|
-
"serialize-javascript": "^6.0.0",
|
|
108
|
-
"ts-deepmerge": "^7.0.0",
|
|
109
|
-
"ts-invariant": "^0.10.3"
|
|
110
|
-
},
|
|
111
|
-
"devDependencies": {
|
|
112
|
-
"cross-env": "^7.0.3",
|
|
113
|
-
"esbuild-loader": "^4.2.2",
|
|
114
|
-
"pm2": "^5.2.2",
|
|
115
|
-
"rimraf": "^3.0.2",
|
|
116
|
-
"tsx": "^4.7.0"
|
|
117
|
-
},
|
|
118
|
-
"typescript": {
|
|
119
|
-
"definition": "dist/main.d.ts"
|
|
120
|
-
}
|
|
121
|
-
}
|
|
@@ -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,31 +0,0 @@
|
|
|
1
|
-
import { ContainerModule, interfaces } from 'inversify';
|
|
2
|
-
import { Feature } from '@common-stack/server-core';
|
|
3
|
-
import { TaggedType } from '@common-stack/core';
|
|
4
|
-
import { config } from '../config';
|
|
5
|
-
|
|
6
|
-
const subTopic = config.CONNECTION_ID;
|
|
7
|
-
export const settings: any = {
|
|
8
|
-
connectionId: config.CONNECTION_ID,
|
|
9
|
-
namespace: config.NAMESPACE,
|
|
10
|
-
subTopic,
|
|
11
|
-
logger: config.LOG_LEVEL,
|
|
12
|
-
workspaceId: config.CONNECTION_ID || 'DEFAULT',
|
|
13
|
-
configPath: process.env.CONFIG_PATH,
|
|
14
|
-
adminApiNamespace: 'api-admin',
|
|
15
|
-
apiNamespace: 'api-admin',
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
const defaultModule = () =>
|
|
19
|
-
new ContainerModule((bind: interfaces.Bind) => {
|
|
20
|
-
bind('Settings').toConstantValue(settings).whenTargetTagged('default', true);
|
|
21
|
-
bind('Settings').toConstantValue(settings).whenTargetTagged('microservice', true);
|
|
22
|
-
bind('Settings').toConstantValue(settings).whenTargetTagged(TaggedType.MICROSERVICE, true);
|
|
23
|
-
bind('MongoOptions').toConstantValue({});
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
const DefaultFeature = new Feature({
|
|
27
|
-
createContainerFunc: [defaultModule],
|
|
28
|
-
createHemeraContainerFunc: [defaultModule],
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
export default new Feature<any>(DefaultFeature);
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { createTreeWithEmptyWorkspace } from '@nx/devkit/testing';
|
|
2
|
-
import { Tree, readProjectConfiguration } from '@nx/devkit';
|
|
3
|
-
|
|
4
|
-
import { addFrontendGenerator } from './generator';
|
|
5
|
-
import { AddFrontendGeneratorSchema } from './schema';
|
|
6
|
-
|
|
7
|
-
describe('add-frontend generator', () => {
|
|
8
|
-
let tree: Tree;
|
|
9
|
-
const options: AddFrontendGeneratorSchema = { ns: 'test', directory: 'lib' };
|
|
10
|
-
|
|
11
|
-
beforeEach(() => {
|
|
12
|
-
tree = createTreeWithEmptyWorkspace();
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
it('should run successfully', async () => {
|
|
16
|
-
await addFrontendGenerator(tree, options);
|
|
17
|
-
const config = readProjectConfiguration(tree, 'test');
|
|
18
|
-
expect(config).toBeDefined();
|
|
19
|
-
});
|
|
20
|
-
});
|
|
@@ -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,31 +0,0 @@
|
|
|
1
|
-
import { ContainerModule, interfaces } from 'inversify';
|
|
2
|
-
import { Feature } from '@common-stack/server-core';
|
|
3
|
-
import { TaggedType } from '@common-stack/core';
|
|
4
|
-
import { config } from '../config';
|
|
5
|
-
|
|
6
|
-
const subTopic = config.CONNECTION_ID;
|
|
7
|
-
export const settings: any = {
|
|
8
|
-
connectionId: config.CONNECTION_ID,
|
|
9
|
-
namespace: config.NAMESPACE,
|
|
10
|
-
subTopic,
|
|
11
|
-
logger: config.LOG_LEVEL,
|
|
12
|
-
workspaceId: config.CONNECTION_ID || 'DEFAULT',
|
|
13
|
-
configPath: process.env.CONFIG_PATH,
|
|
14
|
-
adminApiNamespace: 'api-admin',
|
|
15
|
-
apiNamespace: 'api-admin',
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
const defaultModule = () =>
|
|
19
|
-
new ContainerModule((bind: interfaces.Bind) => {
|
|
20
|
-
bind('Settings').toConstantValue(settings).whenTargetTagged('default', true);
|
|
21
|
-
bind('Settings').toConstantValue(settings).whenTargetTagged('microservice', true);
|
|
22
|
-
bind('Settings').toConstantValue(settings).whenTargetTagged(TaggedType.MICROSERVICE, true);
|
|
23
|
-
bind('MongoOptions').toConstantValue({});
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
const DefaultFeature = new Feature({
|
|
27
|
-
createContainerFunc: [defaultModule],
|
|
28
|
-
createHemeraContainerFunc: [defaultModule],
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
export default new Feature<any>(DefaultFeature);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/lib/generators/add-frontend/frameworks/tailwindui/{tailwind.css → src/tailwind.css}
RENAMED
|
File without changes
|
/package/lib/generators/add-frontend/{templates → frameworks/tailwindui}/tailwind.config.ts.template
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/generators/add-frontend/frameworks/tailwindui/{tailwind.css → src/tailwind.css}
RENAMED
|
File without changes
|