@shortwind/next 0.1.0-beta.0 → 0.1.0-beta.2
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 +28 -0
- package/package.json +12 -3
package/README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# @shortwind/next
|
|
2
|
+
|
|
3
|
+
Next.js plugin for [Shortwind](https://shortwind.dev) — expands `@recipe` tokens before Tailwind's content scan, on both Webpack and Turbopack.
|
|
4
|
+
|
|
5
|
+
> Most projects don't add this by hand — `npx @shortwind/cli@beta init` installs and wires it for you.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm i -D @shortwind/next@beta @shortwind/cli@beta
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
Wrap your Next config:
|
|
16
|
+
|
|
17
|
+
```ts
|
|
18
|
+
// next.config.ts
|
|
19
|
+
import { withShortwind } from "@shortwind/next";
|
|
20
|
+
|
|
21
|
+
export default withShortwind({
|
|
22
|
+
// your Next config
|
|
23
|
+
});
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Reads recipes from `./recipes/`. Run `npx @shortwind/cli@beta init` first to scaffold the catalog, theme, and `SKILL.md`.
|
|
27
|
+
|
|
28
|
+
Docs: <https://shortwind.dev>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shortwind/next",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.2",
|
|
4
4
|
"description": "Next.js plugin for Shortwind. Webpack and Turbopack.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"next": ">=14.0.0"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@shortwind/core": "0.1.0-beta.
|
|
16
|
-
"@shortwind/tailwind": "0.1.0-beta.
|
|
15
|
+
"@shortwind/core": "0.1.0-beta.2",
|
|
16
|
+
"@shortwind/tailwind": "0.1.0-beta.2"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/node": "^25.7.0"
|
|
@@ -22,6 +22,15 @@
|
|
|
22
22
|
"access": "public",
|
|
23
23
|
"tag": "beta"
|
|
24
24
|
},
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "git+https://github.com/raymond-UI/shortwind.git",
|
|
28
|
+
"directory": "packages/next"
|
|
29
|
+
},
|
|
30
|
+
"homepage": "https://shortwind.dev",
|
|
31
|
+
"bugs": {
|
|
32
|
+
"url": "https://github.com/raymond-UI/shortwind/issues"
|
|
33
|
+
},
|
|
25
34
|
"scripts": {
|
|
26
35
|
"build": "tsc",
|
|
27
36
|
"typecheck": "tsc --noEmit",
|