mintcss 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 +1 -50
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
# mintcss
|
|
2
2
|
|
|
3
|
-
Small, dependency-free CSS-in-JS for browser applications.
|
|
4
|
-
[Salvia](https://github.com/nexryai/rosmarinus/tree/main/salvia), with no React
|
|
5
|
-
runtime or type dependency. MIT licensed.
|
|
3
|
+
Small, dependency-free CSS-in-JS for browser applications.
|
|
6
4
|
|
|
7
5
|
## Install
|
|
8
6
|
|
|
@@ -98,50 +96,3 @@ The serializer rejects malformed properties and rules, non-finite numeric
|
|
|
98
96
|
values, and certain injection-like strings. It is **not an untrusted-input
|
|
99
97
|
sanitizer**: pass application-authored styles and validate external data before
|
|
100
98
|
using it, particularly URLs. It does not enforce an external URL policy.
|
|
101
|
-
|
|
102
|
-
## Tests
|
|
103
|
-
|
|
104
|
-
Tests with a DOM environment can reset the shared stylesheet between cases:
|
|
105
|
-
|
|
106
|
-
```ts
|
|
107
|
-
import { afterEach } from "vitest";
|
|
108
|
-
import { __resetCssForTests } from "mintcss/testing";
|
|
109
|
-
|
|
110
|
-
afterEach(__resetCssForTests);
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
This helper removes all mintcss rules in the current document. Use it only in tests.
|
|
114
|
-
|
|
115
|
-
## Development and publishing
|
|
116
|
-
|
|
117
|
-
Use Node.js 22.12 or later:
|
|
118
|
-
|
|
119
|
-
```sh
|
|
120
|
-
npm ci
|
|
121
|
-
npm run lint
|
|
122
|
-
npm run check
|
|
123
|
-
npm test
|
|
124
|
-
npm run test:package
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
`test:package` builds a real npm tarball, installs it into a temporary consumer,
|
|
128
|
-
and checks its ESM exports, TypeScript declarations, and shipped files without
|
|
129
|
-
React. CI runs these checks on Node.js 22 and 24. The Biome configuration and
|
|
130
|
-
version are copied from Salvia; package-internal `#` imports keep the same rule
|
|
131
|
-
against relative imports.
|
|
132
|
-
|
|
133
|
-
For the first release, verify the package name is still available and sign in
|
|
134
|
-
to an npm account authorized to publish it:
|
|
135
|
-
|
|
136
|
-
```sh
|
|
137
|
-
npm view mintcss
|
|
138
|
-
npm login
|
|
139
|
-
npm publish --dry-run
|
|
140
|
-
npm publish
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
The initial version is `0.1.0`. `prepack` builds `dist`; `prepublishOnly` runs the
|
|
144
|
-
checks before publishing. Only compiled JavaScript, declarations, README,
|
|
145
|
-
LICENSE, and package metadata are shipped. Later releases must increment the
|
|
146
|
-
version before publishing. Publishing is manual; a successful CI run does not
|
|
147
|
-
publish a release.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mintcss",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Small, dependency-free CSS-in-JS for browser applications
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Small, dependency-free CSS-in-JS for browser applications.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "nexryai",
|