@unocss/cli 0.50.8 → 0.51.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/README.md CHANGED
@@ -2,99 +2,9 @@
2
2
 
3
3
  The CLI for UnoCSS. A perfect fit for traditional backends.
4
4
 
5
- ## Key Features
5
+ ## Documentation
6
6
 
7
- - 🍱 Suited for traditional backends like Laravel or Kirby
8
- - 👀 [Watch mode](#development) included
9
- - 🔌 Supports custom configurations via [`uno.config.ts`](#unocssconfigjs-support)
10
-
11
- ## Requirements
12
-
13
- - Node 14+ (Node 16 recommended)
14
-
15
- ## Installation
16
-
17
- This package is shipped with the `unocss` package:
18
-
19
- ```bash
20
- npm i -D unocss
21
- ```
22
-
23
- You can also install it standalone:
24
-
25
- ```bash
26
- npm i -D @unocss/cli
27
- ```
28
-
29
- ## Usage
30
-
31
- You can also pass multiple glob patterns to `@unocss/cli`:
32
-
33
- ```bash
34
- unocss "site/snippets/**/*.php" "site/templates/**/*.php"
35
- ```
36
-
37
- Example package configuration:
38
-
39
- > â„šī¸ Make sure to add escaped quotes to your npm script glob patterns.
40
-
41
- ```json
42
- {
43
- "scripts": {
44
- "dev": "unocss \"site/{snippets,templates}/**/*.php\" --watch",
45
- "build": "unocss \"site/{snippets,templates}/**/*.php\""
46
- },
47
- "devDependencies": {
48
- "@unocss/cli": "latest"
49
- }
50
- }
51
- ```
52
-
53
- ### Development
54
-
55
- Add the `--watch` (or `-w`) flag to enable watching for file changes:
56
-
57
- ```bash
58
- unocss "site/{snippets,templates}/**/*.php" --watch
59
- ```
60
-
61
- ### Production
62
-
63
- ```bash
64
- unocss "site/{snippets,templates}/**/*.php"
65
- ```
66
-
67
- The final `uno.css` will be generated to the current directory by default.
68
-
69
- ## Built-in Features
70
-
71
- ### Configurations
72
-
73
- Create a `uno.config.ts` or `uno.config.ts` configuration file the root-level of your project to customize UnoCSS.
74
-
75
- ```js
76
- import { defineConfig } from 'unocss'
77
-
78
- export default defineConfig({
79
- shortcuts: [
80
- { box: 'max-w-7xl mx-auto bg-gray-100 rounded-md shadow-sm p-4' },
81
- ],
82
- })
83
- ```
84
-
85
- For a list of options, head over to the [UnoCSS configurations](https://github.com/unocss/unocss#configurations) docs.
86
-
87
- ## CLI Options
88
-
89
- > Inspect all available options with `unocss --help`.
90
-
91
- ### `--out-file`
92
-
93
- The output filename for the generated UnoCSS file. Defaults to `uno.css` in the current working directory.
94
-
95
- ### `--watch`
96
-
97
- Indicates if the files found by the glob pattern should be watched.
7
+ Please refer to the [documentation](https://unocss.dev/integrations/cli).
98
8
 
99
9
  ## License
100
10
 
package/dist/cli.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { cac } from 'cac';
2
2
  import { loadConfig } from '@unocss/config';
3
3
  import { toArray } from '@unocss/core';
4
- import { b as build, v as version, h as handleError } from './shared/cli.c1f5031e.mjs';
4
+ import { b as build, v as version, h as handleError } from './shared/cli.02a600f6.mjs';
5
5
  import 'node:fs';
6
6
  import 'pathe';
7
7
  import 'fast-glob';
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ import 'consola';
5
5
  import 'colorette';
6
6
  import 'perfect-debounce';
7
7
  import '@unocss/core';
8
- export { b as build, r as resolveOptions } from './shared/cli.c1f5031e.mjs';
8
+ export { b as build, r as resolveOptions } from './shared/cli.02a600f6.mjs';
9
9
  import '@rollup/pluginutils';
10
10
  import '@unocss/config';
11
11
  import 'magic-string';
@@ -11,7 +11,7 @@ import MagicString from 'magic-string';
11
11
  import remapping from '@ampproject/remapping';
12
12
  import presetUno from '@unocss/preset-uno';
13
13
 
14
- const version = "0.50.8";
14
+ const version = "0.51.0";
15
15
 
16
16
  const INCLUDE_COMMENT = "@unocss-include";
17
17
  const IGNORE_COMMENT = "@unocss-ignore";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/cli",
3
- "version": "0.50.8",
3
+ "version": "0.51.0",
4
4
  "description": "CLI for UnoCSS",
5
5
  "author": {
6
6
  "name": "Johann Schopplich",
@@ -49,9 +49,9 @@
49
49
  "magic-string": "^0.30.0",
50
50
  "pathe": "^1.1.0",
51
51
  "perfect-debounce": "^0.1.3",
52
- "@unocss/config": "0.50.8",
53
- "@unocss/core": "0.50.8",
54
- "@unocss/preset-uno": "0.50.8"
52
+ "@unocss/config": "0.51.0",
53
+ "@unocss/core": "0.51.0",
54
+ "@unocss/preset-uno": "0.51.0"
55
55
  },
56
56
  "scripts": {
57
57
  "build": "unbuild",