@drupal-canvas/create 0.1.0 → 1.0.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/dist/index.js +14 -6
- package/package.json +1 -1
- package/templates.json +11 -3
package/dist/index.js
CHANGED
|
@@ -12,10 +12,18 @@ import validate from 'validate-npm-package-name';
|
|
|
12
12
|
// templates.json
|
|
13
13
|
var templates_default = [
|
|
14
14
|
{
|
|
15
|
-
id: "
|
|
16
|
-
label: "
|
|
15
|
+
id: "acquia-nebula",
|
|
16
|
+
label: "acquia/nebula",
|
|
17
17
|
repository: {
|
|
18
|
-
url: "git@github.com:
|
|
18
|
+
url: "git@github.com:acquia/nebula.git",
|
|
19
|
+
ref: "main"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: "balintbrews-canvas-starter",
|
|
24
|
+
label: "balintbrews/canvas-starter",
|
|
25
|
+
repository: {
|
|
26
|
+
url: "git@github.com:balintbrews/canvas-starter.git",
|
|
19
27
|
ref: "main"
|
|
20
28
|
}
|
|
21
29
|
}
|
|
@@ -39,7 +47,7 @@ function detectPackageManager() {
|
|
|
39
47
|
// package.json
|
|
40
48
|
var package_default = {
|
|
41
49
|
name: "@drupal-canvas/create",
|
|
42
|
-
version: "
|
|
50
|
+
version: "1.0.0",
|
|
43
51
|
description: "CLI to scaffold a codebase for working with Drupal Canvas Code Components"};
|
|
44
52
|
|
|
45
53
|
// src/lib/meta-info.ts
|
|
@@ -224,9 +232,9 @@ program.name(getName()).description(getDescription()).version(getVersion()).argu
|
|
|
224
232
|
} else {
|
|
225
233
|
const selected = await p2.select({
|
|
226
234
|
message: "Select a template",
|
|
227
|
-
options: templates_default.map((t) => ({
|
|
235
|
+
options: templates_default.map((t, index) => ({
|
|
228
236
|
value: t.id,
|
|
229
|
-
label: t.label
|
|
237
|
+
label: index === 0 ? `${t.label} (Recommended)` : t.label
|
|
230
238
|
}))
|
|
231
239
|
});
|
|
232
240
|
if (p2.isCancel(selected)) {
|
package/package.json
CHANGED
package/templates.json
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
|
-
"id": "
|
|
4
|
-
"label": "
|
|
3
|
+
"id": "acquia-nebula",
|
|
4
|
+
"label": "acquia/nebula",
|
|
5
5
|
"repository": {
|
|
6
|
-
"url": "git@github.com:
|
|
6
|
+
"url": "git@github.com:acquia/nebula.git",
|
|
7
|
+
"ref": "main"
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"id": "balintbrews-canvas-starter",
|
|
12
|
+
"label": "balintbrews/canvas-starter",
|
|
13
|
+
"repository": {
|
|
14
|
+
"url": "git@github.com:balintbrews/canvas-starter.git",
|
|
7
15
|
"ref": "main"
|
|
8
16
|
}
|
|
9
17
|
}
|