@navecss/core 0.4.0 → 0.6.0
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/CONSUMER-ATOMS.md +15 -11
- package/LICENSE +22 -0
- package/README.md +300 -33
- package/dist/{atom-names-2OreuBx9.d.ts → atom-names-B8Ud-7zD.d.ts} +2 -1
- package/dist/atoms.d.ts +3 -2
- package/dist/bin.js +98 -15
- package/dist/check.d.ts +2 -1
- package/dist/check.js +4 -3
- package/dist/{chunk-NFS2REPQ.js → chunk-2K5EBBF2.js} +1 -191
- package/dist/chunk-2TNTYI4L.js +7 -0
- package/dist/{chunk-LQSGQ2OA.js → chunk-B5CWZIBK.js} +3 -2
- package/dist/{chunk-XQQCDUV6.js → chunk-CTFEYJBE.js} +1 -1
- package/dist/{chunk-E5F6YF7A.js → chunk-EYMFWE3A.js} +2273 -126
- package/dist/chunk-KDLLTOAM.js +4031 -0
- package/dist/{chunk-2A7IUZBH.js → chunk-R6R5DSTT.js} +8 -8
- package/dist/chunk-UVHGEVMV.js +204 -0
- package/dist/{chunk-UANF3FGO.js → chunk-ZNTNLGEC.js} +2 -1
- package/dist/collect.d.ts +340 -6
- package/dist/collect.js +38 -1
- package/dist/css.d.ts +1 -0
- package/dist/cx.d.ts +1 -1
- package/dist/lightningcss.d.ts +3 -2
- package/dist/lightningcss.js +7 -4
- package/dist/postcss.d.ts +29 -3
- package/dist/postcss.js +331 -81
- package/dist/standalone.css +2 -0
- package/dist/{vite-options-D1-hGA9L.d.ts → vite-options-sOCeGn9B.d.ts} +3 -2
- package/dist/vite.d.ts +24 -3
- package/dist/vite.js +1541 -2284
- package/package.json +53 -24
- package/skills/navecss/SKILL.md +15 -1
- package/dist/chunk-LADFXRWQ.js +0 -1089
package/dist/vite.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AtomDefinition } from './atoms.js';
|
|
2
|
-
import {
|
|
3
|
-
import './atom-names-
|
|
2
|
+
import { UsedAtomOptions } from './collect.js';
|
|
3
|
+
import './atom-names-B8Ud-7zD.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The few shapes of Vite's (and Rollup's) own objects the plugin touches, declared here rather
|
|
@@ -70,6 +70,9 @@ interface BuilderLike {
|
|
|
70
70
|
interface EnvironmentLike {
|
|
71
71
|
readonly name: string;
|
|
72
72
|
readonly config: {
|
|
73
|
+
readonly build?: {
|
|
74
|
+
readonly emitAssets?: boolean;
|
|
75
|
+
};
|
|
73
76
|
readonly command?: string;
|
|
74
77
|
readonly consumer: string;
|
|
75
78
|
readonly inlineConfig?: object;
|
|
@@ -215,6 +218,19 @@ interface BundleEntry {
|
|
|
215
218
|
readonly type: string;
|
|
216
219
|
readonly fileName: string;
|
|
217
220
|
readonly source?: string | Uint8Array;
|
|
221
|
+
/**
|
|
222
|
+
* The names an asset was emitted under, and the files it was made from: they survive a
|
|
223
|
+
* renaming of the file.
|
|
224
|
+
*/
|
|
225
|
+
readonly names?: readonly string[];
|
|
226
|
+
readonly originalFileNames?: readonly string[];
|
|
227
|
+
/**
|
|
228
|
+
* What a chunk holds, and the stylesheets it imports.
|
|
229
|
+
*/
|
|
230
|
+
readonly modules?: Readonly<Record<string, unknown>>;
|
|
231
|
+
readonly viteMetadata?: {
|
|
232
|
+
readonly importedCss?: ReadonlySet<string>;
|
|
233
|
+
};
|
|
218
234
|
}
|
|
219
235
|
interface TransformResultLike {
|
|
220
236
|
readonly code: string;
|
|
@@ -234,6 +250,10 @@ interface NaveCollectPlugin {
|
|
|
234
250
|
readonly transformIndexHtml: HtmlHook;
|
|
235
251
|
buildStart(this: RenderContext): Promise<void>;
|
|
236
252
|
buildEnd(this: RenderContext, error?: unknown): Promise<void>;
|
|
253
|
+
readonly generateBundle: {
|
|
254
|
+
handler(this: BundleContext, options: unknown, bundle: Record<string, BundleEntry>): void;
|
|
255
|
+
readonly order: 'pre';
|
|
256
|
+
};
|
|
237
257
|
}
|
|
238
258
|
|
|
239
259
|
/**
|
|
@@ -365,4 +385,5 @@ type NavePlugins = [NaveVitePlugin, NaveCollectPlugin];
|
|
|
365
385
|
*/
|
|
366
386
|
declare function navePlugin(options?: NaveViteOptions): NavePlugins;
|
|
367
387
|
|
|
368
|
-
export {
|
|
388
|
+
export { navePlugin as default, navePlugin };
|
|
389
|
+
export type { NavePlugins, NaveViteOptions, NaveVitePlugin };
|