@commercetools-frontend/create-mc-app 27.4.1 → 27.5.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/AGENTS.md ADDED
@@ -0,0 +1,29 @@
1
+ # create-mc-app
2
+
3
+ See root `AGENTS.md` for monorepo-wide context.
4
+
5
+ ## Purpose
6
+
7
+ CLI (`npx @commercetools-frontend/create-mc-app`) that scaffolds new Custom Application and Custom View projects from starter templates, consumed by external developers bootstrapping Merchant Center customizations.
8
+
9
+ ## Key Context
10
+
11
+ - Uses `commander` for CLI parsing and `listr2` for task orchestration.
12
+ - Templates live outside this package in `application-templates/` and `custom-views-templates/` at the repo root. The CLI shallow-clones this repo at a given tag/branch, then copies the selected template folder into the user's project directory.
13
+ - After copying, it patches `package.json`, the application config, and constants files to personalize the scaffolded project, then optionally runs dependency installation.
14
+ - Has its own pinned `prettier` dependency (used at runtime to format generated files), separate from the repo-wide Prettier.
15
+
16
+ ## How To Work Here
17
+
18
+ No unit tests exist in this package. Verify changes by running the CLI manually:
19
+
20
+ ```sh
21
+ node packages/create-mc-app/bin/cli.js my-app
22
+ ```
23
+
24
+ Build is handled by preconstruct (same as most packages). No package-specific build command needed beyond the root `pnpm build`.
25
+
26
+ ## Gotchas
27
+
28
+ - Template names and application types are hardcoded in `src/constants.ts`. Adding a new template requires updating both the constants and the corresponding template directory at the repo root.
29
+ - The download task clones the entire repo into a temp directory at the specified `--template-version` (default: `main`). If the tag or branch does not exist, the error comes from `git clone`, not from this package's validation.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @commercetools-frontend/create-mc-app
2
2
 
3
+ ## 27.5.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @commercetools-frontend/application-config@27.5.0
9
+
10
+ ## 27.4.2
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies []:
15
+ - @commercetools-frontend/application-config@27.4.2
16
+
3
17
  ## 27.4.1
4
18
 
5
19
  ### Patch Changes
package/CLAUDE.md ADDED
@@ -0,0 +1,4 @@
1
+ # Claude Code Configuration
2
+
3
+ Read `AGENTS.md` for full project context. This package is part of the monorepo
4
+ — see the root `AGENTS.md` for monorepo-wide commands and conventions.
@@ -72,7 +72,7 @@ var prettier__default = /*#__PURE__*/_interopDefault(prettier);
72
72
 
73
73
  var pkgJson = {
74
74
  name: "@commercetools-frontend/create-mc-app",
75
- version: "27.4.0",
75
+ version: "27.5.0",
76
76
  description: "Create Merchant Center applications to quickly get up and running",
77
77
  bugs: "https://github.com/commercetools/merchant-center-application-kit/issues",
78
78
  repository: {
@@ -98,7 +98,7 @@ var pkgJson = {
98
98
  "@babel/core": "^7.22.17",
99
99
  "@babel/runtime": "^7.22.15",
100
100
  "@babel/runtime-corejs3": "^7.22.15",
101
- "@commercetools-frontend/application-config": "^27.4.0",
101
+ "@commercetools-frontend/application-config": "^27.5.0",
102
102
  "@types/babel__core": "^7.20.1",
103
103
  "@types/semver": "^7.5.1",
104
104
  commander: "^13.1.0",
@@ -72,7 +72,7 @@ var prettier__default = /*#__PURE__*/_interopDefault(prettier);
72
72
 
73
73
  var pkgJson = {
74
74
  name: "@commercetools-frontend/create-mc-app",
75
- version: "27.4.0",
75
+ version: "27.5.0",
76
76
  description: "Create Merchant Center applications to quickly get up and running",
77
77
  bugs: "https://github.com/commercetools/merchant-center-application-kit/issues",
78
78
  repository: {
@@ -98,7 +98,7 @@ var pkgJson = {
98
98
  "@babel/core": "^7.22.17",
99
99
  "@babel/runtime": "^7.22.15",
100
100
  "@babel/runtime-corejs3": "^7.22.15",
101
- "@commercetools-frontend/application-config": "^27.4.0",
101
+ "@commercetools-frontend/application-config": "^27.5.0",
102
102
  "@types/babel__core": "^7.20.1",
103
103
  "@types/semver": "^7.5.1",
104
104
  commander: "^13.1.0",
@@ -36,7 +36,7 @@ import prettier from 'prettier';
36
36
 
37
37
  var pkgJson = {
38
38
  name: "@commercetools-frontend/create-mc-app",
39
- version: "27.4.0",
39
+ version: "27.5.0",
40
40
  description: "Create Merchant Center applications to quickly get up and running",
41
41
  bugs: "https://github.com/commercetools/merchant-center-application-kit/issues",
42
42
  repository: {
@@ -62,7 +62,7 @@ var pkgJson = {
62
62
  "@babel/core": "^7.22.17",
63
63
  "@babel/runtime": "^7.22.15",
64
64
  "@babel/runtime-corejs3": "^7.22.15",
65
- "@commercetools-frontend/application-config": "^27.4.0",
65
+ "@commercetools-frontend/application-config": "^27.5.0",
66
66
  "@types/babel__core": "^7.20.1",
67
67
  "@types/semver": "^7.5.1",
68
68
  commander: "^13.1.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/create-mc-app",
3
- "version": "27.4.1",
3
+ "version": "27.5.0",
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": "^27.4.1",
29
+ "@commercetools-frontend/application-config": "^27.5.0",
30
30
  "@types/babel__core": "^7.20.1",
31
31
  "@types/semver": "^7.5.1",
32
32
  "commander": "^13.1.0",