@digitaldefiance/express-suite-starter 2.3.1 → 2.3.3
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/config/presets/standard.json +1 -1
- package/dist/src/core/interfaces/command-options.interface.d.ts +1 -0
- package/dist/src/core/interfaces/command-options.interface.d.ts.map +1 -1
- package/dist/src/core/project-generator.d.ts +1 -0
- package/dist/src/core/project-generator.d.ts.map +1 -1
- package/dist/src/core/project-generator.js +8 -7
- package/dist/src/core/project-generator.js.map +1 -1
- package/dist/src/generate-monorepo.d.ts.map +1 -1
- package/dist/src/generate-monorepo.js +371 -91
- package/dist/src/generate-monorepo.js.map +1 -1
- package/dist/src/utils/shell-utils.d.ts.map +1 -1
- package/dist/src/utils/shell-utils.js +2 -1
- package/dist/src/utils/shell-utils.js.map +1 -1
- package/package.json +6 -5
- package/dist/src/i18n/translations-de.d.ts +0 -3
- package/dist/src/i18n/translations-de.d.ts.map +0 -1
- package/dist/src/i18n/translations-de.js +0 -171
- package/dist/src/i18n/translations-de.js.map +0 -1
- package/dist/src/i18n/translations-en-gb.d.ts +0 -167
- package/dist/src/i18n/translations-en-gb.d.ts.map +0 -1
- package/dist/src/i18n/translations-en-gb.js +0 -7
- package/dist/src/i18n/translations-en-gb.js.map +0 -1
- package/dist/src/i18n/translations-en-us.d.ts +0 -3
- package/dist/src/i18n/translations-en-us.d.ts.map +0 -1
- package/dist/src/i18n/translations-en-us.js +0 -195
- package/dist/src/i18n/translations-en-us.js.map +0 -1
- package/dist/src/i18n/translations-es.d.ts +0 -3
- package/dist/src/i18n/translations-es.d.ts.map +0 -1
- package/dist/src/i18n/translations-es.js +0 -171
- package/dist/src/i18n/translations-es.js.map +0 -1
- package/dist/src/i18n/translations-fr.d.ts +0 -3
- package/dist/src/i18n/translations-fr.d.ts.map +0 -1
- package/dist/src/i18n/translations-fr.js +0 -171
- package/dist/src/i18n/translations-fr.js.map +0 -1
- package/dist/src/i18n/translations-ja.d.ts +0 -3
- package/dist/src/i18n/translations-ja.d.ts.map +0 -1
- package/dist/src/i18n/translations-ja.js +0 -171
- package/dist/src/i18n/translations-ja.js.map +0 -1
- package/dist/src/i18n/translations-uk.d.ts +0 -3
- package/dist/src/i18n/translations-uk.d.ts.map +0 -1
- package/dist/src/i18n/translations-uk.js +0 -171
- package/dist/src/i18n/translations-uk.js.map +0 -1
- package/dist/src/i18n/translations-zh-cn.d.ts +0 -3
- package/dist/src/i18n/translations-zh-cn.d.ts.map +0 -1
- package/dist/src/i18n/translations-zh-cn.js +0 -171
- package/dist/src/i18n/translations-zh-cn.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-options.interface.d.ts","sourceRoot":"","sources":["../../../../src/core/interfaces/command-options.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"command-options.interface.d.ts","sourceRoot":"","sources":["../../../../src/core/interfaces/command-options.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;CACzB"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ProjectConfig } from './interfaces';
|
|
2
2
|
export declare class ProjectGenerator {
|
|
3
|
+
private static readonly nxEnv;
|
|
3
4
|
static generateReact(config: ProjectConfig, monorepoPath: string, nx: any, dryRun?: boolean): void;
|
|
4
5
|
static generateReactLib(config: ProjectConfig, monorepoPath: string, nx: any, dryRun?: boolean): void;
|
|
5
6
|
static generateApi(config: ProjectConfig, monorepoPath: string, nx: any, dryRun?: boolean): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-generator.d.ts","sourceRoot":"","sources":["../../../src/core/project-generator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,qBAAa,gBAAgB;IAC3B,MAAM,CAAC,aAAa,CAAC,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,UAAQ,GAAG,IAAI;IAOhG,MAAM,CAAC,gBAAgB,CAAC,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,UAAQ,GAAG,IAAI;IAOnG,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,UAAQ,GAAG,IAAI;IAO9F,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,UAAQ,GAAG,IAAI;IAOjG,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,UAAQ,GAAG,IAAI;IAO9F,MAAM,CAAC,kBAAkB,CAAC,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,UAAQ,GAAG,IAAI;IAO5F,MAAM,CAAC,iBAAiB,CAAC,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,UAAQ,GAAG,IAAI;CAMrG"}
|
|
1
|
+
{"version":3,"file":"project-generator.d.ts","sourceRoot":"","sources":["../../../src/core/project-generator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAA0B;IAEvD,MAAM,CAAC,aAAa,CAAC,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,UAAQ,GAAG,IAAI;IAOhG,MAAM,CAAC,gBAAgB,CAAC,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,UAAQ,GAAG,IAAI;IAOnG,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,UAAQ,GAAG,IAAI;IAO9F,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,UAAQ,GAAG,IAAI;IAOjG,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,UAAQ,GAAG,IAAI;IAO9F,MAAM,CAAC,kBAAkB,CAAC,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,UAAQ,GAAG,IAAI;IAO5F,MAAM,CAAC,iBAAiB,CAAC,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,UAAQ,GAAG,IAAI;CAMrG"}
|
|
@@ -3,26 +3,27 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ProjectGenerator = void 0;
|
|
4
4
|
const shell_utils_1 = require("../utils/shell-utils");
|
|
5
5
|
class ProjectGenerator {
|
|
6
|
+
static nxEnv = { NX_DAEMON: 'false' };
|
|
6
7
|
static generateReact(config, monorepoPath, nx, dryRun = false) {
|
|
7
|
-
(0, shell_utils_1.runCommand)(`npx nx g @nx/react:application ${config.name} --style=${nx.style} --routing=true --bundler=${nx.bundler} --linter=eslint --unitTestRunner=jest --e2eTestRunner=${nx.e2eTestRunner} --importPath=${config.importPath} --no-interactive`, { cwd: monorepoPath, dryRun });
|
|
8
|
+
(0, shell_utils_1.runCommand)(`npx nx g @nx/react:application ${config.name} --style=${nx.style} --routing=true --bundler=${nx.bundler} --linter=eslint --unitTestRunner=jest --e2eTestRunner=${nx.e2eTestRunner} --importPath=${config.importPath} --no-interactive`, { cwd: monorepoPath, dryRun, env: this.nxEnv });
|
|
8
9
|
}
|
|
9
10
|
static generateReactLib(config, monorepoPath, nx, dryRun = false) {
|
|
10
|
-
(0, shell_utils_1.runCommand)(`npx nx g @nx/react:library ${config.name} --style=${nx.style} --bundler=${nx.bundler} --linter=eslint --unitTestRunner=jest --importPath=${config.importPath} --no-interactive`, { cwd: monorepoPath, dryRun });
|
|
11
|
+
(0, shell_utils_1.runCommand)(`npx nx g @nx/react:library ${config.name} --style=${nx.style} --bundler=${nx.bundler} --linter=eslint --unitTestRunner=jest --importPath=${config.importPath} --no-interactive`, { cwd: monorepoPath, dryRun, env: this.nxEnv });
|
|
11
12
|
}
|
|
12
13
|
static generateApi(config, monorepoPath, nx, dryRun = false) {
|
|
13
|
-
(0, shell_utils_1.runCommand)(`npx nx g @nx/node:application ${config.name} --framework=express --linter=eslint --unitTestRunner=jest --e2eTestRunner=jest --importPath=${config.importPath} --no-interactive`, { cwd: monorepoPath, dryRun });
|
|
14
|
+
(0, shell_utils_1.runCommand)(`npx nx g @nx/node:application ${config.name} --framework=express --linter=eslint --unitTestRunner=jest --e2eTestRunner=jest --importPath=${config.importPath} --no-interactive`, { cwd: monorepoPath, dryRun, env: this.nxEnv });
|
|
14
15
|
}
|
|
15
16
|
static generateApiLib(config, monorepoPath, nx, dryRun = false) {
|
|
16
|
-
(0, shell_utils_1.runCommand)(`npx nx g @nx/js:lib ${config.name} --bundler=none --linter=eslint --unitTestRunner=jest --importPath=${config.importPath} --no-interactive`, { cwd: monorepoPath, dryRun });
|
|
17
|
+
(0, shell_utils_1.runCommand)(`npx nx g @nx/js:lib ${config.name} --bundler=none --linter=eslint --unitTestRunner=jest --importPath=${config.importPath} --no-interactive`, { cwd: monorepoPath, dryRun, env: this.nxEnv });
|
|
17
18
|
}
|
|
18
19
|
static generateLib(config, monorepoPath, nx, dryRun = false) {
|
|
19
|
-
(0, shell_utils_1.runCommand)(`npx nx g @nx/js:lib ${config.name} --bundler=none --linter=eslint --unitTestRunner=jest --importPath=${config.importPath} --no-interactive`, { cwd: monorepoPath, dryRun });
|
|
20
|
+
(0, shell_utils_1.runCommand)(`npx nx g @nx/js:lib ${config.name} --bundler=none --linter=eslint --unitTestRunner=jest --importPath=${config.importPath} --no-interactive`, { cwd: monorepoPath, dryRun, env: this.nxEnv });
|
|
20
21
|
}
|
|
21
22
|
static generateInitUserDb(config, monorepoPath, dryRun = false) {
|
|
22
|
-
(0, shell_utils_1.runCommand)(`npx nx g @nx/node:application ${config.name} --framework=none --linter=eslint --unitTestRunner=jest --no-interactive`, { cwd: monorepoPath, dryRun });
|
|
23
|
+
(0, shell_utils_1.runCommand)(`npx nx g @nx/node:application ${config.name} --framework=none --linter=eslint --unitTestRunner=jest --no-interactive`, { cwd: monorepoPath, dryRun, env: this.nxEnv });
|
|
23
24
|
}
|
|
24
25
|
static generateTestUtils(config, monorepoPath, nx, dryRun = false) {
|
|
25
|
-
(0, shell_utils_1.runCommand)(`npx nx g @nx/js:lib ${config.name} --bundler=none --linter=eslint --unitTestRunner=jest --importPath=${config.importPath} --no-interactive`, { cwd: monorepoPath, dryRun });
|
|
26
|
+
(0, shell_utils_1.runCommand)(`npx nx g @nx/js:lib ${config.name} --bundler=none --linter=eslint --unitTestRunner=jest --importPath=${config.importPath} --no-interactive`, { cwd: monorepoPath, dryRun, env: this.nxEnv });
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
exports.ProjectGenerator = ProjectGenerator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-generator.js","sourceRoot":"","sources":["../../../src/core/project-generator.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAGlD,MAAa,gBAAgB;
|
|
1
|
+
{"version":3,"file":"project-generator.js","sourceRoot":"","sources":["../../../src/core/project-generator.ts"],"names":[],"mappings":";;;AAAA,sDAAkD;AAGlD,MAAa,gBAAgB;IACnB,MAAM,CAAU,KAAK,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;IAEvD,MAAM,CAAC,aAAa,CAAC,MAAqB,EAAE,YAAoB,EAAE,EAAO,EAAE,MAAM,GAAG,KAAK;QACvF,IAAA,wBAAU,EACR,kCAAkC,MAAM,CAAC,IAAI,YAAY,EAAE,CAAC,KAAK,6BAA6B,EAAE,CAAC,OAAO,0DAA0D,EAAE,CAAC,aAAa,iBAAiB,MAAM,CAAC,UAAU,mBAAmB,EACvO,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,KAAK,EAAE,CAC/C,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,gBAAgB,CAAC,MAAqB,EAAE,YAAoB,EAAE,EAAO,EAAE,MAAM,GAAG,KAAK;QAC1F,IAAA,wBAAU,EACR,8BAA8B,MAAM,CAAC,IAAI,YAAY,EAAE,CAAC,KAAK,cAAc,EAAE,CAAC,OAAO,uDAAuD,MAAM,CAAC,UAAU,mBAAmB,EAChL,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,KAAK,EAAE,CAC/C,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,WAAW,CAAC,MAAqB,EAAE,YAAoB,EAAE,EAAO,EAAE,MAAM,GAAG,KAAK;QACrF,IAAA,wBAAU,EACR,iCAAiC,MAAM,CAAC,IAAI,gGAAgG,MAAM,CAAC,UAAU,mBAAmB,EAChL,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,KAAK,E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.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"generate-monorepo.d.ts","sourceRoot":"","sources":["../../src/generate-monorepo.ts"],"names":[],"mappings":"AA8BA,iBAAe,IAAI,kBA0rDlB;AAED,OAAO,EAAE,IAAI,EAAE,CAAC"}
|