@animus-ui/next-plugin 0.1.0-next.38 → 0.1.0-next.39
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 +35 -0
- package/package.json +15 -3
package/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# @animus-ui/next-plugin
|
|
2
|
+
|
|
3
|
+
Static CSS extraction for Next.js. Wraps `next.config` to integrate the Animus extraction pipeline via webpack.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @animus-ui/next-plugin @animus-ui/system
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Setup
|
|
12
|
+
|
|
13
|
+
```tsx
|
|
14
|
+
// next.config.mjs
|
|
15
|
+
import { withAnimus } from '@animus-ui/next-plugin';
|
|
16
|
+
|
|
17
|
+
const nextConfig = {
|
|
18
|
+
// your existing Next.js config
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export default withAnimus(nextConfig, {
|
|
22
|
+
system: './src/ds.ts',
|
|
23
|
+
});
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## What It Does
|
|
27
|
+
|
|
28
|
+
- Adds a webpack loader that transforms `@animus-ui/system` builder chains into static CSS
|
|
29
|
+
- Emits extracted CSS as a separate asset with `@layer` ordering
|
|
30
|
+
- Works with both App Router and Pages Router
|
|
31
|
+
- Supports RSC — no runtime style injection means server components work out of the box
|
|
32
|
+
|
|
33
|
+
## License
|
|
34
|
+
|
|
35
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@animus-ui/next-plugin",
|
|
3
|
-
"version": "0.1.0-next.
|
|
3
|
+
"version": "0.1.0-next.39",
|
|
4
4
|
"description": "Animus static CSS extraction for Next.js (webpack)",
|
|
5
5
|
"author": "codecaaron <airrobb@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -25,10 +25,22 @@
|
|
|
25
25
|
"publishConfig": {
|
|
26
26
|
"access": "public"
|
|
27
27
|
},
|
|
28
|
+
"homepage": "https://github.com/codecaaron/animus/tree/main/packages/next-plugin#readme",
|
|
28
29
|
"repository": {
|
|
29
30
|
"type": "git",
|
|
30
|
-
"url": "git+https://github.com/codecaaron/animus"
|
|
31
|
+
"url": "git+https://github.com/codecaaron/animus",
|
|
32
|
+
"directory": "packages/next-plugin"
|
|
31
33
|
},
|
|
34
|
+
"keywords": [
|
|
35
|
+
"next",
|
|
36
|
+
"nextjs",
|
|
37
|
+
"webpack",
|
|
38
|
+
"css",
|
|
39
|
+
"css-in-js",
|
|
40
|
+
"zero-runtime",
|
|
41
|
+
"styled",
|
|
42
|
+
"animus"
|
|
43
|
+
],
|
|
32
44
|
"scripts": {
|
|
33
45
|
"build": "bun run build:ts",
|
|
34
46
|
"build:ts": "tsdown && tsc -p tsconfig.build.json",
|
|
@@ -39,6 +51,6 @@
|
|
|
39
51
|
"webpack": ">=5.0.0"
|
|
40
52
|
},
|
|
41
53
|
"dependencies": {
|
|
42
|
-
"@animus-ui/extract": "0.1.0-next.
|
|
54
|
+
"@animus-ui/extract": "0.1.0-next.39"
|
|
43
55
|
}
|
|
44
56
|
}
|