@sitecore-content-sdk/cli 1.3.0-canary.9 → 1.3.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/LICENSE.txt +202 -202
- package/README.md +5 -5
- package/dist/cjs/bin/sitecore-tools.js +77 -77
- package/dist/cjs/cli.js +69 -69
- package/dist/cjs/scripts/index.js +40 -40
- package/dist/cjs/scripts/project/build.js +42 -42
- package/dist/cjs/scripts/project/component/add.js +241 -236
- package/dist/cjs/scripts/project/component/generate-map.js +70 -68
- package/dist/cjs/scripts/project/component/index.js +57 -57
- package/dist/cjs/scripts/project/component/scaffold.js +69 -66
- package/dist/cjs/scripts/project/index.js +56 -56
- package/dist/cjs/utils/load-config.js +42 -42
- package/dist/cjs/utils/process-env.js +70 -70
- package/dist/cjs/utils/watch-items.js +18 -18
- package/dist/esm/cli.js +63 -63
- package/dist/esm/scripts/index.js +4 -4
- package/dist/esm/scripts/project/build.js +35 -35
- package/dist/esm/scripts/project/component/add.js +198 -193
- package/dist/esm/scripts/project/component/generate-map.js +62 -60
- package/dist/esm/scripts/project/component/index.js +21 -21
- package/dist/esm/scripts/project/component/scaffold.js +61 -58
- package/dist/esm/scripts/project/index.js +20 -20
- package/dist/esm/utils/load-config.js +36 -36
- package/dist/esm/utils/process-env.js +31 -31
- package/dist/esm/utils/watch-items.js +12 -12
- package/package.json +79 -79
- package/types/bin/sitecore-tools.d.ts +3 -2
- package/types/bin/sitecore-tools.d.ts.map +1 -0
- package/types/cli.d.ts +14 -13
- package/types/cli.d.ts.map +1 -0
- package/types/scripts/index.d.ts +3 -2
- package/types/scripts/index.d.ts.map +1 -0
- package/types/scripts/project/build.d.ts +25 -24
- package/types/scripts/project/build.d.ts.map +1 -0
- package/types/scripts/project/component/add.d.ts +59 -58
- package/types/scripts/project/component/add.d.ts.map +1 -0
- package/types/scripts/project/component/generate-map.d.ts +33 -32
- package/types/scripts/project/component/generate-map.d.ts.map +1 -0
- package/types/scripts/project/component/index.d.ts +6 -5
- package/types/scripts/project/component/index.d.ts.map +1 -0
- package/types/scripts/project/component/scaffold.d.ts +45 -44
- package/types/scripts/project/component/scaffold.d.ts.map +1 -0
- package/types/scripts/project/index.d.ts +6 -5
- package/types/scripts/project/index.d.ts.map +1 -0
- package/types/utils/load-config.d.ts +9 -8
- package/types/utils/load-config.d.ts.map +1 -0
- package/types/utils/process-env.d.ts +9 -8
- package/types/utils/process-env.d.ts.map +1 -0
- package/types/utils/watch-items.d.ts +7 -6
- package/types/utils/watch-items.d.ts.map +1 -0
package/package.json
CHANGED
|
@@ -1,79 +1,79 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@sitecore-content-sdk/cli",
|
|
3
|
-
"version": "1.3.0
|
|
4
|
-
"description": "Sitecore Content SDK CLI",
|
|
5
|
-
"main": "dist/cjs/cli.js",
|
|
6
|
-
"module": "dist/esm/cli.js",
|
|
7
|
-
"sideEffects": false,
|
|
8
|
-
"publishConfig": {
|
|
9
|
-
"access": "public",
|
|
10
|
-
"registry": "https://registry.npmjs.org/"
|
|
11
|
-
},
|
|
12
|
-
"scripts": {
|
|
13
|
-
"build": "npm run clean && tsc -p tsconfig.json && tsc -p tsconfig-esm.json",
|
|
14
|
-
"clean": "del-cli dist types",
|
|
15
|
-
"lint": "eslint \"./src/**/*.ts\"",
|
|
16
|
-
"sitecore-tools": "node ./dist/cjs/bin/sitecore-tools.js",
|
|
17
|
-
"test": "mocha --require ts-node/register/transpile-only \"./src/**/*.test.ts\"",
|
|
18
|
-
"coverage": "nyc --require ts-node/register/transpile-only npm test"
|
|
19
|
-
},
|
|
20
|
-
"engines": {
|
|
21
|
-
"node": ">=22"
|
|
22
|
-
},
|
|
23
|
-
"preferGlobal": true,
|
|
24
|
-
"bin": {
|
|
25
|
-
"sitecore-tools": "./dist/cjs/bin/sitecore-tools.js"
|
|
26
|
-
},
|
|
27
|
-
"author": {
|
|
28
|
-
"name": "Sitecore Corporation",
|
|
29
|
-
"url": "https://doc.sitecore.com/xmc/en/developers/content-sdk/index.html"
|
|
30
|
-
},
|
|
31
|
-
"license": "Apache-2.0",
|
|
32
|
-
"homepage": "https://doc.sitecore.com/xmc/en/developers/content-sdk/index.html",
|
|
33
|
-
"bugs": {
|
|
34
|
-
"url": "https://github.com/sitecore/content-sdk/issues"
|
|
35
|
-
},
|
|
36
|
-
"dependencies": {
|
|
37
|
-
"@sitecore-content-sdk/core": "1.3.0
|
|
38
|
-
"chokidar": "^4.0.3",
|
|
39
|
-
"dotenv": "^16.5.0",
|
|
40
|
-
"dotenv-expand": "^12.0.2",
|
|
41
|
-
"inquirer": "^12.9.6",
|
|
42
|
-
"resolve": "^1.22.10",
|
|
43
|
-
"tmp": "^0.2.3",
|
|
44
|
-
"tsx": "^4.19.4",
|
|
45
|
-
"yargs": "^17.7.2"
|
|
46
|
-
},
|
|
47
|
-
"devDependencies": {
|
|
48
|
-
"@stylistic/eslint-plugin": "^5.2.2",
|
|
49
|
-
"@types/chai": "^5.2.2",
|
|
50
|
-
"@types/inquirer": "^9.0.9",
|
|
51
|
-
"@types/mocha": "^10.0.10",
|
|
52
|
-
"@types/node": "^22.15.13",
|
|
53
|
-
"@types/resolve": "^1.20.6",
|
|
54
|
-
"@types/sinon": "^17.0.4",
|
|
55
|
-
"@types/tmp": "^0.2.6",
|
|
56
|
-
"@types/yargs": "^17.0.33",
|
|
57
|
-
"@typescript-eslint/eslint-plugin": "8.39.0",
|
|
58
|
-
"@typescript-eslint/parser": "8.39.0",
|
|
59
|
-
"chai": "^4.4.1",
|
|
60
|
-
"del-cli": "^6.0.0",
|
|
61
|
-
"eslint": "^9.32.0",
|
|
62
|
-
"eslint-config-prettier": "^10.1.8",
|
|
63
|
-
"eslint-plugin-import": "2.32.0",
|
|
64
|
-
"eslint-plugin-jsdoc": "52.0.3",
|
|
65
|
-
"eslint-plugin-prettier": "^4.0.0",
|
|
66
|
-
"mocha": "^11.2.2",
|
|
67
|
-
"nyc": "^17.1.0",
|
|
68
|
-
"prettier": "^2.8.0",
|
|
69
|
-
"proxyquire": "^2.1.3",
|
|
70
|
-
"sinon": "^20.0.0",
|
|
71
|
-
"ts-node": "^10.9.1",
|
|
72
|
-
"typescript": "~5.8.3"
|
|
73
|
-
},
|
|
74
|
-
"gitHead": "
|
|
75
|
-
"files": [
|
|
76
|
-
"dist",
|
|
77
|
-
"types"
|
|
78
|
-
]
|
|
79
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@sitecore-content-sdk/cli",
|
|
3
|
+
"version": "1.3.0",
|
|
4
|
+
"description": "Sitecore Content SDK CLI",
|
|
5
|
+
"main": "dist/cjs/cli.js",
|
|
6
|
+
"module": "dist/esm/cli.js",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"publishConfig": {
|
|
9
|
+
"access": "public",
|
|
10
|
+
"registry": "https://registry.npmjs.org/"
|
|
11
|
+
},
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "npm run clean && tsc -p tsconfig.json && tsc -p tsconfig-esm.json",
|
|
14
|
+
"clean": "del-cli dist types",
|
|
15
|
+
"lint": "eslint \"./src/**/*.ts\"",
|
|
16
|
+
"sitecore-tools": "node ./dist/cjs/bin/sitecore-tools.js",
|
|
17
|
+
"test": "mocha --require ts-node/register/transpile-only \"./src/**/*.test.ts\"",
|
|
18
|
+
"coverage": "nyc --require ts-node/register/transpile-only npm test"
|
|
19
|
+
},
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=22"
|
|
22
|
+
},
|
|
23
|
+
"preferGlobal": true,
|
|
24
|
+
"bin": {
|
|
25
|
+
"sitecore-tools": "./dist/cjs/bin/sitecore-tools.js"
|
|
26
|
+
},
|
|
27
|
+
"author": {
|
|
28
|
+
"name": "Sitecore Corporation",
|
|
29
|
+
"url": "https://doc.sitecore.com/xmc/en/developers/content-sdk/index.html"
|
|
30
|
+
},
|
|
31
|
+
"license": "Apache-2.0",
|
|
32
|
+
"homepage": "https://doc.sitecore.com/xmc/en/developers/content-sdk/index.html",
|
|
33
|
+
"bugs": {
|
|
34
|
+
"url": "https://github.com/sitecore/content-sdk/issues"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@sitecore-content-sdk/core": "1.3.0",
|
|
38
|
+
"chokidar": "^4.0.3",
|
|
39
|
+
"dotenv": "^16.5.0",
|
|
40
|
+
"dotenv-expand": "^12.0.2",
|
|
41
|
+
"inquirer": "^12.9.6",
|
|
42
|
+
"resolve": "^1.22.10",
|
|
43
|
+
"tmp": "^0.2.3",
|
|
44
|
+
"tsx": "^4.19.4",
|
|
45
|
+
"yargs": "^17.7.2"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@stylistic/eslint-plugin": "^5.2.2",
|
|
49
|
+
"@types/chai": "^5.2.2",
|
|
50
|
+
"@types/inquirer": "^9.0.9",
|
|
51
|
+
"@types/mocha": "^10.0.10",
|
|
52
|
+
"@types/node": "^22.15.13",
|
|
53
|
+
"@types/resolve": "^1.20.6",
|
|
54
|
+
"@types/sinon": "^17.0.4",
|
|
55
|
+
"@types/tmp": "^0.2.6",
|
|
56
|
+
"@types/yargs": "^17.0.33",
|
|
57
|
+
"@typescript-eslint/eslint-plugin": "8.39.0",
|
|
58
|
+
"@typescript-eslint/parser": "8.39.0",
|
|
59
|
+
"chai": "^4.4.1",
|
|
60
|
+
"del-cli": "^6.0.0",
|
|
61
|
+
"eslint": "^9.32.0",
|
|
62
|
+
"eslint-config-prettier": "^10.1.8",
|
|
63
|
+
"eslint-plugin-import": "2.32.0",
|
|
64
|
+
"eslint-plugin-jsdoc": "52.0.3",
|
|
65
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
66
|
+
"mocha": "^11.2.2",
|
|
67
|
+
"nyc": "^17.1.0",
|
|
68
|
+
"prettier": "^2.8.0",
|
|
69
|
+
"proxyquire": "^2.1.3",
|
|
70
|
+
"sinon": "^20.0.0",
|
|
71
|
+
"ts-node": "^10.9.1",
|
|
72
|
+
"typescript": "~5.8.3"
|
|
73
|
+
},
|
|
74
|
+
"gitHead": "2f4820efddf4454eeee58ed1b2cc251969efdf5b",
|
|
75
|
+
"files": [
|
|
76
|
+
"dist",
|
|
77
|
+
"types"
|
|
78
|
+
]
|
|
79
|
+
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
export {};
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
export {};
|
|
3
|
+
//# sourceMappingURL=sitecore-tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sitecore-tools.d.ts","sourceRoot":"","sources":["../../src/bin/sitecore-tools.ts"],"names":[],"mappings":""}
|
package/types/cli.d.ts
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { CommandModule } from 'yargs';
|
|
2
|
-
/**
|
|
3
|
-
* Initializes and configures the CLI application using yargs.
|
|
4
|
-
* This function registers commands, sets up argument parsing, and handles command execution.
|
|
5
|
-
* @param {object} commands - An object containing command modules to be registered with yargs.
|
|
6
|
-
* Each key in the object represents a command name, and the value is a `CommandModule` object
|
|
7
|
-
* that defines the command's behavior, arguments, and options.
|
|
8
|
-
*/
|
|
9
|
-
export default function cli(commands?: {
|
|
10
|
-
[key: string]: CommandModule & {
|
|
11
|
-
disableStrictArgs?: boolean;
|
|
12
|
-
};
|
|
13
|
-
}): Promise<void>;
|
|
1
|
+
import { CommandModule } from 'yargs';
|
|
2
|
+
/**
|
|
3
|
+
* Initializes and configures the CLI application using yargs.
|
|
4
|
+
* This function registers commands, sets up argument parsing, and handles command execution.
|
|
5
|
+
* @param {object} commands - An object containing command modules to be registered with yargs.
|
|
6
|
+
* Each key in the object represents a command name, and the value is a `CommandModule` object
|
|
7
|
+
* that defines the command's behavior, arguments, and options.
|
|
8
|
+
*/
|
|
9
|
+
export default function cli(commands?: {
|
|
10
|
+
[key: string]: CommandModule & {
|
|
11
|
+
disableStrictArgs?: boolean;
|
|
12
|
+
};
|
|
13
|
+
}): Promise<void>;
|
|
14
|
+
//# sourceMappingURL=cli.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAAA,OAAc,EAAQ,aAAa,EAAE,MAAM,OAAO,CAAC;AASnD;;;;;;GAMG;AACH,wBAA8B,GAAG,CAAC,QAAQ,CAAC,EAAE;IAC3C,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,GAAG;QAAE,iBAAiB,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;CAChE,iBA2CA"}
|
package/types/scripts/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import * as project from './project';
|
|
2
|
-
export { project };
|
|
1
|
+
import * as project from './project';
|
|
2
|
+
export { project };
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/scripts/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AAErC,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
export declare const command
|
|
2
|
-
export declare const describe = "Performs build time automation";
|
|
3
|
-
export declare const builder: {
|
|
4
|
-
config: {
|
|
5
|
-
requiresArg: boolean;
|
|
6
|
-
type: string;
|
|
7
|
-
describe: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* The arguments for the build command.
|
|
12
|
-
*/
|
|
13
|
-
export type BuildArgs = {
|
|
14
|
-
/**
|
|
15
|
-
* Path to the `sitecore.cli.config` file.
|
|
16
|
-
* Supports both JavaScript (`.js`) and TypeScript (`.ts`) formats.
|
|
17
|
-
*/
|
|
18
|
-
config?: string;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* Handler for the build command.
|
|
22
|
-
* @param {BuildArgs} argv - The arguments passed to the command.
|
|
23
|
-
*/
|
|
24
|
-
export declare function handler(argv: BuildArgs): Promise<void>;
|
|
1
|
+
export declare const command: string[];
|
|
2
|
+
export declare const describe = "Performs build time automation";
|
|
3
|
+
export declare const builder: {
|
|
4
|
+
config: {
|
|
5
|
+
requiresArg: boolean;
|
|
6
|
+
type: string;
|
|
7
|
+
describe: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* The arguments for the build command.
|
|
12
|
+
*/
|
|
13
|
+
export type BuildArgs = {
|
|
14
|
+
/**
|
|
15
|
+
* Path to the `sitecore.cli.config` file.
|
|
16
|
+
* Supports both JavaScript (`.js`) and TypeScript (`.ts`) formats.
|
|
17
|
+
*/
|
|
18
|
+
config?: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Handler for the build command.
|
|
22
|
+
* @param {BuildArgs} argv - The arguments passed to the command.
|
|
23
|
+
*/
|
|
24
|
+
export declare function handler(argv: BuildArgs): Promise<void>;
|
|
25
|
+
//# sourceMappingURL=build.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/scripts/project/build.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO,UAAiB,CAAC;AAEtC,eAAO,MAAM,QAAQ,mCAAmC,CAAC;AAEzD,eAAO,MAAM,OAAO;;;;;;CAOnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;;GAGG;AACH,wBAAsB,OAAO,CAAC,IAAI,EAAE,SAAS,iBAW5C"}
|
|
@@ -1,58 +1,59 @@
|
|
|
1
|
-
import { Argv } from 'yargs';
|
|
2
|
-
import * as tools from '@sitecore-content-sdk/core/tools';
|
|
3
|
-
export declare const unitMocks: (toolsModule: Pick<typeof tools, "getComponentSpec" | "getComponentList" | "getComponentSpecUrl">) => void;
|
|
4
|
-
type AddArgs = {
|
|
5
|
-
/**
|
|
6
|
-
* The unique identifier of the newly created component.
|
|
7
|
-
*/
|
|
8
|
-
componentId: string;
|
|
9
|
-
/**
|
|
10
|
-
* The authentication token.
|
|
11
|
-
*/
|
|
12
|
-
token: string;
|
|
13
|
-
/**
|
|
14
|
-
* The target path for the component.
|
|
15
|
-
*/
|
|
16
|
-
targetPath?: string;
|
|
17
|
-
/**
|
|
18
|
-
* If true, skips the component map generation.
|
|
19
|
-
* Default: false.
|
|
20
|
-
*/
|
|
21
|
-
skipComponentMap?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* If true, overwrites the existing component.
|
|
24
|
-
* Default: false.
|
|
25
|
-
*/
|
|
26
|
-
overwrite?: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Path to the `sitecore.cli.config` file.
|
|
29
|
-
* Supports both JavaScript (`.js`) and TypeScript (`.ts`) formats.
|
|
30
|
-
*/
|
|
31
|
-
config?: string;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* @param {Argv} yargs
|
|
35
|
-
*/
|
|
36
|
-
export declare function args(yargs: Argv<AddArgs>): Argv<import("yargs").Omit<import("yargs").Omit<import("yargs").Omit<import("yargs").Omit<AddArgs, "componentId"> & {
|
|
37
|
-
componentId: string | undefined;
|
|
38
|
-
}, "token"> & {
|
|
39
|
-
token: string;
|
|
40
|
-
} & {
|
|
41
|
-
"target-path": string | undefined;
|
|
42
|
-
} & {
|
|
43
|
-
"skip-component-map": boolean;
|
|
44
|
-
}, "overwrite"> & {
|
|
45
|
-
overwrite: boolean;
|
|
46
|
-
}, "config"> & {
|
|
47
|
-
config: string | undefined;
|
|
48
|
-
}>;
|
|
49
|
-
/**
|
|
50
|
-
* @param {Argv} yargs
|
|
51
|
-
*/
|
|
52
|
-
export declare function builder(yargs: Argv<AddArgs>): Argv<AddArgs>;
|
|
53
|
-
/**
|
|
54
|
-
* Handler for the add command.
|
|
55
|
-
* @param {AddArgs} argv - The arguments passed to the command.
|
|
56
|
-
*/
|
|
57
|
-
export declare function handler(argv: AddArgs): Promise<void>;
|
|
58
|
-
export {};
|
|
1
|
+
import { Argv } from 'yargs';
|
|
2
|
+
import * as tools from '@sitecore-content-sdk/core/tools';
|
|
3
|
+
export declare const unitMocks: (toolsModule: Pick<typeof tools, "getComponentSpec" | "getComponentList" | "getComponentSpecUrl">) => void;
|
|
4
|
+
type AddArgs = {
|
|
5
|
+
/**
|
|
6
|
+
* The unique identifier of the newly created component.
|
|
7
|
+
*/
|
|
8
|
+
componentId: string;
|
|
9
|
+
/**
|
|
10
|
+
* The authentication token.
|
|
11
|
+
*/
|
|
12
|
+
token: string;
|
|
13
|
+
/**
|
|
14
|
+
* The target path for the component.
|
|
15
|
+
*/
|
|
16
|
+
targetPath?: string;
|
|
17
|
+
/**
|
|
18
|
+
* If true, skips the component map generation.
|
|
19
|
+
* Default: false.
|
|
20
|
+
*/
|
|
21
|
+
skipComponentMap?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* If true, overwrites the existing component.
|
|
24
|
+
* Default: false.
|
|
25
|
+
*/
|
|
26
|
+
overwrite?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Path to the `sitecore.cli.config` file.
|
|
29
|
+
* Supports both JavaScript (`.js`) and TypeScript (`.ts`) formats.
|
|
30
|
+
*/
|
|
31
|
+
config?: string;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @param {Argv} yargs
|
|
35
|
+
*/
|
|
36
|
+
export declare function args(yargs: Argv<AddArgs>): Argv<import("yargs").Omit<import("yargs").Omit<import("yargs").Omit<import("yargs").Omit<AddArgs, "componentId"> & {
|
|
37
|
+
componentId: string | undefined;
|
|
38
|
+
}, "token"> & {
|
|
39
|
+
token: string;
|
|
40
|
+
} & {
|
|
41
|
+
"target-path": string | undefined;
|
|
42
|
+
} & {
|
|
43
|
+
"skip-component-map": boolean;
|
|
44
|
+
}, "overwrite"> & {
|
|
45
|
+
overwrite: boolean;
|
|
46
|
+
}, "config"> & {
|
|
47
|
+
config: string | undefined;
|
|
48
|
+
}>;
|
|
49
|
+
/**
|
|
50
|
+
* @param {Argv} yargs
|
|
51
|
+
*/
|
|
52
|
+
export declare function builder(yargs: Argv<AddArgs>): Argv<AddArgs>;
|
|
53
|
+
/**
|
|
54
|
+
* Handler for the add command.
|
|
55
|
+
* @param {AddArgs} argv - The arguments passed to the command.
|
|
56
|
+
*/
|
|
57
|
+
export declare function handler(argv: AddArgs): Promise<void>;
|
|
58
|
+
export {};
|
|
59
|
+
//# sourceMappingURL=add.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add.d.ts","sourceRoot":"","sources":["../../../../src/scripts/project/component/add.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAK7B,OAAO,KAAK,KAAK,MAAM,kCAAkC,CAAC;AAO1D,eAAO,MAAM,SAAS,GACpB,aAAa,IAAI,CAAC,OAAO,KAAK,EAAE,kBAAkB,GAAG,kBAAkB,GAAG,qBAAqB,CAAC,SAKjG,CAAC;AAEF,KAAK,OAAO,GAAG;IACb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,wBAAgB,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC;;;;;;;;;;;;GA4CxC;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,iBAQ3C;AAyBD;;;GAGG;AACH,wBAAsB,OAAO,CAAC,IAAI,EAAE,OAAO,iBAoI1C"}
|
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import { Argv } from 'yargs';
|
|
2
|
-
/**
|
|
3
|
-
* @param {Argv} yargs
|
|
4
|
-
*/
|
|
5
|
-
export declare function builder(yargs: Argv<GenerateMapCliArgs>): Argv<GenerateMapCliArgs>;
|
|
6
|
-
/**
|
|
7
|
-
* The arguments for the build command.
|
|
8
|
-
*/
|
|
9
|
-
export type GenerateMapCliArgs = {
|
|
10
|
-
/**
|
|
11
|
-
* If true, watches for changes in the specified paths and updates the component map accordingly.
|
|
12
|
-
*/
|
|
13
|
-
watch?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Path to the `sitecore.cli.config` file.
|
|
16
|
-
* Supports both JavaScript (`.js`) and TypeScript (`.ts`) formats.
|
|
17
|
-
*/
|
|
18
|
-
config?: string;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* @param {Argv} yargs
|
|
22
|
-
*/
|
|
23
|
-
export declare function args(yargs: Argv<GenerateMapCliArgs>): Argv<import("yargs").Omit<import("yargs").Omit<GenerateMapCliArgs, "watch"> & {
|
|
24
|
-
watch: boolean;
|
|
25
|
-
}, "config"> & {
|
|
26
|
-
config: string | undefined;
|
|
27
|
-
}>;
|
|
28
|
-
/**
|
|
29
|
-
* Handler for the `generate-map` command.
|
|
30
|
-
* @param {GenerateMapCliArgs} argv Cli arguments for the command
|
|
31
|
-
*/
|
|
32
|
-
export declare function handler(argv: GenerateMapCliArgs): void;
|
|
1
|
+
import { Argv } from 'yargs';
|
|
2
|
+
/**
|
|
3
|
+
* @param {Argv} yargs
|
|
4
|
+
*/
|
|
5
|
+
export declare function builder(yargs: Argv<GenerateMapCliArgs>): Argv<GenerateMapCliArgs>;
|
|
6
|
+
/**
|
|
7
|
+
* The arguments for the build command.
|
|
8
|
+
*/
|
|
9
|
+
export type GenerateMapCliArgs = {
|
|
10
|
+
/**
|
|
11
|
+
* If true, watches for changes in the specified paths and updates the component map accordingly.
|
|
12
|
+
*/
|
|
13
|
+
watch?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Path to the `sitecore.cli.config` file.
|
|
16
|
+
* Supports both JavaScript (`.js`) and TypeScript (`.ts`) formats.
|
|
17
|
+
*/
|
|
18
|
+
config?: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* @param {Argv} yargs
|
|
22
|
+
*/
|
|
23
|
+
export declare function args(yargs: Argv<GenerateMapCliArgs>): Argv<import("yargs").Omit<import("yargs").Omit<GenerateMapCliArgs, "watch"> & {
|
|
24
|
+
watch: boolean;
|
|
25
|
+
}, "config"> & {
|
|
26
|
+
config: string | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
/**
|
|
29
|
+
* Handler for the `generate-map` command.
|
|
30
|
+
* @param {GenerateMapCliArgs} argv Cli arguments for the command
|
|
31
|
+
*/
|
|
32
|
+
export declare function handler(argv: GenerateMapCliArgs): void;
|
|
33
|
+
//# sourceMappingURL=generate-map.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-map.d.ts","sourceRoot":"","sources":["../../../../src/scripts/project/component/generate-map.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAI7B;;GAEG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,kBAAkB,CAAC,4BAOtD;AAED;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF;;GAEG;AACH,wBAAgB,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,kBAAkB,CAAC;;;;GAiBnD;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,kBAAkB,QAqC/C"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Argv } from 'yargs';
|
|
2
|
-
/**
|
|
3
|
-
* @param {Argv} yargs
|
|
4
|
-
*/
|
|
5
|
-
export declare function builder(yargs: Argv): Argv<{}>;
|
|
1
|
+
import { Argv } from 'yargs';
|
|
2
|
+
/**
|
|
3
|
+
* @param {Argv} yargs
|
|
4
|
+
*/
|
|
5
|
+
export declare function builder(yargs: Argv): Argv<{}>;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/scripts/project/component/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAK7B;;GAEG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI,YAiBlC"}
|
|
@@ -1,44 +1,45 @@
|
|
|
1
|
-
import { Argv } from 'yargs';
|
|
2
|
-
/**
|
|
3
|
-
* @param {Argv} yargs
|
|
4
|
-
*/
|
|
5
|
-
export declare function builder(yargs: Argv<ScaffoldArgs>): Argv<ScaffoldArgs>;
|
|
6
|
-
/**
|
|
7
|
-
* @param {Argv} yargs
|
|
8
|
-
*/
|
|
9
|
-
export declare function args(yargs: Argv<ScaffoldArgs>): Argv<import("yargs").Omit<import("yargs").Omit<import("yargs").Omit<import("yargs").Omit<ScaffoldArgs, "componentName"> & {
|
|
10
|
-
componentName: string | undefined;
|
|
11
|
-
}, "config"> & {
|
|
12
|
-
config: string | undefined;
|
|
13
|
-
}, "templateName"> & {
|
|
14
|
-
templateName: string | undefined;
|
|
15
|
-
}, "byoc"> & {
|
|
16
|
-
byoc: boolean;
|
|
17
|
-
}>;
|
|
18
|
-
/**
|
|
19
|
-
* Arguments for the scaffold command.
|
|
20
|
-
*/
|
|
21
|
-
export type ScaffoldArgs = {
|
|
22
|
-
/**
|
|
23
|
-
* The name of the component to be scaffolded.
|
|
24
|
-
*/
|
|
25
|
-
componentName: string;
|
|
26
|
-
/**
|
|
27
|
-
* Path to the `sitecore.cli.config` file.
|
|
28
|
-
* Supports both JavaScript (`.js`) and TypeScript (`.ts`) formats.
|
|
29
|
-
*/
|
|
30
|
-
config?: string;
|
|
31
|
-
/**
|
|
32
|
-
* The name of the template to use for scaffolding.
|
|
33
|
-
*/
|
|
34
|
-
templateName?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Indicates whether to scaffold a BYOC type component.
|
|
37
|
-
*/
|
|
38
|
-
byoc?: boolean;
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* Handler for the scaffold command.
|
|
42
|
-
* @param {ScaffoldArgs} argv - The arguments passed to the command.
|
|
43
|
-
*/
|
|
44
|
-
export declare function handler(argv: ScaffoldArgs): void;
|
|
1
|
+
import { Argv } from 'yargs';
|
|
2
|
+
/**
|
|
3
|
+
* @param {Argv} yargs
|
|
4
|
+
*/
|
|
5
|
+
export declare function builder(yargs: Argv<ScaffoldArgs>): Argv<ScaffoldArgs>;
|
|
6
|
+
/**
|
|
7
|
+
* @param {Argv} yargs
|
|
8
|
+
*/
|
|
9
|
+
export declare function args(yargs: Argv<ScaffoldArgs>): Argv<import("yargs").Omit<import("yargs").Omit<import("yargs").Omit<import("yargs").Omit<ScaffoldArgs, "componentName"> & {
|
|
10
|
+
componentName: string | undefined;
|
|
11
|
+
}, "config"> & {
|
|
12
|
+
config: string | undefined;
|
|
13
|
+
}, "templateName"> & {
|
|
14
|
+
templateName: string | undefined;
|
|
15
|
+
}, "byoc"> & {
|
|
16
|
+
byoc: boolean;
|
|
17
|
+
}>;
|
|
18
|
+
/**
|
|
19
|
+
* Arguments for the scaffold command.
|
|
20
|
+
*/
|
|
21
|
+
export type ScaffoldArgs = {
|
|
22
|
+
/**
|
|
23
|
+
* The name of the component to be scaffolded.
|
|
24
|
+
*/
|
|
25
|
+
componentName: string;
|
|
26
|
+
/**
|
|
27
|
+
* Path to the `sitecore.cli.config` file.
|
|
28
|
+
* Supports both JavaScript (`.js`) and TypeScript (`.ts`) formats.
|
|
29
|
+
*/
|
|
30
|
+
config?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The name of the template to use for scaffolding.
|
|
33
|
+
*/
|
|
34
|
+
templateName?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Indicates whether to scaffold a BYOC type component.
|
|
37
|
+
*/
|
|
38
|
+
byoc?: boolean;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Handler for the scaffold command.
|
|
42
|
+
* @param {ScaffoldArgs} argv - The arguments passed to the command.
|
|
43
|
+
*/
|
|
44
|
+
export declare function handler(argv: ScaffoldArgs): void;
|
|
45
|
+
//# sourceMappingURL=scaffold.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../../../src/scripts/project/component/scaffold.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAG7B;;GAEG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,sBAOhD;AAED;;GAEG;AACH,wBAAgB,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC;;;;;;;;GA8B7C;AAED;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,YAAY,QAsBzC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Argv } from 'yargs';
|
|
2
|
-
/**
|
|
3
|
-
* @param {Argv} yargs
|
|
4
|
-
*/
|
|
5
|
-
export declare function builder(yargs: Argv): Argv<{}>;
|
|
1
|
+
import { Argv } from 'yargs';
|
|
2
|
+
/**
|
|
3
|
+
* @param {Argv} yargs
|
|
4
|
+
*/
|
|
5
|
+
export declare function builder(yargs: Argv): Argv<{}>;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/scripts/project/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAK7B;;GAEG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,IAAI,YAgBlC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { SitecoreCliConfig } from '@sitecore-content-sdk/core/types/config';
|
|
2
|
-
/**
|
|
3
|
-
* Loads Sitecore Content SDK CLI configuration from the specified file.
|
|
4
|
-
* @param {string} [configFile] - The path to the configuration file.
|
|
5
|
-
* @returns {SitecoreCliConfig} The default export from the configuration file.
|
|
6
|
-
* @throws Will throw an error if the configuration file does not exist or does not have a default export.
|
|
7
|
-
*/
|
|
8
|
-
export default function loadCliConfig(configFile?: string): SitecoreCliConfig;
|
|
1
|
+
import { SitecoreCliConfig } from '@sitecore-content-sdk/core/types/config';
|
|
2
|
+
/**
|
|
3
|
+
* Loads Sitecore Content SDK CLI configuration from the specified file.
|
|
4
|
+
* @param {string} [configFile] - The path to the configuration file.
|
|
5
|
+
* @returns {SitecoreCliConfig} The default export from the configuration file.
|
|
6
|
+
* @throws Will throw an error if the configuration file does not exist or does not have a default export.
|
|
7
|
+
*/
|
|
8
|
+
export default function loadCliConfig(configFile?: string): SitecoreCliConfig;
|
|
9
|
+
//# sourceMappingURL=load-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load-config.d.ts","sourceRoot":"","sources":["../../src/utils/load-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAO5E;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,iBAAiB,CA4B5E"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Loads and processes environment variables from `.env` files in the specified directory.
|
|
3
|
-
* It supports multiple `.env` files, including
|
|
4
|
-
* environment-specific files (e.g., `.env.development`, `.env.production`) and local overrides
|
|
5
|
-
* (e.g., `.env.local`, `.env.development.local`).
|
|
6
|
-
* @param {string} dir - The directory to search for `.env` files.
|
|
7
|
-
*/
|
|
8
|
-
export default function processEnv(dir: string): void;
|
|
1
|
+
/**
|
|
2
|
+
* Loads and processes environment variables from `.env` files in the specified directory.
|
|
3
|
+
* It supports multiple `.env` files, including
|
|
4
|
+
* environment-specific files (e.g., `.env.development`, `.env.production`) and local overrides
|
|
5
|
+
* (e.g., `.env.local`, `.env.development.local`).
|
|
6
|
+
* @param {string} dir - The directory to search for `.env` files.
|
|
7
|
+
*/
|
|
8
|
+
export default function processEnv(dir: string): void;
|
|
9
|
+
//# sourceMappingURL=process-env.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-env.d.ts","sourceRoot":"","sources":["../../src/utils/process-env.ts"],"names":[],"mappings":"AAKA;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,GAAG,EAAE,MAAM,QAqB7C"}
|