@unocss/cli 0.32.1 → 0.32.9

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/LICENSE CHANGED
@@ -1,7 +1,7 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2021 Anthony Fu <https://github.com/antfu>
4
- Copyright (c) 2021 Johann Schopplich <https://github.com/johannschopplich>
3
+ Copyright (c) 2021-PRESENT Anthony Fu <https://github.com/antfu>
4
+ Copyright (c) 2021-PRESENT Johann Schopplich <https://github.com/johannschopplich>
5
5
 
6
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
7
7
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -98,6 +98,6 @@ Indicates if the files found by the glob pattern should be watched.
98
98
 
99
99
  ## License
100
100
 
101
- MIT License © 2021-PRESENT [Anthony Fu](https://github.com/antfu)
101
+ MIT License &copy; 2021-PRESENT [Anthony Fu](https://github.com/antfu)
102
102
 
103
- MIT License © 2021-PRESENT [Johann Schopplich](https://github.com/johannschopplich)
103
+ MIT License &copy; 2021-PRESENT [Johann Schopplich](https://github.com/johannschopplich)
@@ -8,7 +8,7 @@ import { createGenerator, toArray } from '@unocss/core';
8
8
  import { loadConfig } from '@unocss/config';
9
9
  import presetUno from '@unocss/preset-uno';
10
10
 
11
- const version = "0.32.1";
11
+ const version = "0.32.9";
12
12
 
13
13
  class PrettyError extends Error {
14
14
  constructor(message) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/cli",
3
- "version": "0.32.1",
3
+ "version": "0.32.9",
4
4
  "description": "CLI for UnoCSS",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/unocss/unocss/tree/main/packages/cli#readme",
@@ -39,9 +39,9 @@
39
39
  "node": ">=14"
40
40
  },
41
41
  "dependencies": {
42
- "@unocss/config": "0.32.1",
43
- "@unocss/core": "0.32.1",
44
- "@unocss/preset-uno": "0.32.1",
42
+ "@unocss/config": "0.32.9",
43
+ "@unocss/core": "0.32.9",
44
+ "@unocss/preset-uno": "0.32.9",
45
45
  "cac": "^6.7.12",
46
46
  "chokidar": "^3.5.3",
47
47
  "colorette": "^2.0.16",
@@ -53,6 +53,5 @@
53
53
  "scripts": {
54
54
  "build": "unbuild",
55
55
  "stub": "unbuild --stub"
56
- },
57
- "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"
56
+ }
58
57
  }