@unocss/cli 0.27.6 → 0.28.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 +2 -2
- package/dist/chunks/index.cjs +1 -1
- package/dist/chunks/index.mjs +1 -1
- package/package.json +14 -13
package/README.md
CHANGED
|
@@ -77,8 +77,8 @@ import { defineConfig } from 'unocss'
|
|
|
77
77
|
|
|
78
78
|
export default defineConfig({
|
|
79
79
|
shortcuts: [
|
|
80
|
-
{
|
|
81
|
-
]
|
|
80
|
+
{ box: 'max-w-7xl mx-auto bg-gray-100 rounded-md shadow-sm p-4' },
|
|
81
|
+
],
|
|
82
82
|
})
|
|
83
83
|
```
|
|
84
84
|
|
package/dist/chunks/index.cjs
CHANGED
|
@@ -15,7 +15,7 @@ const fg__default = /*#__PURE__*/_interopDefaultLegacy(fg);
|
|
|
15
15
|
const consola__default = /*#__PURE__*/_interopDefaultLegacy(consola);
|
|
16
16
|
const presetUno__default = /*#__PURE__*/_interopDefaultLegacy(presetUno);
|
|
17
17
|
|
|
18
|
-
const version = "0.
|
|
18
|
+
const version = "0.28.0";
|
|
19
19
|
|
|
20
20
|
class PrettyError extends Error {
|
|
21
21
|
constructor(message) {
|
package/dist/chunks/index.mjs
CHANGED
|
@@ -7,7 +7,7 @@ import { createGenerator, toArray } from '@unocss/core';
|
|
|
7
7
|
import { createConfigLoader } from '@unocss/config';
|
|
8
8
|
import presetUno from '@unocss/preset-uno';
|
|
9
9
|
|
|
10
|
-
const version = "0.
|
|
10
|
+
const version = "0.28.0";
|
|
11
11
|
|
|
12
12
|
class PrettyError extends Error {
|
|
13
13
|
constructor(message) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.0",
|
|
4
4
|
"description": "CLI for UnoCSS",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"homepage": "https://github.com/unocss/unocss/tree/main/packages/cli#readme",
|
|
@@ -8,34 +8,34 @@
|
|
|
8
8
|
"url": "https://github.com/unocss/unocss/issues"
|
|
9
9
|
},
|
|
10
10
|
"license": "MIT",
|
|
11
|
+
"author": {
|
|
12
|
+
"name": "Johann Schopplich",
|
|
13
|
+
"email": "pkg@johannschopplich.com",
|
|
14
|
+
"url": "https://johannschopplich.com"
|
|
15
|
+
},
|
|
11
16
|
"repository": {
|
|
12
17
|
"type": "git",
|
|
13
18
|
"url": "git+https://github.com/unocss/unocss.git",
|
|
14
19
|
"directory": "packages/cli"
|
|
15
20
|
},
|
|
16
21
|
"funding": "https://github.com/sponsors/antfu",
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"url": "https://johannschopplich.com"
|
|
21
|
-
},
|
|
22
|
+
"main": "./dist/index.cjs",
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"exports": "./dist/index.cjs",
|
|
22
25
|
"files": [
|
|
23
26
|
"bin",
|
|
24
27
|
"dist"
|
|
25
28
|
],
|
|
26
|
-
"exports": "./dist/index.cjs",
|
|
27
|
-
"main": "./dist/index.cjs",
|
|
28
29
|
"bin": {
|
|
29
30
|
"unocss": "./bin/unocss.cjs"
|
|
30
31
|
},
|
|
31
|
-
"types": "./dist/index.d.ts",
|
|
32
32
|
"engines": {
|
|
33
33
|
"node": ">=14"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@unocss/config": "0.
|
|
37
|
-
"@unocss/core": "0.
|
|
38
|
-
"@unocss/preset-uno": "0.
|
|
36
|
+
"@unocss/config": "0.28.0",
|
|
37
|
+
"@unocss/core": "0.28.0",
|
|
38
|
+
"@unocss/preset-uno": "0.28.0",
|
|
39
39
|
"cac": "^6.7.12",
|
|
40
40
|
"chokidar": "^3.5.3",
|
|
41
41
|
"colorette": "^2.0.16",
|
|
@@ -46,5 +46,6 @@
|
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "unbuild",
|
|
48
48
|
"stub": "unbuild --stub"
|
|
49
|
-
}
|
|
49
|
+
},
|
|
50
|
+
"readme": "# @unocss/cli\n\nThe CLI for UnoCSS. A perfect fit for traditional backends.\n\n## Key Features\n\n- 🍱 Suited for traditional backends like Laravel or Kirby\n- 👀 [Watch mode](#watch) included\n- 🔌 Supports custom configurations via [`unocss.config.js`](#unocssconfigjs-support)\n\n## Requirements\n\n- Node 14+ (Node 16 recommended)\n\n## Installation\n\nThis package is shipped with the `unocss` package:\n\n```bash\nnpm i -D unocss\n```\n\nYou can also install it standalone:\n\n```bash\nnpm i -D @unocss/cli\n```\n\n## Usage\n\nYou can also pass multiple glob patterns to `@unocss/cli`:\n\n```bash\nunocss \"site/snippets/**/*.php\" \"site/templates/**/*.php\"\n```\n\nExample package configuration:\n\n> ℹ️ Make sure to add escaped quotes to your npm script glob patterns.\n\n```json\n{\n \"scripts\": {\n \"dev\": \"unocss \\\"site/{snippets,templates}/**/*.php\\\" --watch\",\n \"build\": \"unocss \\\"site/{snippets,templates}/**/*.php\\\"\"\n },\n \"devDependencies\": {\n \"@unocss/cli\": \"latest\"\n }\n}\n```\n\n### Development\n\nAdd the `--watch` (or `-w`) flag to enable watching for file changes:\n\n```bash\nunocss \"site/{snippets,templates}/**/*.php\" --watch\n```\n\n### Production\n\n```bash\nunocss \"site/{snippets,templates}/**/*.php\"\n```\n\nThe final `uno.css` will be generated to the current directory by default.\n\n## Built-in Features\n\n### Configurations\n\nCreate a `unocss.config.js` or `unocss.config.ts` configuration file the root-level of your project to customize UnoCSS.\n\n```js\nimport { defineConfig } from 'unocss'\n\nexport default defineConfig({\n shortcuts: [\n { box: 'max-w-7xl mx-auto bg-gray-100 rounded-md shadow-sm p-4' },\n ],\n})\n```\n\nFor a list of options, head over to the [UnoCSS configurations](https://github.com/unocss/unocss#configurations) docs.\n\n## CLI Options\n\n> Inspect all available options with `unocss --help`.\n\n### `--out-file`\n\nThe output filename for the generated UnoCSS file. Defaults to `uno.css` in the current working directory.\n\n### `--watch`\n\nIndicates if the files found by the glob pattern should be watched.\n\n## License\n\nMIT License © 2021-PRESENT [Anthony Fu](https://github.com/antfu)\n\nMIT License © 2021-PRESENT [Johann Schopplich](https://github.com/johannschopplich)\n"
|
|
50
51
|
}
|