@kiln-ssg/tailwindcss 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.
- package/README.md +37 -2
- package/package.json +23 -5
package/README.md
CHANGED
|
@@ -1,9 +1,44 @@
|
|
|
1
1
|
# @kiln-ssg/tailwindcss
|
|
2
2
|
|
|
3
|
-
The Tailwind CSS processor
|
|
3
|
+
The Tailwind CSS processor for [kiln](https://github.com/hakula139/kiln). It includes Tailwind CSS and its typography plugin, exposing the `kiln-tailwindcss` command that kiln invokes for site and page stylesheets.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Install the published package with Node.js 20 or later:
|
|
4
8
|
|
|
5
9
|
```bash
|
|
6
10
|
npm install -g @kiln-ssg/tailwindcss
|
|
7
11
|
```
|
|
8
12
|
|
|
9
|
-
|
|
13
|
+
Nix users can install the package from this repository:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
nix profile add github:hakula139/kiln-tailwindcss
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Kiln's Nix package supplies this processor automatically. Set `[css] processor = "tailwind"` in the site or theme configuration to select it.
|
|
20
|
+
|
|
21
|
+
## Command contract
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
kiln-tailwindcss input.css > output.css
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
The command reads one UTF-8 stylesheet, resolves imports and plugins relative to that input and the processor's installed dependencies, scans Tailwind's declared sources, and writes compiled CSS to stdout. Compilation errors produce a nonzero exit status and diagnostics on stderr. Kiln generates the input stylesheet with its content and template sources and shared stylesheet references.
|
|
28
|
+
|
|
29
|
+
## Development
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
nix develop
|
|
33
|
+
npm ci
|
|
34
|
+
npm test
|
|
35
|
+
npm run format
|
|
36
|
+
npm run lint
|
|
37
|
+
npm run spellcheck
|
|
38
|
+
nix flake check
|
|
39
|
+
nix build .#kiln-tailwindcss
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
The flake exposes `packages.<system>.default` and `packages.<system>.kiln-tailwindcss`.
|
|
43
|
+
|
|
44
|
+
See [RELEASING.md](RELEASING.md) for independent npm releases.
|
package/package.json
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiln-ssg/tailwindcss",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Tailwind CSS processor for kiln static sites",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "https://github.com/hakula139/kiln.git"
|
|
9
|
-
"directory": "packages/css"
|
|
8
|
+
"url": "https://github.com/hakula139/kiln-tailwindcss.git"
|
|
10
9
|
},
|
|
11
|
-
"homepage": "https://github.com/hakula139/kiln",
|
|
10
|
+
"homepage": "https://github.com/hakula139/kiln-tailwindcss",
|
|
12
11
|
"bugs": {
|
|
13
|
-
"url": "https://github.com/hakula139/kiln/issues"
|
|
12
|
+
"url": "https://github.com/hakula139/kiln-tailwindcss/issues"
|
|
14
13
|
},
|
|
15
14
|
"type": "module",
|
|
16
15
|
"bin": {
|
|
@@ -29,5 +28,24 @@
|
|
|
29
28
|
},
|
|
30
29
|
"publishConfig": {
|
|
31
30
|
"access": "public"
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"format": "npm run format:prettier && npm run format:markdown",
|
|
34
|
+
"format:markdown": "dprint check",
|
|
35
|
+
"format:prettier": "prettier --check \"**/*.{json,mjs}\"",
|
|
36
|
+
"lint": "npm run lint:md && npm run lint:js",
|
|
37
|
+
"lint:js": "eslint .",
|
|
38
|
+
"lint:md": "markdownlint-cli2 \"*.md\"",
|
|
39
|
+
"spellcheck": "cspell --no-progress \"**/*\"",
|
|
40
|
+
"test": "node --test"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@eslint/js": "^10.0.1",
|
|
44
|
+
"cspell": "^10.3.4",
|
|
45
|
+
"dprint": "^0.57.4",
|
|
46
|
+
"eslint": "^10.11.0",
|
|
47
|
+
"globals": "^17.12.0",
|
|
48
|
+
"markdownlint-cli2": "^0.23.3",
|
|
49
|
+
"prettier": "^3.9.9"
|
|
32
50
|
}
|
|
33
51
|
}
|