@drupal-canvas/cli 0.4.0 → 0.5.1
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/README.md +42 -6
- package/dist/index.js +316 -173
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -66,8 +66,13 @@ npx canvas download [options]
|
|
|
66
66
|
- `--all`: Download all components
|
|
67
67
|
- `-y, --yes`: Skip all confirmation prompts (non-interactive mode)
|
|
68
68
|
- `--skip-overwrite`: Skip downloading components that already exist locally
|
|
69
|
+
- `--skip-css`: Skip global CSS download
|
|
70
|
+
- `--css-only`: Download only global CSS (skip components)
|
|
69
71
|
|
|
70
|
-
**
|
|
72
|
+
**Notes:**
|
|
73
|
+
|
|
74
|
+
- `--components` and `--all` cannot be used together
|
|
75
|
+
- `--skip-css` and `--css-only` cannot be used together
|
|
71
76
|
|
|
72
77
|
**About prompts:**
|
|
73
78
|
|
|
@@ -118,12 +123,25 @@ Fully non-interactive, only download new components:
|
|
|
118
123
|
npx canvas download --all --yes --skip-overwrite
|
|
119
124
|
```
|
|
120
125
|
|
|
126
|
+
Download components without global CSS:
|
|
127
|
+
|
|
128
|
+
```bash
|
|
129
|
+
npx canvas download --all --skip-css
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
Download only global CSS (skip components):
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
npx canvas download --css-only
|
|
136
|
+
```
|
|
137
|
+
|
|
121
138
|
Downloads one or more components from your site. You can select components
|
|
122
139
|
interactively, specify them with `--components`, or use `--all` to download
|
|
123
140
|
everything. By default, existing component directories will be overwritten after
|
|
124
141
|
confirmation. Use `--yes` for non-interactive mode (suitable for CI/CD), or
|
|
125
|
-
`--skip-overwrite` to preserve existing components.
|
|
126
|
-
|
|
142
|
+
`--skip-overwrite` to preserve existing components. Global CSS assets are
|
|
143
|
+
downloaded by default and can be controlled with `--skip-css` to exclude them or
|
|
144
|
+
`--css-only` to download only CSS without components.
|
|
127
145
|
|
|
128
146
|
---
|
|
129
147
|
|
|
@@ -227,8 +245,13 @@ npx canvas upload [options]
|
|
|
227
245
|
- `--all`: Upload all components in the directory
|
|
228
246
|
- `-y, --yes`: Skip confirmation prompts (non-interactive mode)
|
|
229
247
|
- `--no-tailwind`: Skip Tailwind CSS build and global asset upload
|
|
248
|
+
- `--skip-css`: Skip global CSS upload
|
|
249
|
+
- `--css-only`: Upload only global CSS (skip components)
|
|
230
250
|
|
|
231
|
-
**
|
|
251
|
+
**Notes:**
|
|
252
|
+
|
|
253
|
+
- `--components` and `--all` cannot be used together
|
|
254
|
+
- `--skip-css` and `--css-only` cannot be used together
|
|
232
255
|
|
|
233
256
|
**Examples:**
|
|
234
257
|
|
|
@@ -268,10 +291,23 @@ CI/CD without Tailwind:
|
|
|
268
291
|
npx canvas upload --all --yes --no-tailwind
|
|
269
292
|
```
|
|
270
293
|
|
|
294
|
+
Upload components without global CSS:
|
|
295
|
+
|
|
296
|
+
```bash
|
|
297
|
+
npx canvas upload --all --skip-css
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
Upload only global CSS (skip components):
|
|
301
|
+
|
|
302
|
+
```bash
|
|
303
|
+
npx canvas upload --css-only
|
|
304
|
+
```
|
|
305
|
+
|
|
271
306
|
Builds and uploads the selected (or all) local components to your site. Also
|
|
272
307
|
builds and uploads global Tailwind CSS assets unless `--no-tailwind` is
|
|
273
|
-
specified.
|
|
274
|
-
|
|
308
|
+
specified. Global CSS upload can be controlled with `--skip-css` to exclude it
|
|
309
|
+
or `--css-only` to upload only CSS without components. Existing components on
|
|
310
|
+
the site will be updated if they already exist.
|
|
275
311
|
|
|
276
312
|
---
|
|
277
313
|
|