@adobe/aem-cli 16.1.5 → 16.2.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/CHANGELOG.md +15 -0
- package/README.md +1 -2
- package/package.json +11 -10
- package/src/up.cmd.js +30 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
# [16.2.0](https://github.com/adobe/helix-cli/compare/v16.1.6...v16.2.0) (2024-01-23)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **up:** check if the site is on helix 5, and use aem.page as preview host if that's the case ([adc2837](https://github.com/adobe/helix-cli/commit/adc2837a242af82582a7d382c966520bcfd90677))
|
|
7
|
+
|
|
8
|
+
## [16.1.6](https://github.com/adobe/helix-cli/compare/v16.1.5...v16.1.6) (2024-01-21)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **deps:** update adobe fixes ([2bab030](https://github.com/adobe/helix-cli/commit/2bab030a6f6c9a087e454a078f1439c0e0761665))
|
|
14
|
+
* **deps:** update external fixes ([e084373](https://github.com/adobe/helix-cli/commit/e08437365493f769ce8062f0c0911c7cab1735d4))
|
|
15
|
+
|
|
1
16
|
## [16.1.5](https://github.com/adobe/helix-cli/compare/v16.1.4...v16.1.5) (2023-12-30)
|
|
2
17
|
|
|
3
18
|
|
package/README.md
CHANGED
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
## Status
|
|
4
4
|
|
|
5
5
|
[](https://codecov.io/gh/adobe/helix-cli)
|
|
6
|
-
|
|
6
|
+

|
|
7
7
|
[](https://github.com/adobe/helix-cli/blob/master/LICENSE.txt)
|
|
8
8
|
[](https://github.com/adobe/helix-cli/issues)
|
|
9
|
-
[](https://lgtm.com/projects/g/adobe/helix-cli)
|
|
10
9
|
|
|
11
10
|
The AEM Command Line Interface allows web developers to create, develop, and deploy digital experiences using the Adobe Experience Manager Sites feature Edge Delivery Services. Some of this functionality was known as Franklin or Project Helix before.
|
|
12
11
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/aem-cli",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.2.0",
|
|
4
4
|
"description": "AEM CLI",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"test-ci-win": "npx mocha --reporter xunit test --reporter-options output=junit/test.xml -t 5000",
|
|
15
15
|
"lint": "eslint .",
|
|
16
16
|
"semantic-release": "semantic-release",
|
|
17
|
+
"semantic-release-dry": "semantic-release --dry-run --branches $CI_BRANCH",
|
|
17
18
|
"prepare": "husky install"
|
|
18
19
|
},
|
|
19
20
|
"mocha": {
|
|
@@ -39,16 +40,16 @@
|
|
|
39
40
|
"dependencies": {
|
|
40
41
|
"@adobe/fetch": "4.1.1",
|
|
41
42
|
"@adobe/helix-log": "6.0.1",
|
|
42
|
-
"@adobe/helix-shared-config": "10.3.
|
|
43
|
+
"@adobe/helix-shared-config": "10.3.8",
|
|
43
44
|
"@adobe/helix-shared-git": "3.0.4",
|
|
44
|
-
"@adobe/helix-shared-indexer": "2.0.
|
|
45
|
+
"@adobe/helix-shared-indexer": "2.0.18",
|
|
45
46
|
"camelcase": "8.0.0",
|
|
46
47
|
"chalk-template": "1.1.0",
|
|
47
48
|
"chokidar": "3.5.3",
|
|
48
49
|
"compression": "1.7.4",
|
|
49
50
|
"cookie": "0.6.0",
|
|
50
51
|
"cookie-parser": "1.4.6",
|
|
51
|
-
"dotenv": "16.3.
|
|
52
|
+
"dotenv": "16.3.2",
|
|
52
53
|
"express": "4.18.2",
|
|
53
54
|
"faye-websocket": "0.11.4",
|
|
54
55
|
"fs-extra": "11.2.0",
|
|
@@ -59,10 +60,10 @@
|
|
|
59
60
|
"https-proxy-agent": "7.0.2",
|
|
60
61
|
"ignore": "5.3.0",
|
|
61
62
|
"ini": "4.1.1",
|
|
62
|
-
"isomorphic-git": "1.25.
|
|
63
|
+
"isomorphic-git": "1.25.3",
|
|
63
64
|
"livereload-js": "4.0.2",
|
|
64
65
|
"node-fetch": "3.3.2",
|
|
65
|
-
"open": "10.0.
|
|
66
|
+
"open": "10.0.3",
|
|
66
67
|
"progress": "2.0.3",
|
|
67
68
|
"proxy-agent": "6.3.1",
|
|
68
69
|
"proxy-from-env": "1.1.0",
|
|
@@ -75,19 +76,19 @@
|
|
|
75
76
|
},
|
|
76
77
|
"devDependencies": {
|
|
77
78
|
"@adobe/eslint-config-helix": "2.0.5",
|
|
78
|
-
"@adobe/helix-shared-dom": "2.0.
|
|
79
|
+
"@adobe/helix-shared-dom": "2.0.3",
|
|
79
80
|
"@adobe/helix-testutils": "0.4.15",
|
|
80
81
|
"@semantic-release/changelog": "6.0.3",
|
|
81
82
|
"@semantic-release/git": "10.0.1",
|
|
82
|
-
"c8": "
|
|
83
|
+
"c8": "9.1.0",
|
|
83
84
|
"eslint": "8.56.0",
|
|
84
|
-
"esmock": "2.6.
|
|
85
|
+
"esmock": "2.6.2",
|
|
85
86
|
"husky": "8.0.3",
|
|
86
87
|
"junit-report-builder": "3.1.0",
|
|
87
88
|
"lint-staged": "15.2.0",
|
|
88
89
|
"mocha": "10.2.0",
|
|
89
90
|
"mocha-multi-reporters": "1.5.1",
|
|
90
|
-
"nock": "13.
|
|
91
|
+
"nock": "13.5.0",
|
|
91
92
|
"semantic-release": "22.0.12",
|
|
92
93
|
"semantic-release-discord-bot": "^1.1.0",
|
|
93
94
|
"sinon": "17.0.1"
|
package/src/up.cmd.js
CHANGED
|
@@ -100,11 +100,39 @@ export default class UpCommand extends AbstractServerCommand {
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
async verifyUrl(gitUrl, inref) {
|
|
103
|
+
// check if the site is on helix5
|
|
104
|
+
// https://admin.hlx.page/sidekick/adobe/www-aem-live/main/config.json
|
|
105
|
+
// {
|
|
106
|
+
// "host": "aem.live",
|
|
107
|
+
// "liveHost": "main--www-aem-live--adobe.aem.live",
|
|
108
|
+
// "plugins": [
|
|
109
|
+
// {
|
|
110
|
+
// "id": "doc",
|
|
111
|
+
// "title": "Documentation",
|
|
112
|
+
// "url": "https://www.aem.live/docs/"
|
|
113
|
+
// }
|
|
114
|
+
// ],
|
|
115
|
+
// "previewHost": "main--www-aem-live--adobe.aem.page",
|
|
116
|
+
// "project": "Helix Website (AEM Live)",
|
|
117
|
+
// "testProperty": "header";
|
|
118
|
+
// }
|
|
119
|
+
const configUrl = `https://admin.hlx.page/sidekick/${gitUrl.repo}/${gitUrl.owner}/${inref}/config.json`;
|
|
120
|
+
const configResp = await getFetch()(configUrl);
|
|
121
|
+
let previewHostBase = 'hlx.page';
|
|
122
|
+
if (configResp.ok) {
|
|
123
|
+
// this is best effort for now
|
|
124
|
+
const config = await configResp.json();
|
|
125
|
+
const { previewHost } = config;
|
|
126
|
+
if (previewHost && previewHost.endsWith('.aem.page')) {
|
|
127
|
+
previewHostBase = 'aem.page';
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
103
131
|
let ref = inref;
|
|
104
132
|
|
|
105
133
|
// replace `/` by `-` in ref.
|
|
106
134
|
ref = ref.replace(/\//g, '-');
|
|
107
|
-
this._url = `https://${ref}--${gitUrl.repo}--${gitUrl.owner}
|
|
135
|
+
this._url = `https://${ref}--${gitUrl.repo}--${gitUrl.owner}.${previewHostBase}`;
|
|
108
136
|
// check length limit
|
|
109
137
|
if (this._url.split('.')
|
|
110
138
|
.map((part) => part.replace(/^https:\/\//, ''))
|
|
@@ -125,7 +153,7 @@ export default class UpCommand extends AbstractServerCommand {
|
|
|
125
153
|
this.log.warn(chalk`Unable to verify {yellow main} branch via {blue ${fstabUrl}} (${resp.status}). Maybe not pushed yet?`);
|
|
126
154
|
} else {
|
|
127
155
|
this.log.warn(chalk`Unable to verify {yellow ${ref}} branch on {blue ${fstabUrl}} (${resp.status}). Fallback to {yellow main} branch.`);
|
|
128
|
-
this._url = `https://main--${gitUrl.repo}--${gitUrl.owner}
|
|
156
|
+
this._url = `https://main--${gitUrl.repo}--${gitUrl.owner}.${previewHostBase}`;
|
|
129
157
|
}
|
|
130
158
|
}
|
|
131
159
|
}
|