@schalkneethling/css-property-type-validator-cli 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +32 -0
  2. package/package.json +4 -3
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # @schalkneethling/css-property-type-validator-cli
2
+
3
+ CLI for CSS Property Type Validator.
4
+
5
+ This package validates CSS `@property` registrations and checks whether registered custom properties are used compatibly through `var()`.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install --global @schalkneethling/css-property-type-validator-cli
11
+ ```
12
+
13
+ Or run it with `npx`:
14
+
15
+ ```bash
16
+ npx @schalkneethling/css-property-type-validator-cli "src/**/*.css"
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ ```bash
22
+ css-property-type-validator "src/**/*.css"
23
+ css-property-type-validator "src/**/*.css" --format json
24
+ ```
25
+
26
+ ## Exit codes
27
+
28
+ - `0` no diagnostics found
29
+ - `1` validation diagnostics found
30
+ - `2` CLI or input failure
31
+
32
+ Repository: [schalkneethling/css-property-type-validator](https://github.com/schalkneethling/css-property-type-validator)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schalkneethling/css-property-type-validator-cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "CLI for CSS custom property type validator.",
5
5
  "keywords": [
6
6
  "css",
@@ -15,7 +15,8 @@
15
15
  "css-property-type-validator": "./dist/cli.js"
16
16
  },
17
17
  "files": [
18
- "dist"
18
+ "dist",
19
+ "README.md"
19
20
  ],
20
21
  "type": "module",
21
22
  "repository": {
@@ -32,7 +33,7 @@
32
33
  },
33
34
  "dependencies": {
34
35
  "commander": "^14.0.3",
35
- "@schalkneethling/css-property-type-validator-core": "0.1.0"
36
+ "@schalkneethling/css-property-type-validator-core": "0.1.1"
36
37
  },
37
38
  "scripts": {
38
39
  "build": "tsc -p tsconfig.json"