@dotcms/create-app 1.2.5 → 1.2.6-next.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/README.md +110 -174
- package/index.js +1522 -0
- package/package.json +22 -25
- package/src/api/index.d.ts +0 -26
- package/src/api/index.js +0 -80
- package/src/api/index.js.map +0 -1
- package/src/asks.d.ts +0 -47
- package/src/asks.js +0 -222
- package/src/asks.js.map +0 -1
- package/src/constants/index.d.ts +0 -22
- package/src/constants/index.js +0 -151
- package/src/constants/index.js.map +0 -1
- package/src/errors/index.d.ts +0 -18
- package/src/errors/index.js +0 -40
- package/src/errors/index.js.map +0 -1
- package/src/git/index.d.ts +0 -8
- package/src/git/index.js +0 -64
- package/src/git/index.js.map +0 -1
- package/src/index.d.ts +0 -2
- package/src/index.js +0 -419
- package/src/index.js.map +0 -1
- package/src/types/index.d.ts +0 -69
- package/src/types/index.js +0 -3
- package/src/types/index.js.map +0 -1
- package/src/utils/index.d.ts +0 -78
- package/src/utils/index.js +0 -461
- package/src/utils/index.js.map +0 -1
- package/src/utils/validation.d.ts +0 -47
- package/src/utils/validation.js +0 -295
- package/src/utils/validation.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,26 +1,23 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"cfonts": "^3.3.1"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
2
|
+
"name": "@dotcms/create-app",
|
|
3
|
+
"version": "1.2.6-next.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"create-dotcms-app": "./index.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"*.js",
|
|
11
|
+
"README.md"
|
|
12
|
+
],
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"axios": "^1.13.2",
|
|
15
|
+
"chalk": "^5.6.2",
|
|
16
|
+
"commander": "^14.0.2",
|
|
17
|
+
"execa": "^9.6.0",
|
|
18
|
+
"fs-extra": "^11.3.2",
|
|
19
|
+
"inquirer": "^13.0.1",
|
|
20
|
+
"ora": "^9.0.0",
|
|
21
|
+
"cfonts": "^3.3.1"
|
|
22
|
+
}
|
|
23
|
+
}
|
package/src/api/index.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { type Result } from 'ts-results';
|
|
2
|
-
import { FailedToGetDemoSiteIdentifierError, FailedToSetUpUVEConfig } from '../errors';
|
|
3
|
-
import type { DemoSiteResponse, GetUserTokenRequest, UVEConfigRequest } from '../types';
|
|
4
|
-
export declare class DotCMSApi {
|
|
5
|
-
private static defaultTokenApi;
|
|
6
|
-
private static defaultDemoSiteApi;
|
|
7
|
-
private static defaultUveConfigApi;
|
|
8
|
-
/** Get authentication token */
|
|
9
|
-
static getAuthToken({ payload, url }: {
|
|
10
|
-
payload: GetUserTokenRequest;
|
|
11
|
-
url?: string;
|
|
12
|
-
}): Promise<Result<string, string>>;
|
|
13
|
-
/** Get demo site identifier */
|
|
14
|
-
static getDemoSiteIdentifier({ siteName, authenticationToken, url }: {
|
|
15
|
-
siteName: string;
|
|
16
|
-
authenticationToken: string;
|
|
17
|
-
url?: string;
|
|
18
|
-
}): Promise<Result<DemoSiteResponse, FailedToGetDemoSiteIdentifierError>>;
|
|
19
|
-
/** Setup UVE Config */
|
|
20
|
-
static setupUVEConfig({ payload, siteId, authenticationToken, url }: {
|
|
21
|
-
payload: UVEConfigRequest;
|
|
22
|
-
siteId: string;
|
|
23
|
-
authenticationToken: string;
|
|
24
|
-
url?: string;
|
|
25
|
-
}): Promise<Result<'Ok', FailedToSetUpUVEConfig>>;
|
|
26
|
-
}
|
package/src/api/index.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DotCMSApi = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const axios_1 = tslib_1.__importDefault(require("axios"));
|
|
6
|
-
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
7
|
-
const ts_results_1 = require("ts-results");
|
|
8
|
-
const constants_1 = require("../constants");
|
|
9
|
-
const errors_1 = require("../errors");
|
|
10
|
-
class DotCMSApi {
|
|
11
|
-
/** Get authentication token */
|
|
12
|
-
static async getAuthToken({ payload, url }) {
|
|
13
|
-
const endpoint = url || this.defaultTokenApi;
|
|
14
|
-
try {
|
|
15
|
-
const res = await axios_1.default.post(endpoint, payload);
|
|
16
|
-
return (0, ts_results_1.Ok)(res.data.entity.token);
|
|
17
|
-
}
|
|
18
|
-
catch (err) {
|
|
19
|
-
// Provide specific error messages based on error type
|
|
20
|
-
if (axios_1.default.isAxiosError(err)) {
|
|
21
|
-
if (err.response?.status === 401) {
|
|
22
|
-
return (0, ts_results_1.Err)(chalk_1.default.red('\n❌ Authentication failed\n\n') +
|
|
23
|
-
chalk_1.default.white('Invalid username or password.\n\n') +
|
|
24
|
-
chalk_1.default.yellow('Please check your credentials and try again:\n') +
|
|
25
|
-
chalk_1.default.white(' • Verify your username is correct\n') +
|
|
26
|
-
chalk_1.default.white(' • Ensure your password is correct\n') +
|
|
27
|
-
chalk_1.default.white(' • Check if your account is active\n'));
|
|
28
|
-
}
|
|
29
|
-
else if (err.code === 'ECONNREFUSED') {
|
|
30
|
-
return (0, ts_results_1.Err)(chalk_1.default.red('\n❌ Connection refused\n\n') +
|
|
31
|
-
chalk_1.default.white(`Could not connect to dotCMS at: ${endpoint}\n\n`) +
|
|
32
|
-
chalk_1.default.yellow('Please verify:\n') +
|
|
33
|
-
chalk_1.default.white(' • The URL is correct\n') +
|
|
34
|
-
chalk_1.default.white(' • The dotCMS instance is running\n') +
|
|
35
|
-
chalk_1.default.white(' • There are no firewall issues\n'));
|
|
36
|
-
}
|
|
37
|
-
else if (err.response) {
|
|
38
|
-
return (0, ts_results_1.Err)(chalk_1.default.red(`\n❌ Server error (${err.response.status})\n\n`) +
|
|
39
|
-
chalk_1.default.white('The dotCMS server returned an error.\n') +
|
|
40
|
-
chalk_1.default.gray(`Details: ${err.response.statusText || 'Unknown error'}\n`));
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
return (0, ts_results_1.Err)(chalk_1.default.red('\n❌ Failed to get authentication token\n\n') +
|
|
44
|
-
chalk_1.default.gray(err instanceof Error ? err.message : String(err)));
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
/** Get demo site identifier */
|
|
48
|
-
static async getDemoSiteIdentifier({ siteName, authenticationToken, url }) {
|
|
49
|
-
try {
|
|
50
|
-
const endpoint = (url || this.defaultDemoSiteApi) + siteName;
|
|
51
|
-
const res = await axios_1.default.get(endpoint, {
|
|
52
|
-
headers: { Authorization: `Bearer ${authenticationToken}` }
|
|
53
|
-
});
|
|
54
|
-
return (0, ts_results_1.Ok)(res.data);
|
|
55
|
-
}
|
|
56
|
-
catch (err) {
|
|
57
|
-
console.error('failed to get demo site identifier : ' + JSON.stringify(err));
|
|
58
|
-
return (0, ts_results_1.Err)(new errors_1.FailedToGetDemoSiteIdentifierError());
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
/** Setup UVE Config */
|
|
62
|
-
static async setupUVEConfig({ payload, siteId, authenticationToken, url }) {
|
|
63
|
-
try {
|
|
64
|
-
const endpoint = (url || this.defaultUveConfigApi) + siteId;
|
|
65
|
-
const res = await axios_1.default.post(endpoint, payload, {
|
|
66
|
-
headers: { Authorization: `Bearer ${authenticationToken}` }
|
|
67
|
-
});
|
|
68
|
-
return (0, ts_results_1.Ok)(res.data.entity);
|
|
69
|
-
}
|
|
70
|
-
catch (err) {
|
|
71
|
-
console.error('failed to setup UVE config' + JSON.stringify(err));
|
|
72
|
-
return (0, ts_results_1.Err)(new errors_1.FailedToSetUpUVEConfig());
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
exports.DotCMSApi = DotCMSApi;
|
|
77
|
-
DotCMSApi.defaultTokenApi = constants_1.DOTCMS_TOKEN_API;
|
|
78
|
-
DotCMSApi.defaultDemoSiteApi = constants_1.DOTCMS_DEMO_SITE;
|
|
79
|
-
DotCMSApi.defaultUveConfigApi = constants_1.DOTCMS_EMA_CONFIG_API;
|
|
80
|
-
//# sourceMappingURL=index.js.map
|
package/src/api/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/sdk/create-app/src/api/index.ts"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,0DAA0B;AAC1B,2CAAkD;AAElD,4CAAyF;AACzF,sCAAuF;AASvF,MAAa,SAAS;IAKlB,+BAA+B;IAC/B,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,EACtB,OAAO,EACP,GAAG,EAIN;QACG,MAAM,QAAQ,GAAG,GAAG,IAAI,IAAI,CAAC,eAAe,CAAC;QAE7C,IAAI,CAAC;YACD,MAAM,GAAG,GAAG,MAAM,eAAK,CAAC,IAAI,CAAuB,QAAQ,EAAE,OAAO,CAAC,CAAC;YACtE,OAAO,IAAA,eAAE,EAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACrC,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACX,sDAAsD;YACtD,IAAI,eAAK,CAAC,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC1B,IAAI,GAAG,CAAC,QAAQ,EAAE,MAAM,KAAK,GAAG,EAAE,CAAC;oBAC/B,OAAO,IAAA,gBAAG,EACN,eAA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CAAC;YAClE,OAAO,IAAA,gBAAG,EAAC,IAAI,+BAAsB,EAAE,CAAC,CAAC;QAC7C,CAAC;IACL,CAAC;;AAlGL,8BAmGC;AAlGkB,yBAAe,GAAG,4BAAgB,CAAC;AACnC,4BAAkB,GAAG,4BAAgB,CAAC;AACtC,6BAAmB,GAAG,iCAAqB,CAAC"}
|
package/src/asks.d.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { SupportedFrontEndFrameworks } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Ask interactively if framework not specified
|
|
4
|
-
*/
|
|
5
|
-
export declare function askFramework(): Promise<SupportedFrontEndFrameworks>;
|
|
6
|
-
/**
|
|
7
|
-
* Ask user name of the project
|
|
8
|
-
*/
|
|
9
|
-
export declare function askProjectName(): Promise<any>;
|
|
10
|
-
/**
|
|
11
|
-
* Ask user where to create the project
|
|
12
|
-
*/
|
|
13
|
-
export declare function askDirectory(): Promise<any>;
|
|
14
|
-
/**
|
|
15
|
-
* Ask user the url of the dotCMS instance
|
|
16
|
-
*/
|
|
17
|
-
export declare function askDotcmsCloudUrl(): Promise<any>;
|
|
18
|
-
/**
|
|
19
|
-
* Ask user the username of the dotCMS instance
|
|
20
|
-
*/
|
|
21
|
-
export declare function askUserNameForDotcmsCloud(): Promise<any>;
|
|
22
|
-
/**
|
|
23
|
-
* Ask user the password of the dotCMS instance
|
|
24
|
-
*/
|
|
25
|
-
export declare function askPasswordForDotcmsCloud(): Promise<any>;
|
|
26
|
-
/**
|
|
27
|
-
* Ask if the user wants to use cloud instance or local dotcms
|
|
28
|
-
* Example:
|
|
29
|
-
* user enters: "y/n"
|
|
30
|
-
*/
|
|
31
|
-
/**
|
|
32
|
-
* Ask if the user has cloud or want to set local
|
|
33
|
-
*/
|
|
34
|
-
export declare function askCloudOrLocalInstance(): Promise<boolean>;
|
|
35
|
-
/**
|
|
36
|
-
* Prepare final project directory
|
|
37
|
-
* Example:
|
|
38
|
-
* user enters: "."
|
|
39
|
-
* projectName: "my-app"
|
|
40
|
-
* final path becomes "./my-app"
|
|
41
|
-
*
|
|
42
|
-
* @remarks
|
|
43
|
-
* - Prevents nested directories when basePath already ends with projectName
|
|
44
|
-
* - Example: basePath="/tmp/my-app" + projectName="my-app" → "/tmp/my-app" (not "/tmp/my-app/my-app")
|
|
45
|
-
* - Handles both absolute and relative paths correctly
|
|
46
|
-
*/
|
|
47
|
-
export declare function prepareDirectory(basePath: string, projectName: string): Promise<string>;
|
package/src/asks.js
DELETED
|
@@ -1,222 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.askFramework = askFramework;
|
|
4
|
-
exports.askProjectName = askProjectName;
|
|
5
|
-
exports.askDirectory = askDirectory;
|
|
6
|
-
exports.askDotcmsCloudUrl = askDotcmsCloudUrl;
|
|
7
|
-
exports.askUserNameForDotcmsCloud = askUserNameForDotcmsCloud;
|
|
8
|
-
exports.askPasswordForDotcmsCloud = askPasswordForDotcmsCloud;
|
|
9
|
-
exports.askCloudOrLocalInstance = askCloudOrLocalInstance;
|
|
10
|
-
exports.prepareDirectory = prepareDirectory;
|
|
11
|
-
const tslib_1 = require("tslib");
|
|
12
|
-
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
13
|
-
const inquirer_1 = tslib_1.__importDefault(require("inquirer"));
|
|
14
|
-
const path_1 = tslib_1.__importDefault(require("path"));
|
|
15
|
-
const constants_1 = require("./constants");
|
|
16
|
-
const validation_1 = require("./utils/validation");
|
|
17
|
-
/**
|
|
18
|
-
* Ask interactively if framework not specified
|
|
19
|
-
*/
|
|
20
|
-
async function askFramework() {
|
|
21
|
-
const ans = await inquirer_1.default.prompt([
|
|
22
|
-
{
|
|
23
|
-
type: 'select',
|
|
24
|
-
name: 'frameworks',
|
|
25
|
-
message: 'Select your frontend framework:',
|
|
26
|
-
choices: constants_1.FRAMEWORKS_CHOICES
|
|
27
|
-
}
|
|
28
|
-
]);
|
|
29
|
-
// Return the first selected framework (checkbox returns array)
|
|
30
|
-
return ans.frameworks;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Ask user name of the project
|
|
34
|
-
*/
|
|
35
|
-
async function askProjectName() {
|
|
36
|
-
const ans = await inquirer_1.default.prompt([
|
|
37
|
-
{
|
|
38
|
-
type: 'input',
|
|
39
|
-
name: 'projectName',
|
|
40
|
-
message: 'What is your project name ?',
|
|
41
|
-
default: `my-dotcms-app`,
|
|
42
|
-
validate: (input) => {
|
|
43
|
-
try {
|
|
44
|
-
(0, validation_1.validateProjectName)(input);
|
|
45
|
-
return true;
|
|
46
|
-
}
|
|
47
|
-
catch (error) {
|
|
48
|
-
return error instanceof Error ? error.message : String(error);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
]);
|
|
53
|
-
return ans.projectName;
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Ask user where to create the project
|
|
57
|
-
*/
|
|
58
|
-
async function askDirectory() {
|
|
59
|
-
const ans = await inquirer_1.default.prompt([
|
|
60
|
-
{
|
|
61
|
-
type: 'input',
|
|
62
|
-
name: 'directory',
|
|
63
|
-
message: 'Where should we create your project?',
|
|
64
|
-
default: `.`
|
|
65
|
-
}
|
|
66
|
-
]);
|
|
67
|
-
return ans.directory;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Ask user the url of the dotCMS instance
|
|
71
|
-
*/
|
|
72
|
-
async function askDotcmsCloudUrl() {
|
|
73
|
-
const ans = await inquirer_1.default.prompt([
|
|
74
|
-
{
|
|
75
|
-
type: 'input',
|
|
76
|
-
name: 'url',
|
|
77
|
-
message: 'dotCMS instance URL:',
|
|
78
|
-
default: `https://demo.dotcms.com`,
|
|
79
|
-
validate: (input) => {
|
|
80
|
-
try {
|
|
81
|
-
(0, validation_1.validateUrl)(input);
|
|
82
|
-
return true;
|
|
83
|
-
}
|
|
84
|
-
catch (error) {
|
|
85
|
-
return error instanceof Error ? error.message : String(error);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
]);
|
|
90
|
-
return ans.url;
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* Ask user the username of the dotCMS instance
|
|
94
|
-
*/
|
|
95
|
-
async function askUserNameForDotcmsCloud() {
|
|
96
|
-
const ans = await inquirer_1.default.prompt([
|
|
97
|
-
{
|
|
98
|
-
type: 'input',
|
|
99
|
-
name: 'username',
|
|
100
|
-
message: 'Username:',
|
|
101
|
-
default: `admin@dotcms.com`,
|
|
102
|
-
validate: (input) => {
|
|
103
|
-
if (!input || input.trim() === '') {
|
|
104
|
-
return 'Username cannot be empty';
|
|
105
|
-
}
|
|
106
|
-
return true;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
]);
|
|
110
|
-
return ans.username;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Ask user the password of the dotCMS instance
|
|
114
|
-
*/
|
|
115
|
-
async function askPasswordForDotcmsCloud() {
|
|
116
|
-
const ans = await inquirer_1.default.prompt([
|
|
117
|
-
{
|
|
118
|
-
type: 'password',
|
|
119
|
-
name: 'password',
|
|
120
|
-
mask: '•',
|
|
121
|
-
message: 'Password:',
|
|
122
|
-
default: `admin`,
|
|
123
|
-
validate: (input) => {
|
|
124
|
-
if (!input || input.trim() === '') {
|
|
125
|
-
return 'Password cannot be empty';
|
|
126
|
-
}
|
|
127
|
-
return true;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
]);
|
|
131
|
-
return ans.password;
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* Ask if the user wants to use cloud instance or local dotcms
|
|
135
|
-
* Example:
|
|
136
|
-
* user enters: "y/n"
|
|
137
|
-
*/
|
|
138
|
-
// export async function askCloudOrLocalInstance(): Promise<boolean> {
|
|
139
|
-
// const ans = await inquirer.prompt([
|
|
140
|
-
// {
|
|
141
|
-
// type: 'confirm',
|
|
142
|
-
// name: 'confirm',
|
|
143
|
-
// message: `Running dotCMS in the cloud? If not, no worries — select No to spin up dotCMS using Docker.`,
|
|
144
|
-
// default: false
|
|
145
|
-
// }
|
|
146
|
-
// ]);
|
|
147
|
-
// return ans.confirm;
|
|
148
|
-
// }
|
|
149
|
-
//
|
|
150
|
-
/**
|
|
151
|
-
* Ask if the user has cloud or want to set local
|
|
152
|
-
*/
|
|
153
|
-
async function askCloudOrLocalInstance() {
|
|
154
|
-
const ans = await inquirer_1.default.prompt([
|
|
155
|
-
{
|
|
156
|
-
type: 'select',
|
|
157
|
-
name: 'isCloud',
|
|
158
|
-
message: 'Do you have an existing dotCMS instance?',
|
|
159
|
-
choices: [
|
|
160
|
-
{ name: 'Yes - I have a dotCMS instance URL', value: true },
|
|
161
|
-
{ name: 'No - Spin up dotCMS locally with Docker', value: false }
|
|
162
|
-
]
|
|
163
|
-
}
|
|
164
|
-
]);
|
|
165
|
-
// Return the first selected framework (checkbox returns array)
|
|
166
|
-
return ans.isCloud;
|
|
167
|
-
}
|
|
168
|
-
/**
|
|
169
|
-
* Prepare final project directory
|
|
170
|
-
* Example:
|
|
171
|
-
* user enters: "."
|
|
172
|
-
* projectName: "my-app"
|
|
173
|
-
* final path becomes "./my-app"
|
|
174
|
-
*
|
|
175
|
-
* @remarks
|
|
176
|
-
* - Prevents nested directories when basePath already ends with projectName
|
|
177
|
-
* - Example: basePath="/tmp/my-app" + projectName="my-app" → "/tmp/my-app" (not "/tmp/my-app/my-app")
|
|
178
|
-
* - Handles both absolute and relative paths correctly
|
|
179
|
-
*/
|
|
180
|
-
async function prepareDirectory(basePath, projectName) {
|
|
181
|
-
// Resolve basePath to absolute path for consistent comparison
|
|
182
|
-
const resolvedBasePath = path_1.default.resolve(basePath);
|
|
183
|
-
const basePathDirName = path_1.default.basename(resolvedBasePath);
|
|
184
|
-
// Check if basePath already ends with the project name
|
|
185
|
-
// This prevents nested directories like "/tmp/my-app/my-app"
|
|
186
|
-
let targetPath;
|
|
187
|
-
if (basePathDirName === projectName) {
|
|
188
|
-
// User specified full path including project name (e.g., "-d /tmp/my-app" with projectName="my-app")
|
|
189
|
-
targetPath = resolvedBasePath;
|
|
190
|
-
}
|
|
191
|
-
else {
|
|
192
|
-
// User specified parent directory (e.g., "-d /tmp" with projectName="my-app")
|
|
193
|
-
targetPath = path_1.default.resolve(resolvedBasePath, projectName);
|
|
194
|
-
}
|
|
195
|
-
// If path doesn't exist → create
|
|
196
|
-
if (!fs_extra_1.default.existsSync(targetPath)) {
|
|
197
|
-
fs_extra_1.default.mkdirSync(targetPath, { recursive: true });
|
|
198
|
-
return targetPath;
|
|
199
|
-
}
|
|
200
|
-
// Directory exists → check if empty
|
|
201
|
-
const files = fs_extra_1.default.readdirSync(targetPath);
|
|
202
|
-
if (files.length === 0) {
|
|
203
|
-
return targetPath; // empty → OK
|
|
204
|
-
}
|
|
205
|
-
// Directory not empty → warn user
|
|
206
|
-
const ans = await inquirer_1.default.prompt([
|
|
207
|
-
{
|
|
208
|
-
type: 'confirm',
|
|
209
|
-
name: 'confirm',
|
|
210
|
-
message: `⚠️ Directory "${targetPath}" is not empty. All files inside will be deleted. Continue?`,
|
|
211
|
-
default: false
|
|
212
|
-
}
|
|
213
|
-
]);
|
|
214
|
-
if (!ans.confirm) {
|
|
215
|
-
console.log('❌ Operation cancelled.');
|
|
216
|
-
process.exit(1);
|
|
217
|
-
}
|
|
218
|
-
// Empty directory
|
|
219
|
-
await fs_extra_1.default.emptyDir(targetPath);
|
|
220
|
-
return targetPath;
|
|
221
|
-
}
|
|
222
|
-
//# sourceMappingURL=asks.js.map
|
package/src/asks.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"asks.js","sourceRoot":"","sources":["../../../../../libs/sdk/create-app/src/asks.ts"],"names":[],"mappings":";;AAaA,oCAYC;AAID,wCAkBC;AAKD,oCAUC;AAKD,8CAkBC;AAKD,8DAgBC;AAKD,8DAiBC;AAsBD,0DAeC;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,CAAC;QAClC,qGAAqG;QACrG,UAAU,GAAG,gBAAgB,CAAC;IAClC,CAAC;SAAM,CAAC;QACJ,8EAA8E;QAC9E,UAAU,GAAG,cAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE,WAAW,CAAC,CAAC;IAC7D,CAAC;IAED,iCAAiC;IACjC,IAAI,CAAC,kBAAE,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;QAC7B,kBAAE,CAAC,SAAS,CAAC,UAAU,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QAC9C,OAAO,UAAU,CAAC;IACtB,CAAC;IAED,oCAAoC;IACpC,MAAM,KAAK,GAAG,kBAAE,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAEzC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACrB,OAAO,UAAU,CAAC,CAAC,aAAa;IACpC,CAAC;IAED,kCAAkC;IAClC,MAAM,GAAG,GAAG,MAAM,kBAAQ,CAAC,MAAM,CAAC;QAC9B;YACI,IAAI,EAAE,SAAS;YACf,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,kBAAkB,UAAU,6DAA6D;YAClG,OAAO,EAAE,KAAK;SACjB;KACJ,CAAC,CAAC;IAEH,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC;QACf,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;QACtC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;IAED,kBAAkB;IAClB,MAAM,kBAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAE9B,OAAO,UAAU,CAAC;AACtB,CAAC"}
|
package/src/constants/index.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { FrameworkChoices, SupportedFrontEndFrameworks } from '../types';
|
|
2
|
-
export declare const DOTCMS_HOST = "http://localhost:8082";
|
|
3
|
-
export declare const DOTCMS_USER: {
|
|
4
|
-
username: string;
|
|
5
|
-
password: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const DOTCMS_HEALTH_API = "http://localhost:8082/api/v1/appconfiguration";
|
|
8
|
-
export declare const DOTCMS_TOKEN_API = "http://localhost:8082/api/v1/authentication/api-token";
|
|
9
|
-
export declare const DOTCMS_EMA_CONFIG_API = "http://localhost:8082/api/v1/apps/dotema-config-v2/";
|
|
10
|
-
export declare const DOTCMS_DEMO_SITE = "http://localhost:8082/api/v1/site/";
|
|
11
|
-
export declare const CLOUD_HEALTH_CHECK_RETRIES = 5;
|
|
12
|
-
export declare const LOCAL_HEALTH_CHECK_RETRIES = 60;
|
|
13
|
-
export declare const FRAMEWORKS: SupportedFrontEndFrameworks[];
|
|
14
|
-
export declare const FRAMEWORKS_CHOICES: FrameworkChoices[];
|
|
15
|
-
export declare const NEXTJS_DEPENDENCIES: string[];
|
|
16
|
-
export declare const NEXTJS_DEPENDENCIES_DEV: string[];
|
|
17
|
-
export declare const ASTRO_DEPENDENCIES: string[];
|
|
18
|
-
export declare const ASTRO_DEPENDENCIES_DEV: string[];
|
|
19
|
-
export declare const ANGULAR_DEPENDENCIES: string[];
|
|
20
|
-
export declare const ANGULAR_DEPENDENCIES_DEV: string[];
|
|
21
|
-
export declare const ANGULAR_SSR_DEPENDENCIES: string[];
|
|
22
|
-
export declare const ANGULAR_SSR_DEPENDENCIES_DEV: string[];
|
package/src/constants/index.js
DELETED
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ANGULAR_SSR_DEPENDENCIES_DEV = exports.ANGULAR_SSR_DEPENDENCIES = exports.ANGULAR_DEPENDENCIES_DEV = exports.ANGULAR_DEPENDENCIES = exports.ASTRO_DEPENDENCIES_DEV = exports.ASTRO_DEPENDENCIES = exports.NEXTJS_DEPENDENCIES_DEV = exports.NEXTJS_DEPENDENCIES = exports.FRAMEWORKS_CHOICES = exports.FRAMEWORKS = exports.LOCAL_HEALTH_CHECK_RETRIES = exports.CLOUD_HEALTH_CHECK_RETRIES = exports.DOTCMS_DEMO_SITE = exports.DOTCMS_EMA_CONFIG_API = exports.DOTCMS_TOKEN_API = exports.DOTCMS_HEALTH_API = exports.DOTCMS_USER = exports.DOTCMS_HOST = void 0;
|
|
4
|
-
exports.DOTCMS_HOST = 'http://localhost:8082';
|
|
5
|
-
exports.DOTCMS_USER = {
|
|
6
|
-
username: 'admin@dotcms.com',
|
|
7
|
-
password: 'admin'
|
|
8
|
-
};
|
|
9
|
-
// USED APIS
|
|
10
|
-
// Note: Using /appconfiguration instead of /probes/alive because the probe endpoints
|
|
11
|
-
// have IP ACL restrictions that block requests from Docker host. See GitHub issue #34509
|
|
12
|
-
exports.DOTCMS_HEALTH_API = `${exports.DOTCMS_HOST}/api/v1/appconfiguration`;
|
|
13
|
-
exports.DOTCMS_TOKEN_API = `${exports.DOTCMS_HOST}/api/v1/authentication/api-token`;
|
|
14
|
-
exports.DOTCMS_EMA_CONFIG_API = `${exports.DOTCMS_HOST}/api/v1/apps/dotema-config-v2/`;
|
|
15
|
-
exports.DOTCMS_DEMO_SITE = `${exports.DOTCMS_HOST}/api/v1/site/`;
|
|
16
|
-
// Health check configuration
|
|
17
|
-
exports.CLOUD_HEALTH_CHECK_RETRIES = 5; // Retries for cloud instances (faster expected startup)
|
|
18
|
-
exports.LOCAL_HEALTH_CHECK_RETRIES = 60; // Retries for local Docker (slower startup)
|
|
19
|
-
// App constants
|
|
20
|
-
exports.FRAMEWORKS = [
|
|
21
|
-
'nextjs',
|
|
22
|
-
'astro',
|
|
23
|
-
'angular',
|
|
24
|
-
'angular-ssr'
|
|
25
|
-
];
|
|
26
|
-
exports.FRAMEWORKS_CHOICES = [
|
|
27
|
-
{ name: 'Next.js', value: 'nextjs' },
|
|
28
|
-
{ name: 'Astro', value: 'astro' },
|
|
29
|
-
{ name: 'Angular', value: 'angular' },
|
|
30
|
-
{ name: 'Angular (SSR)', value: 'angular-ssr' }
|
|
31
|
-
];
|
|
32
|
-
exports.NEXTJS_DEPENDENCIES = [
|
|
33
|
-
'@dotcms/client',
|
|
34
|
-
'@dotcms/experiments',
|
|
35
|
-
'@dotcms/react',
|
|
36
|
-
'@dotcms/types',
|
|
37
|
-
'@dotcms/uve',
|
|
38
|
-
'@tinymce/tinymce-react',
|
|
39
|
-
'next',
|
|
40
|
-
'react',
|
|
41
|
-
'react-dom'
|
|
42
|
-
];
|
|
43
|
-
exports.NEXTJS_DEPENDENCIES_DEV = [
|
|
44
|
-
'@tailwindcss/postcss',
|
|
45
|
-
'@tailwindcss/typography',
|
|
46
|
-
'eslint',
|
|
47
|
-
'eslint-config-next',
|
|
48
|
-
'postcss',
|
|
49
|
-
'prettier',
|
|
50
|
-
'tailwindcss'
|
|
51
|
-
];
|
|
52
|
-
exports.ASTRO_DEPENDENCIES = [
|
|
53
|
-
'@astrojs/check',
|
|
54
|
-
'@astrojs/react',
|
|
55
|
-
'@astrojs/ts-plugin',
|
|
56
|
-
'@astrojs/vercel',
|
|
57
|
-
'@dotcms/client',
|
|
58
|
-
'@dotcms/react',
|
|
59
|
-
'@dotcms/types',
|
|
60
|
-
'@dotcms/uve',
|
|
61
|
-
'@tailwindcss/typography',
|
|
62
|
-
'@tailwindcss/vite',
|
|
63
|
-
'@tinymce/tinymce-react',
|
|
64
|
-
'@types/react',
|
|
65
|
-
'@types/react-dom',
|
|
66
|
-
'astro',
|
|
67
|
-
'dotenv',
|
|
68
|
-
'react',
|
|
69
|
-
'react-dom',
|
|
70
|
-
'tailwindcss',
|
|
71
|
-
'typescript'
|
|
72
|
-
];
|
|
73
|
-
exports.ASTRO_DEPENDENCIES_DEV = [
|
|
74
|
-
'@types/node',
|
|
75
|
-
'prettier',
|
|
76
|
-
'prettier-plugin-astro'
|
|
77
|
-
];
|
|
78
|
-
exports.ANGULAR_DEPENDENCIES = [
|
|
79
|
-
'@angular/animations',
|
|
80
|
-
'@angular/common',
|
|
81
|
-
'@angular/compiler',
|
|
82
|
-
'@angular/core',
|
|
83
|
-
'@angular/forms',
|
|
84
|
-
'@angular/platform-browser',
|
|
85
|
-
'@angular/platform-browser-dynamic',
|
|
86
|
-
'@angular/router',
|
|
87
|
-
'@dotcms/angular',
|
|
88
|
-
'@dotcms/client',
|
|
89
|
-
'@dotcms/types',
|
|
90
|
-
'@dotcms/uve',
|
|
91
|
-
'rxjs',
|
|
92
|
-
'tslib',
|
|
93
|
-
'zone.js'
|
|
94
|
-
];
|
|
95
|
-
exports.ANGULAR_DEPENDENCIES_DEV = [
|
|
96
|
-
'@angular/build',
|
|
97
|
-
'@angular/cli',
|
|
98
|
-
'@angular/compiler-cli',
|
|
99
|
-
'@tailwindcss/typography',
|
|
100
|
-
'@types/jasmine',
|
|
101
|
-
'autoprefixer',
|
|
102
|
-
'jasmine-core',
|
|
103
|
-
'karma',
|
|
104
|
-
'karma-chrome-launcher',
|
|
105
|
-
'karma-coverage',
|
|
106
|
-
'karma-jasmine',
|
|
107
|
-
'karma-jasmine-html-reporter',
|
|
108
|
-
'postcss',
|
|
109
|
-
'tailwindcss',
|
|
110
|
-
'typescript'
|
|
111
|
-
];
|
|
112
|
-
exports.ANGULAR_SSR_DEPENDENCIES = [
|
|
113
|
-
'@angular/common',
|
|
114
|
-
'@angular/compiler',
|
|
115
|
-
'@angular/core',
|
|
116
|
-
'@angular/forms',
|
|
117
|
-
'@angular/platform-browser',
|
|
118
|
-
'@angular/platform-server',
|
|
119
|
-
'@angular/router',
|
|
120
|
-
'@angular/ssr',
|
|
121
|
-
'@dotcms/angular',
|
|
122
|
-
'@dotcms/client',
|
|
123
|
-
'@dotcms/types',
|
|
124
|
-
'@dotcms/uve',
|
|
125
|
-
'@tailwindcss/postcss',
|
|
126
|
-
'@types/dotenv',
|
|
127
|
-
'dotenv',
|
|
128
|
-
'express',
|
|
129
|
-
'postcss',
|
|
130
|
-
'rxjs',
|
|
131
|
-
'tailwindcss',
|
|
132
|
-
'tslib',
|
|
133
|
-
'zone.js'
|
|
134
|
-
];
|
|
135
|
-
exports.ANGULAR_SSR_DEPENDENCIES_DEV = [
|
|
136
|
-
'@angular/build',
|
|
137
|
-
'@angular/cli',
|
|
138
|
-
'@angular/compiler-cli',
|
|
139
|
-
'@tailwindcss/typography',
|
|
140
|
-
'@types/express',
|
|
141
|
-
'@types/jasmine',
|
|
142
|
-
'@types/node',
|
|
143
|
-
'jasmine-core',
|
|
144
|
-
'karma',
|
|
145
|
-
'karma-chrome-launcher',
|
|
146
|
-
'karma-coverage',
|
|
147
|
-
'karma-jasmine',
|
|
148
|
-
'karma-jasmine-html-reporter',
|
|
149
|
-
'typescript'
|
|
150
|
-
];
|
|
151
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../libs/sdk/create-app/src/constants/index.ts"],"names":[],"mappings":";;;AAEa,QAAA,WAAW,GAAG,uBAAuB,CAAC;AACtC,QAAA,WAAW,GAAG;IACvB,QAAQ,EAAE,kBAAkB;IAC5B,QAAQ,EAAE,OAAO;CACpB,CAAC;AAEF,YAAY;AACZ,qFAAqF;AACrF,yFAAyF;AAC5E,QAAA,iBAAiB,GAAG,GAAG,mBAAW,0BAA0B,CAAC;AAC7D,QAAA,gBAAgB,GAAG,GAAG,mBAAW,kCAAkC,CAAC;AACpE,QAAA,qBAAqB,GAAG,GAAG,mBAAW,gCAAgC,CAAC;AACvE,QAAA,gBAAgB,GAAG,GAAG,mBAAW,eAAe,CAAC;AAE9D,6BAA6B;AAChB,QAAA,0BAA0B,GAAG,CAAC,CAAC,CAAC,wDAAwD;AACxF,QAAA,0BAA0B,GAAG,EAAE,CAAC,CAAC,4CAA4C;AAE1F,gBAAgB;AACH,QAAA,UAAU,GAAkC;IACrD,QAAQ;IACR,OAAO;IACP,SAAS;IACT,aAAa;CAChB,CAAC;AAEW,QAAA,kBAAkB,GAAuB;IAClD,EAAE,IAAI,EAAE,SAAS,EA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IACvB,gBAAgB;IAChB,eAAe;IACf,6BAA6B;IAC7B,SAAS;IACT,aAAa;IACb,YAAY;CACf,CAAC;AAEW,QAAA,wBAAwB,GAAa;IAC9C,iBAAiB;IACjB,mBAAmB;IACnB,eAAe;IACf,gBAAgB;IAChB,2BAA2B;IAC3B,0BAA0B;IAC1B,iBAAiB;IACjB,cAAc;IACd,iBAAiB;IACjB,gBAAgB;IAChB,eAAe;IACf,aAAa;IACb,sBAAsB;IACtB,eAAe;IACf,QAAQ;IACR,SAAS;IACT,SAAS;IACT,MAAM;IACN,aAAa;IACb,OAAO;IACP,SAAS;CACZ,CAAC;AAEW,QAAA,4BAA4B,GAAa;IAClD,gBAAgB;IAChB,cAAc;IACd,uBAAuB;IACvB,yBAAyB;IACzB,gBAAgB;IAChB,gBAAgB;IAChB,aAAa;IACb,cAAc;IACd,OAAO;IACP,uBAAuB;IACvB,gBAAgB;IAChB,eAAe;IACf,6BAA6B;IAC7B,YAAY;CACf,CAAC"}
|
package/src/errors/index.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare class FailedToCreateFrontendProjectError extends Error {
|
|
2
|
-
constructor(framework: string);
|
|
3
|
-
}
|
|
4
|
-
export declare class DockerCliNotInstalledError extends Error {
|
|
5
|
-
constructor();
|
|
6
|
-
}
|
|
7
|
-
export declare class FailedToDownloadDockerComposeError extends Error {
|
|
8
|
-
constructor();
|
|
9
|
-
}
|
|
10
|
-
export declare class FailedToGetDotcmsTokenError extends Error {
|
|
11
|
-
constructor();
|
|
12
|
-
}
|
|
13
|
-
export declare class FailedToSetUpUVEConfig extends Error {
|
|
14
|
-
constructor();
|
|
15
|
-
}
|
|
16
|
-
export declare class FailedToGetDemoSiteIdentifierError extends Error {
|
|
17
|
-
constructor();
|
|
18
|
-
}
|