@commercetools-frontend/create-mc-app 23.2.1 → 23.2.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/CHANGELOG.md +18 -0
- package/dist/commercetools-frontend-create-mc-app.cjs.dev.js +3 -3
- package/dist/commercetools-frontend-create-mc-app.cjs.prod.js +3 -3
- package/dist/commercetools-frontend-create-mc-app.esm.js +3 -3
- package/package.json +2 -2
- package/src/cli.ts +7 -7
- package/tsconfig.json +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @commercetools-frontend/create-mc-app
|
|
2
2
|
|
|
3
|
+
## 23.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#3754](https://github.com/commercetools/merchant-center-application-kit/pull/3754) [`9888b5e`](https://github.com/commercetools/merchant-center-application-kit/commit/9888b5e485fad03416cd346261baa4bb19fa4a39) Thanks [@emmenko](https://github.com/emmenko)! - Use `moduleResolution: bundler` to be compatible with ESM packages.
|
|
8
|
+
|
|
9
|
+
- Updated dependencies []:
|
|
10
|
+
- @commercetools-frontend/application-config@23.2.3
|
|
11
|
+
|
|
12
|
+
## 23.2.2
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#3749](https://github.com/commercetools/merchant-center-application-kit/pull/3749) [`e9cd323`](https://github.com/commercetools/merchant-center-application-kit/commit/e9cd3235c235304809bf3cfe336c3e3e3ab85468) Thanks [@emmenko](https://github.com/emmenko)! - Fix parsing of CLI arguments
|
|
17
|
+
|
|
18
|
+
- Updated dependencies []:
|
|
19
|
+
- @commercetools-frontend/application-config@23.2.2
|
|
20
|
+
|
|
3
21
|
## 23.2.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -70,7 +70,7 @@ var prettier__default = /*#__PURE__*/_interopDefault(prettier);
|
|
|
70
70
|
|
|
71
71
|
var pkgJson = {
|
|
72
72
|
name: "@commercetools-frontend/create-mc-app",
|
|
73
|
-
version: "23.2.
|
|
73
|
+
version: "23.2.3",
|
|
74
74
|
description: "Create Merchant Center applications to quickly get up and running",
|
|
75
75
|
bugs: "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
76
76
|
repository: {
|
|
@@ -96,7 +96,7 @@ var pkgJson = {
|
|
|
96
96
|
"@babel/core": "^7.22.17",
|
|
97
97
|
"@babel/runtime": "^7.22.15",
|
|
98
98
|
"@babel/runtime-corejs3": "^7.22.15",
|
|
99
|
-
"@commercetools-frontend/application-config": "^23.2.
|
|
99
|
+
"@commercetools-frontend/application-config": "^23.2.3",
|
|
100
100
|
"@types/babel__core": "^7.20.1",
|
|
101
101
|
"@types/semver": "^7.5.1",
|
|
102
102
|
commander: "^13.1.0",
|
|
@@ -569,7 +569,7 @@ const messagesByApplicationType = {
|
|
|
569
569
|
};
|
|
570
570
|
const run = () => {
|
|
571
571
|
// Default command
|
|
572
|
-
commander.program.argument('<project-directory>').option('--application-type
|
|
572
|
+
commander.program.argument('<project-directory>').option('--application-type <type>', '(optional) The type of the application to create: custom-application (default) or custom-view.', applicationTypes['custom-application']).option('--template <name>', '(optional) The name of the template to install.', availableTemplates.starter).option('--template-version <version>', '(optional) The version of the template to install (either a git tag or a git branch of the "commercetools/merchant-center-application-kit" repository).', 'main').option('--skip-install', '(optional) Skip installing the dependencies after cloning the template.', false).option('--yes', '(optional) If set, the prompt options with default values will be skipped.', false).option('--entry-point-uri-path <value>', '(optional) The version of the template to install. (default: starter-<hash>)').option('--initial-project-key <value>', '(optional) A commercetools project key used for the initial login in development. By default, the value is prompted in the terminal.').option('--cloud-identifier <value>', '(optional) Cloud region identifier. By default, the value is prompted in the terminal').option('--package-manager <value>', '(optional) The preferred package manager to use: npm, yarn, pnpm.').action(async (projectDirectory, options) => {
|
|
573
573
|
var _context;
|
|
574
574
|
const releaseVersion = await getLatestReleaseVersion();
|
|
575
575
|
hintOutdatedVersion(pkgJson.version, releaseVersion);
|
|
@@ -70,7 +70,7 @@ var prettier__default = /*#__PURE__*/_interopDefault(prettier);
|
|
|
70
70
|
|
|
71
71
|
var pkgJson = {
|
|
72
72
|
name: "@commercetools-frontend/create-mc-app",
|
|
73
|
-
version: "23.2.
|
|
73
|
+
version: "23.2.3",
|
|
74
74
|
description: "Create Merchant Center applications to quickly get up and running",
|
|
75
75
|
bugs: "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
76
76
|
repository: {
|
|
@@ -96,7 +96,7 @@ var pkgJson = {
|
|
|
96
96
|
"@babel/core": "^7.22.17",
|
|
97
97
|
"@babel/runtime": "^7.22.15",
|
|
98
98
|
"@babel/runtime-corejs3": "^7.22.15",
|
|
99
|
-
"@commercetools-frontend/application-config": "^23.2.
|
|
99
|
+
"@commercetools-frontend/application-config": "^23.2.3",
|
|
100
100
|
"@types/babel__core": "^7.20.1",
|
|
101
101
|
"@types/semver": "^7.5.1",
|
|
102
102
|
commander: "^13.1.0",
|
|
@@ -569,7 +569,7 @@ const messagesByApplicationType = {
|
|
|
569
569
|
};
|
|
570
570
|
const run = () => {
|
|
571
571
|
// Default command
|
|
572
|
-
commander.program.argument('<project-directory>').option('--application-type
|
|
572
|
+
commander.program.argument('<project-directory>').option('--application-type <type>', '(optional) The type of the application to create: custom-application (default) or custom-view.', applicationTypes['custom-application']).option('--template <name>', '(optional) The name of the template to install.', availableTemplates.starter).option('--template-version <version>', '(optional) The version of the template to install (either a git tag or a git branch of the "commercetools/merchant-center-application-kit" repository).', 'main').option('--skip-install', '(optional) Skip installing the dependencies after cloning the template.', false).option('--yes', '(optional) If set, the prompt options with default values will be skipped.', false).option('--entry-point-uri-path <value>', '(optional) The version of the template to install. (default: starter-<hash>)').option('--initial-project-key <value>', '(optional) A commercetools project key used for the initial login in development. By default, the value is prompted in the terminal.').option('--cloud-identifier <value>', '(optional) Cloud region identifier. By default, the value is prompted in the terminal').option('--package-manager <value>', '(optional) The preferred package manager to use: npm, yarn, pnpm.').action(async (projectDirectory, options) => {
|
|
573
573
|
var _context;
|
|
574
574
|
const releaseVersion = await getLatestReleaseVersion();
|
|
575
575
|
hintOutdatedVersion(pkgJson.version, releaseVersion);
|
|
@@ -35,7 +35,7 @@ import prettier from 'prettier';
|
|
|
35
35
|
|
|
36
36
|
var pkgJson = {
|
|
37
37
|
name: "@commercetools-frontend/create-mc-app",
|
|
38
|
-
version: "23.2.
|
|
38
|
+
version: "23.2.3",
|
|
39
39
|
description: "Create Merchant Center applications to quickly get up and running",
|
|
40
40
|
bugs: "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
41
41
|
repository: {
|
|
@@ -61,7 +61,7 @@ var pkgJson = {
|
|
|
61
61
|
"@babel/core": "^7.22.17",
|
|
62
62
|
"@babel/runtime": "^7.22.15",
|
|
63
63
|
"@babel/runtime-corejs3": "^7.22.15",
|
|
64
|
-
"@commercetools-frontend/application-config": "^23.2.
|
|
64
|
+
"@commercetools-frontend/application-config": "^23.2.3",
|
|
65
65
|
"@types/babel__core": "^7.20.1",
|
|
66
66
|
"@types/semver": "^7.5.1",
|
|
67
67
|
commander: "^13.1.0",
|
|
@@ -534,7 +534,7 @@ const messagesByApplicationType = {
|
|
|
534
534
|
};
|
|
535
535
|
const run = () => {
|
|
536
536
|
// Default command
|
|
537
|
-
program.argument('<project-directory>').option('--application-type
|
|
537
|
+
program.argument('<project-directory>').option('--application-type <type>', '(optional) The type of the application to create: custom-application (default) or custom-view.', applicationTypes['custom-application']).option('--template <name>', '(optional) The name of the template to install.', availableTemplates.starter).option('--template-version <version>', '(optional) The version of the template to install (either a git tag or a git branch of the "commercetools/merchant-center-application-kit" repository).', 'main').option('--skip-install', '(optional) Skip installing the dependencies after cloning the template.', false).option('--yes', '(optional) If set, the prompt options with default values will be skipped.', false).option('--entry-point-uri-path <value>', '(optional) The version of the template to install. (default: starter-<hash>)').option('--initial-project-key <value>', '(optional) A commercetools project key used for the initial login in development. By default, the value is prompted in the terminal.').option('--cloud-identifier <value>', '(optional) Cloud region identifier. By default, the value is prompted in the terminal').option('--package-manager <value>', '(optional) The preferred package manager to use: npm, yarn, pnpm.').action(async (projectDirectory, options) => {
|
|
538
538
|
var _context;
|
|
539
539
|
const releaseVersion = await getLatestReleaseVersion();
|
|
540
540
|
hintOutdatedVersion(pkgJson.version, releaseVersion);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools-frontend/create-mc-app",
|
|
3
|
-
"version": "23.2.
|
|
3
|
+
"version": "23.2.3",
|
|
4
4
|
"description": "Create Merchant Center applications to quickly get up and running",
|
|
5
5
|
"bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
|
|
6
6
|
"repository": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@babel/core": "^7.22.17",
|
|
27
27
|
"@babel/runtime": "^7.22.15",
|
|
28
28
|
"@babel/runtime-corejs3": "^7.22.15",
|
|
29
|
-
"@commercetools-frontend/application-config": "^23.2.
|
|
29
|
+
"@commercetools-frontend/application-config": "^23.2.3",
|
|
30
30
|
"@types/babel__core": "^7.20.1",
|
|
31
31
|
"@types/semver": "^7.5.1",
|
|
32
32
|
"commander": "^13.1.0",
|
package/src/cli.ts
CHANGED
|
@@ -40,17 +40,17 @@ const run = () => {
|
|
|
40
40
|
program
|
|
41
41
|
.argument('<project-directory>')
|
|
42
42
|
.option(
|
|
43
|
-
'--application-type
|
|
43
|
+
'--application-type <type>',
|
|
44
44
|
'(optional) The type of the application to create: custom-application (default) or custom-view.',
|
|
45
45
|
applicationTypes['custom-application']
|
|
46
46
|
)
|
|
47
47
|
.option(
|
|
48
|
-
'--template
|
|
48
|
+
'--template <name>',
|
|
49
49
|
'(optional) The name of the template to install.',
|
|
50
50
|
availableTemplates.starter
|
|
51
51
|
)
|
|
52
52
|
.option(
|
|
53
|
-
'--template-version
|
|
53
|
+
'--template-version <version>',
|
|
54
54
|
'(optional) The version of the template to install (either a git tag or a git branch of the "commercetools/merchant-center-application-kit" repository).',
|
|
55
55
|
'main'
|
|
56
56
|
)
|
|
@@ -65,19 +65,19 @@ const run = () => {
|
|
|
65
65
|
false
|
|
66
66
|
)
|
|
67
67
|
.option(
|
|
68
|
-
'--entry-point-uri-path
|
|
68
|
+
'--entry-point-uri-path <value>',
|
|
69
69
|
'(optional) The version of the template to install. (default: starter-<hash>)'
|
|
70
70
|
)
|
|
71
71
|
.option(
|
|
72
|
-
'--initial-project-key
|
|
72
|
+
'--initial-project-key <value>',
|
|
73
73
|
'(optional) A commercetools project key used for the initial login in development. By default, the value is prompted in the terminal.'
|
|
74
74
|
)
|
|
75
75
|
.option(
|
|
76
|
-
'--cloud-identifier
|
|
76
|
+
'--cloud-identifier <value>',
|
|
77
77
|
'(optional) Cloud region identifier. By default, the value is prompted in the terminal'
|
|
78
78
|
)
|
|
79
79
|
.option(
|
|
80
|
-
'--package-manager
|
|
80
|
+
'--package-manager <value>',
|
|
81
81
|
'(optional) The preferred package manager to use: npm, yarn, pnpm.'
|
|
82
82
|
)
|
|
83
83
|
.action(async (projectDirectory: string, options: TCliCommandOptions) => {
|