@shortwind/next 0.1.0-beta.1 → 0.1.0-beta.11
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 +7 -3
- package/dist/index.d.ts +5 -27
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20 -2
- package/dist/index.js.map +1 -1
- package/dist/loader.d.ts +2 -0
- package/dist/loader.d.ts.map +1 -1
- package/dist/loader.js +21 -3
- package/dist/loader.js.map +1 -1
- package/package.json +15 -5
package/README.md
CHANGED
|
@@ -12,15 +12,19 @@ npm i -D @shortwind/next@beta @shortwind/cli@beta
|
|
|
12
12
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
15
|
-
Wrap your Next config
|
|
15
|
+
Wrap your Next config. `withShortwind` is curried — the first call takes
|
|
16
|
+
Shortwind options (usually none), the second your Next config:
|
|
16
17
|
|
|
17
18
|
```ts
|
|
18
19
|
// next.config.ts
|
|
20
|
+
import type { NextConfig } from "next";
|
|
19
21
|
import { withShortwind } from "@shortwind/next";
|
|
20
22
|
|
|
21
|
-
|
|
23
|
+
const nextConfig: NextConfig = {
|
|
22
24
|
// your Next config
|
|
23
|
-
}
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default withShortwind()(nextConfig);
|
|
24
28
|
```
|
|
25
29
|
|
|
26
30
|
Reads recipes from `./recipes/`. Run `npx @shortwind/cli@beta init` first to scaffold the catalog, theme, and `SKILL.md`.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,35 +1,13 @@
|
|
|
1
|
+
import type { NextConfig } from "next";
|
|
1
2
|
export type ShortwindNextOptions = {
|
|
2
3
|
recipesDir?: string;
|
|
3
4
|
cwd?: string;
|
|
4
|
-
|
|
5
|
-
type WebpackConfig = {
|
|
6
|
-
module?: {
|
|
7
|
-
rules?: unknown[];
|
|
8
|
-
};
|
|
9
|
-
[k: string]: unknown;
|
|
10
|
-
};
|
|
11
|
-
type WebpackContext = {
|
|
12
|
-
dev: boolean;
|
|
13
|
-
isServer: boolean;
|
|
14
|
-
};
|
|
15
|
-
type TurbopackRule = {
|
|
16
|
-
loaders: Array<{
|
|
17
|
-
loader: string;
|
|
18
|
-
options?: unknown;
|
|
19
|
-
}>;
|
|
20
|
-
[k: string]: unknown;
|
|
21
|
-
};
|
|
22
|
-
type TurbopackConfig = {
|
|
23
|
-
rules?: Record<string, TurbopackRule>;
|
|
24
|
-
[k: string]: unknown;
|
|
25
|
-
};
|
|
26
|
-
type NextConfig = {
|
|
27
|
-
webpack?: (config: WebpackConfig, ctx: WebpackContext) => WebpackConfig;
|
|
28
|
-
turbopack?: TurbopackConfig;
|
|
29
|
-
experimental?: Record<string, unknown>;
|
|
30
|
-
[k: string]: unknown;
|
|
5
|
+
strict?: boolean;
|
|
31
6
|
};
|
|
32
7
|
export declare function withShortwind(options?: ShortwindNextOptions): (nextConfig?: NextConfig) => NextConfig;
|
|
33
8
|
export { default as shortwindLoader } from "./loader.js";
|
|
34
9
|
export type { ShortwindLoaderOptions } from "./loader.js";
|
|
10
|
+
export { expandClassList } from "@shortwind/core";
|
|
11
|
+
export { loadRegistryFromDir } from "@shortwind/tailwind";
|
|
12
|
+
export type { Registry } from "@shortwind/core";
|
|
35
13
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEvC,MAAM,MAAM,oBAAoB,GAAG;IACjC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IAKb,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAcF,wBAAgB,aAAa,CAC3B,OAAO,GAAE,oBAAyB,GACjC,CAAC,UAAU,CAAC,EAAE,UAAU,KAAK,UAAU,CA8CzC;AAED,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,aAAa,CAAC;AACzD,YAAY,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAO1D,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC1D,YAAY,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -10,12 +10,18 @@ export function withShortwind(options = {}) {
|
|
|
10
10
|
const cwd = options.cwd ?? process.cwd();
|
|
11
11
|
const recipesDir = options.recipesDir ?? path.join(cwd, "recipes");
|
|
12
12
|
return (nextConfig = {}) => {
|
|
13
|
-
const loaderOptions = { recipesDir };
|
|
13
|
+
const loaderOptions = { recipesDir, strict: options.strict ?? false };
|
|
14
14
|
const previousWebpack = nextConfig.webpack;
|
|
15
15
|
const wrapped = {
|
|
16
16
|
...nextConfig,
|
|
17
|
+
// Next types the hook's config as `any`; narrow it locally to the slice
|
|
18
|
+
// we touch and let `ctx` take its contextual WebpackConfigContext type.
|
|
19
|
+
// The truthy guard also covers `webpack: null`, which Next's config type
|
|
20
|
+
// explicitly allows.
|
|
17
21
|
webpack(config, ctx) {
|
|
18
|
-
const next = previousWebpack
|
|
22
|
+
const next = previousWebpack
|
|
23
|
+
? previousWebpack(config, ctx)
|
|
24
|
+
: config;
|
|
19
25
|
next.module ??= {};
|
|
20
26
|
next.module.rules ??= [];
|
|
21
27
|
const rule = {
|
|
@@ -32,6 +38,11 @@ export function withShortwind(options = {}) {
|
|
|
32
38
|
};
|
|
33
39
|
const turbo = nextConfig.turbopack ?? {};
|
|
34
40
|
const rules = { ...(turbo.rules ?? {}) };
|
|
41
|
+
// Asymmetry vs the webpack rule's `exclude: /node_modules/`: Turbopack rule
|
|
42
|
+
// keys are globs with no negation syntax, so a node_modules exclude can't be
|
|
43
|
+
// expressed here. Turbopack does not apply custom loader rules to
|
|
44
|
+
// node_modules by default, so dependency files aren't transformed; the
|
|
45
|
+
// loader is also a no-op on any file without `@recipe` tokens.
|
|
35
46
|
rules["*.{tsx,ts,jsx,js,mdx,md}"] = {
|
|
36
47
|
loaders: [{ loader: LOADER_PATH, options: loaderOptions }],
|
|
37
48
|
};
|
|
@@ -40,4 +51,11 @@ export function withShortwind(options = {}) {
|
|
|
40
51
|
};
|
|
41
52
|
}
|
|
42
53
|
export { default as shortwindLoader } from "./loader.js";
|
|
54
|
+
// Re-exported so the documented rc() escape hatch resolves from the package
|
|
55
|
+
// init actually installs — `@shortwind/core` is only a transitive dependency
|
|
56
|
+
// (#63). In Next the registry load is server-side (loadRegistryFromDir reads
|
|
57
|
+
// recipes/ from disk); expand in a server component or route and pass the
|
|
58
|
+
// resulting plain-Tailwind string to the client as a prop.
|
|
59
|
+
export { expandClassList } from "@shortwind/core";
|
|
60
|
+
export { loadRegistryFromDir } from "@shortwind/tailwind";
|
|
43
61
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAuBjD,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,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AAE,kBAAkB,EAAE,CAAC;gBAClC,OAAO,IAAI,CAAC;YACd,CAAC;SACF,CAAC;QAEF,MAAM,KAAK,GAAG,UAAU,CAAC,SAAS,IAAI,EAAE,CAAC;QACzC,MAAM,KAAK,GAAkD,EAAE,GAAG,CAAC,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC,EAAE,CAAC;QACxF,4EAA4E;QAC5E,6EAA6E;QAC7E,kEAAkE;QAClE,uEAAuE;QACvE,+DAA+D;QAC/D,KAAK,CAAC,0BAA0B,CAAC,GAAG;YAClC,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC;SAC3D,CAAC;QACF,OAAO,CAAC,SAAS,GAAG,EAAE,GAAG,KAAK,EAAE,KAAK,EAAE,CAAC;QAExC,OAAO,OAAO,CAAC;IACjB,CAAC,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,aAAa,CAAC;AAGzD,4EAA4E;AAC5E,6EAA6E;AAC7E,6EAA6E;AAC7E,0EAA0E;AAC1E,2DAA2D;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC"}
|
package/dist/loader.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { type TransformOptions } from "@shortwind/tailwind";
|
|
|
2
2
|
export type ShortwindLoaderOptions = {
|
|
3
3
|
recipesDir: string;
|
|
4
4
|
mode?: TransformOptions["mode"];
|
|
5
|
+
strict?: boolean;
|
|
5
6
|
};
|
|
6
7
|
export declare function clearRegistryCache(): void;
|
|
7
8
|
type LoaderContext = {
|
|
@@ -10,6 +11,7 @@ type LoaderContext = {
|
|
|
10
11
|
addDependency?: (file: string) => void;
|
|
11
12
|
addContextDependency?: (dir: string) => void;
|
|
12
13
|
emitError?: (err: Error) => void;
|
|
14
|
+
emitWarning?: (err: Error) => void;
|
|
13
15
|
};
|
|
14
16
|
export default function shortwindLoader(this: LoaderContext, source: string): string;
|
|
15
17
|
export {};
|
package/dist/loader.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../src/loader.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"loader.d.ts","sourceRoot":"","sources":["../src/loader.ts"],"names":[],"mappings":"AAEA,OAAO,EAOL,KAAK,gBAAgB,EACtB,MAAM,qBAAqB,CAAC;AAG7B,MAAM,MAAM,sBAAsB,GAAG;IACnC,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAIhC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAqCF,wBAAgB,kBAAkB,IAAI,IAAI,CAEzC;AAED,KAAK,aAAa,GAAG;IACnB,UAAU,EAAE,MAAM,sBAAsB,CAAC;IACzC,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,oBAAoB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC;CACpC,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,IAAI,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAyCnF"}
|
package/dist/loader.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { existsSync, readdirSync, statSync } from "node:fs";
|
|
2
2
|
import path from "node:path";
|
|
3
|
-
import { loadRegistryFromDir, transformContent, } from "@shortwind/tailwind";
|
|
3
|
+
import { findResidualRecipeTokens, findUnexpandedRecipes, loadRegistryFromDir, modeForFile, residualRecipeMessage, transformContent, } from "@shortwind/tailwind";
|
|
4
4
|
const registryCache = new Map();
|
|
5
5
|
function recipesSignature(recipesDir) {
|
|
6
6
|
if (!existsSync(recipesDir))
|
|
@@ -50,7 +50,25 @@ export default function shortwindLoader(source) {
|
|
|
50
50
|
for (const file of entry.files)
|
|
51
51
|
this.addDependency(file);
|
|
52
52
|
}
|
|
53
|
-
const mode = options.mode ?? (this.resourcePath
|
|
54
|
-
|
|
53
|
+
const mode = options.mode ?? modeForFile(this.resourcePath);
|
|
54
|
+
const out = transformContent(source, entry.registry, { mode });
|
|
55
|
+
// Leak reporting (#67), consistent with @shortwind/vite: strict mode scans
|
|
56
|
+
// the whole output (the class-value scan can't see a recipe assigned to a
|
|
57
|
+
// variable/prop) and errors the module so `next build` fails instead of
|
|
58
|
+
// shipping unstyled UI; the default surfaces a webpack warning for the
|
|
59
|
+
// class-value cases it can attribute.
|
|
60
|
+
if (options.strict) {
|
|
61
|
+
const residual = findResidualRecipeTokens(out, entry.registry);
|
|
62
|
+
if (residual.length > 0 && this.emitError) {
|
|
63
|
+
this.emitError(new Error(`${residualRecipeMessage(this.resourcePath, residual)} (strict mode: failing the build — pass strict: false to demote this to a warning)`));
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
const leftover = findUnexpandedRecipes(out, entry.registry);
|
|
68
|
+
if (leftover.length > 0 && this.emitWarning) {
|
|
69
|
+
this.emitWarning(new Error(residualRecipeMessage(this.resourcePath, leftover)));
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return out;
|
|
55
73
|
}
|
|
56
74
|
//# sourceMappingURL=loader.js.map
|
package/dist/loader.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.js","sourceRoot":"","sources":["../src/loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,SAAS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for Shortwind. Webpack and Turbopack.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -12,19 +12,29 @@
|
|
|
12
12
|
"next": ">=14.0.0"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@shortwind/
|
|
16
|
-
"@shortwind/
|
|
15
|
+
"@shortwind/core": "0.1.0-beta.11",
|
|
16
|
+
"@shortwind/tailwind": "0.1.0-beta.11"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@types/node": "^25.7.0"
|
|
19
|
+
"@types/node": "^25.7.0",
|
|
20
|
+
"next": "^16.2.6"
|
|
20
21
|
},
|
|
21
22
|
"publishConfig": {
|
|
22
23
|
"access": "public",
|
|
23
24
|
"tag": "beta"
|
|
24
25
|
},
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "git+https://github.com/raymond-UI/shortwind.git",
|
|
29
|
+
"directory": "packages/next"
|
|
30
|
+
},
|
|
31
|
+
"homepage": "https://shortwind.dev",
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/raymond-UI/shortwind/issues"
|
|
34
|
+
},
|
|
25
35
|
"scripts": {
|
|
26
36
|
"build": "tsc",
|
|
27
|
-
"typecheck": "tsc --noEmit",
|
|
37
|
+
"typecheck": "tsc --noEmit && tsc -p tsconfig.typetest.json",
|
|
28
38
|
"test": "vitest run"
|
|
29
39
|
}
|
|
30
40
|
}
|