@quilted/rollup 0.1.4 → 0.1.5
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/CHANGELOG.md +8 -0
- package/build/cjs/app.cjs +144 -142
- package/build/cjs/features/assets.cjs +130 -0
- package/build/cjs/{env.cjs → features/env.cjs} +4 -4
- package/build/cjs/{request-router.cjs → features/request-router.cjs} +3 -3
- package/build/cjs/{shared → features}/source-code.cjs +1 -1
- package/build/cjs/features/system-js.cjs +35 -0
- package/build/cjs/index.cjs +0 -7
- package/build/cjs/shared/rollup.cjs +0 -4
- package/build/esm/app.mjs +146 -144
- package/build/esm/features/assets.mjs +107 -0
- package/build/esm/{env.mjs → features/env.mjs} +4 -4
- package/build/esm/{request-router.mjs → features/request-router.mjs} +3 -3
- package/build/esm/features/system-js.mjs +33 -0
- package/build/esm/index.mjs +1 -3
- package/build/esm/shared/rollup.mjs +1 -4
- package/build/esnext/app.esnext +146 -144
- package/build/esnext/features/assets.esnext +107 -0
- package/build/esnext/{env.esnext → features/env.esnext} +4 -4
- package/build/esnext/{request-router.esnext → features/request-router.esnext} +3 -3
- package/build/esnext/features/system-js.esnext +33 -0
- package/build/esnext/index.esnext +1 -3
- package/build/esnext/shared/rollup.esnext +1 -4
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/typescript/app.d.ts +32 -144
- package/build/typescript/app.d.ts.map +1 -1
- package/build/typescript/features/assets.d.ts +13 -0
- package/build/typescript/features/assets.d.ts.map +1 -0
- package/build/typescript/features/css.d.ts +16 -0
- package/build/typescript/features/css.d.ts.map +1 -0
- package/build/typescript/features/env.d.ts +57 -0
- package/build/typescript/features/env.d.ts.map +1 -0
- package/build/typescript/features/graphql/transform.d.ts +17 -0
- package/build/typescript/features/graphql/transform.d.ts.map +1 -0
- package/build/typescript/features/graphql.d.ts +6 -0
- package/build/typescript/features/graphql.d.ts.map +1 -0
- package/build/typescript/features/request-router.d.ts +15 -0
- package/build/typescript/features/request-router.d.ts.map +1 -0
- package/build/typescript/features/source-code.d.ts +5 -0
- package/build/typescript/features/source-code.d.ts.map +1 -0
- package/build/typescript/features/system-js.d.ts +7 -0
- package/build/typescript/features/system-js.d.ts.map +1 -0
- package/build/typescript/index.d.ts +1 -3
- package/build/typescript/index.d.ts.map +1 -1
- package/package.json +5 -2
- package/source/app.ts +168 -124
- package/source/features/assets.ts +183 -0
- package/source/features/css.ts +91 -0
- package/source/{env.ts → features/env.ts} +4 -4
- package/source/{request-router.ts → features/request-router.ts} +3 -3
- package/source/features/system-js.ts +36 -0
- package/source/index.ts +0 -5
- /package/build/cjs/{graphql → features/graphql}/transform.cjs +0 -0
- /package/build/cjs/{graphql.cjs → features/graphql.cjs} +0 -0
- /package/build/esm/{graphql → features/graphql}/transform.mjs +0 -0
- /package/build/esm/{graphql.mjs → features/graphql.mjs} +0 -0
- /package/build/esm/{shared → features}/source-code.mjs +0 -0
- /package/build/esnext/{graphql → features/graphql}/transform.esnext +0 -0
- /package/build/esnext/{graphql.esnext → features/graphql.esnext} +0 -0
- /package/build/esnext/{shared → features}/source-code.esnext +0 -0
- /package/source/{graphql → features/graphql}/transform.ts +0 -0
- /package/source/{graphql.ts → features/graphql.ts} +0 -0
- /package/source/{shared → features}/source-code.ts +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { GetManualChunk } from 'rollup';
|
|
2
|
-
import type { MagicModuleEnvOptions } from './env.ts';
|
|
1
|
+
import type { Plugin, GetManualChunk } from 'rollup';
|
|
2
|
+
import type { MagicModuleEnvOptions } from './features/env.ts';
|
|
3
3
|
export interface AppOptions {
|
|
4
4
|
/**
|
|
5
5
|
* The entry module for this app. This should be an absolute path, or relative
|
|
@@ -8,8 +8,9 @@ export interface AppOptions {
|
|
|
8
8
|
* to create browser and server-side entries for your project.
|
|
9
9
|
*
|
|
10
10
|
* If you only want to use a custom entry module for the browser build, use the
|
|
11
|
-
* `
|
|
12
|
-
* for the server-side build, use the `server.entry` option
|
|
11
|
+
* `entry` option of the `quiltAppBrowser()` instead. If you only want to use a
|
|
12
|
+
* custom entry module for the server-side build, use the `server.entry` option
|
|
13
|
+
* instead.
|
|
13
14
|
*
|
|
14
15
|
* @example './App.tsx'
|
|
15
16
|
*/
|
|
@@ -29,7 +30,17 @@ export interface AppOptions {
|
|
|
29
30
|
}
|
|
30
31
|
export interface AppBrowserOptions extends AppOptions {
|
|
31
32
|
/**
|
|
32
|
-
*
|
|
33
|
+
* The entry module for this browser. This should be an absolute path, or relative
|
|
34
|
+
* path from the root directory containing your project. This entry should be the
|
|
35
|
+
* browser entrypoint.
|
|
36
|
+
*
|
|
37
|
+
* @example './browser.tsx'
|
|
38
|
+
* @default 'quilt:module/entry'
|
|
39
|
+
*/
|
|
40
|
+
entry?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Customizes the magic `quilt:module/entry` module, which can be used as a "magic"
|
|
43
|
+
* entry for your application.
|
|
33
44
|
*/
|
|
34
45
|
module?: AppBrowserModuleOptions;
|
|
35
46
|
/**
|
|
@@ -59,81 +70,18 @@ export interface AppBrowserAssetsOptions {
|
|
|
59
70
|
*/
|
|
60
71
|
minify?: boolean;
|
|
61
72
|
}
|
|
62
|
-
export declare function quiltAppBrowser({ app, env, assets, module, graphql, }?: AppBrowserOptions): {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
cache?: boolean | import("rollup").RollupCache | undefined;
|
|
67
|
-
context?: string | undefined;
|
|
68
|
-
experimentalCacheExpiry?: number | undefined;
|
|
69
|
-
experimentalLogSideEffects?: boolean | undefined;
|
|
70
|
-
external?: import("rollup").ExternalOption | undefined;
|
|
71
|
-
input?: import("rollup").InputOption | undefined;
|
|
72
|
-
logLevel?: import("rollup").LogLevelOption | undefined;
|
|
73
|
-
makeAbsoluteExternalsRelative?: boolean | "ifRelativeSource" | undefined;
|
|
74
|
-
maxParallelFileOps?: number | undefined;
|
|
75
|
-
moduleContext?: ((id: string) => string | import("rollup").NullValue) | {
|
|
76
|
-
[id: string]: string;
|
|
77
|
-
} | undefined;
|
|
78
|
-
onLog?: import("rollup").LogHandlerWithDefault | undefined;
|
|
79
|
-
onwarn?: import("rollup").WarningHandlerWithDefault | undefined;
|
|
80
|
-
perf?: boolean | undefined;
|
|
81
|
-
preserveEntrySignatures?: import("rollup").PreserveEntrySignaturesOption | undefined;
|
|
82
|
-
preserveSymlinks?: boolean | undefined;
|
|
83
|
-
shimMissingExports?: boolean | undefined;
|
|
84
|
-
strictDeprecations?: boolean | undefined;
|
|
85
|
-
treeshake?: boolean | import("rollup").TreeshakingPreset | import("rollup").TreeshakingOptions | undefined;
|
|
86
|
-
watch?: false | import("rollup").WatcherOptions | undefined;
|
|
87
|
-
}>;
|
|
88
|
-
outputOptions(this: import("rollup").PluginContext, originalOptions: import("rollup").OutputOptions): {
|
|
73
|
+
export declare function quiltAppBrowser({ app, entry, env, assets, module, graphql, }?: AppBrowserOptions): Promise<{
|
|
74
|
+
input: string;
|
|
75
|
+
plugins: Plugin<any>[];
|
|
76
|
+
output: {
|
|
89
77
|
format: "esm";
|
|
90
78
|
dir: string;
|
|
91
79
|
entryFileNames: string;
|
|
92
80
|
assetFileNames: string;
|
|
93
81
|
chunkFileNames: string;
|
|
94
82
|
manualChunks: GetManualChunk;
|
|
95
|
-
amd?: import("rollup").AmdOptions | undefined;
|
|
96
|
-
banner?: string | import("rollup").AddonFunction | undefined;
|
|
97
|
-
compact?: boolean | undefined;
|
|
98
|
-
dynamicImportInCjs?: boolean | undefined;
|
|
99
|
-
esModule?: boolean | "if-default-prop" | undefined;
|
|
100
|
-
experimentalMinChunkSize?: number | undefined;
|
|
101
|
-
exports?: "default" | "named" | "none" | "auto" | undefined;
|
|
102
|
-
extend?: boolean | undefined;
|
|
103
|
-
externalImportAssertions?: boolean | undefined;
|
|
104
|
-
externalImportAttributes?: boolean | undefined;
|
|
105
|
-
externalLiveBindings?: boolean | undefined;
|
|
106
|
-
file?: string | undefined;
|
|
107
|
-
footer?: string | import("rollup").AddonFunction | undefined;
|
|
108
|
-
freeze?: boolean | undefined;
|
|
109
|
-
generatedCode?: import("rollup").GeneratedCodePreset | import("rollup").GeneratedCodeOptions | undefined;
|
|
110
|
-
globals?: import("rollup").GlobalsOption | undefined;
|
|
111
|
-
hoistTransitiveImports?: boolean | undefined;
|
|
112
|
-
indent?: string | boolean | undefined;
|
|
113
|
-
inlineDynamicImports?: boolean | undefined;
|
|
114
|
-
interop?: import("rollup").InteropType | import("rollup").GetInterop | undefined;
|
|
115
|
-
intro?: string | import("rollup").AddonFunction | undefined;
|
|
116
|
-
minifyInternalExports?: boolean | undefined;
|
|
117
|
-
name?: string | undefined;
|
|
118
|
-
noConflict?: boolean | undefined;
|
|
119
|
-
outro?: string | import("rollup").AddonFunction | undefined;
|
|
120
|
-
paths?: import("rollup").OptionsPaths | undefined;
|
|
121
|
-
plugins?: import("rollup").OutputPluginOption;
|
|
122
|
-
preserveModules?: boolean | undefined;
|
|
123
|
-
preserveModulesRoot?: string | undefined;
|
|
124
|
-
sanitizeFileName?: boolean | ((fileName: string) => string) | undefined;
|
|
125
|
-
sourcemap?: boolean | "inline" | "hidden" | undefined;
|
|
126
|
-
sourcemapBaseUrl?: string | undefined;
|
|
127
|
-
sourcemapExcludeSources?: boolean | undefined;
|
|
128
|
-
sourcemapFile?: string | undefined;
|
|
129
|
-
sourcemapFileNames?: string | ((chunkInfo: import("rollup").PreRenderedChunk) => string) | undefined;
|
|
130
|
-
sourcemapIgnoreList?: boolean | import("rollup").SourcemapIgnoreListOption | undefined;
|
|
131
|
-
sourcemapPathTransform?: import("rollup").SourcemapPathTransformOption | undefined;
|
|
132
|
-
strict?: boolean | undefined;
|
|
133
|
-
systemNullSetters?: boolean | undefined;
|
|
134
|
-
validate?: boolean | undefined;
|
|
135
83
|
};
|
|
136
|
-
}
|
|
84
|
+
}>;
|
|
137
85
|
export interface AppServerOptions extends AppOptions {
|
|
138
86
|
/**
|
|
139
87
|
* The entry module for the server of this app. This module must export a
|
|
@@ -141,82 +89,22 @@ export interface AppServerOptions extends AppOptions {
|
|
|
141
89
|
* the specific server runtime you configure.
|
|
142
90
|
*/
|
|
143
91
|
entry?: string;
|
|
92
|
+
/**
|
|
93
|
+
* Whether to minify the JavaScript outputs for your server.
|
|
94
|
+
*
|
|
95
|
+
* @default false
|
|
96
|
+
*/
|
|
97
|
+
minify?: boolean;
|
|
144
98
|
}
|
|
145
|
-
export declare function quiltAppServer({ app, env, graphql, entry, }?: AppServerOptions): {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
cache?: boolean | import("rollup").RollupCache | undefined;
|
|
150
|
-
context?: string | undefined;
|
|
151
|
-
experimentalCacheExpiry?: number | undefined;
|
|
152
|
-
experimentalLogSideEffects?: boolean | undefined;
|
|
153
|
-
external?: import("rollup").ExternalOption | undefined;
|
|
154
|
-
input?: import("rollup").InputOption | undefined;
|
|
155
|
-
logLevel?: import("rollup").LogLevelOption | undefined;
|
|
156
|
-
makeAbsoluteExternalsRelative?: boolean | "ifRelativeSource" | undefined;
|
|
157
|
-
maxParallelFileOps?: number | undefined;
|
|
158
|
-
moduleContext?: ((id: string) => string | import("rollup").NullValue) | {
|
|
159
|
-
[id: string]: string;
|
|
160
|
-
} | undefined;
|
|
161
|
-
onLog?: import("rollup").LogHandlerWithDefault | undefined;
|
|
162
|
-
onwarn?: import("rollup").WarningHandlerWithDefault | undefined;
|
|
163
|
-
perf?: boolean | undefined;
|
|
164
|
-
preserveEntrySignatures?: import("rollup").PreserveEntrySignaturesOption | undefined;
|
|
165
|
-
preserveSymlinks?: boolean | undefined;
|
|
166
|
-
shimMissingExports?: boolean | undefined;
|
|
167
|
-
strictDeprecations?: boolean | undefined;
|
|
168
|
-
treeshake?: boolean | import("rollup").TreeshakingPreset | import("rollup").TreeshakingOptions | undefined;
|
|
169
|
-
watch?: false | import("rollup").WatcherOptions | undefined;
|
|
170
|
-
}>;
|
|
171
|
-
outputOptions(this: import("rollup").PluginContext, originalOptions: import("rollup").OutputOptions): {
|
|
99
|
+
export declare function quiltAppServer({ app, env, graphql, entry, minify, }?: AppServerOptions): Promise<{
|
|
100
|
+
input: string;
|
|
101
|
+
plugins: Plugin<any>[];
|
|
102
|
+
output: {
|
|
172
103
|
format: "esm";
|
|
173
104
|
dir: string;
|
|
174
105
|
entryFileNames: string;
|
|
175
|
-
amd?: import("rollup").AmdOptions | undefined;
|
|
176
|
-
assetFileNames?: string | ((chunkInfo: import("rollup").PreRenderedAsset) => string) | undefined;
|
|
177
|
-
banner?: string | import("rollup").AddonFunction | undefined;
|
|
178
|
-
chunkFileNames?: string | ((chunkInfo: import("rollup").PreRenderedChunk) => string) | undefined;
|
|
179
|
-
compact?: boolean | undefined;
|
|
180
|
-
dynamicImportInCjs?: boolean | undefined;
|
|
181
|
-
esModule?: boolean | "if-default-prop" | undefined;
|
|
182
|
-
experimentalMinChunkSize?: number | undefined;
|
|
183
|
-
exports?: "default" | "named" | "none" | "auto" | undefined;
|
|
184
|
-
extend?: boolean | undefined;
|
|
185
|
-
externalImportAssertions?: boolean | undefined;
|
|
186
|
-
externalImportAttributes?: boolean | undefined;
|
|
187
|
-
externalLiveBindings?: boolean | undefined;
|
|
188
|
-
file?: string | undefined;
|
|
189
|
-
footer?: string | import("rollup").AddonFunction | undefined;
|
|
190
|
-
freeze?: boolean | undefined;
|
|
191
|
-
generatedCode?: import("rollup").GeneratedCodePreset | import("rollup").GeneratedCodeOptions | undefined;
|
|
192
|
-
globals?: import("rollup").GlobalsOption | undefined;
|
|
193
|
-
hoistTransitiveImports?: boolean | undefined;
|
|
194
|
-
indent?: string | boolean | undefined;
|
|
195
|
-
inlineDynamicImports?: boolean | undefined;
|
|
196
|
-
interop?: import("rollup").InteropType | import("rollup").GetInterop | undefined;
|
|
197
|
-
intro?: string | import("rollup").AddonFunction | undefined;
|
|
198
|
-
manualChunks?: import("rollup").ManualChunksOption | undefined;
|
|
199
|
-
minifyInternalExports?: boolean | undefined;
|
|
200
|
-
name?: string | undefined;
|
|
201
|
-
noConflict?: boolean | undefined;
|
|
202
|
-
outro?: string | import("rollup").AddonFunction | undefined;
|
|
203
|
-
paths?: import("rollup").OptionsPaths | undefined;
|
|
204
|
-
plugins?: import("rollup").OutputPluginOption;
|
|
205
|
-
preserveModules?: boolean | undefined;
|
|
206
|
-
preserveModulesRoot?: string | undefined;
|
|
207
|
-
sanitizeFileName?: boolean | ((fileName: string) => string) | undefined;
|
|
208
|
-
sourcemap?: boolean | "inline" | "hidden" | undefined;
|
|
209
|
-
sourcemapBaseUrl?: string | undefined;
|
|
210
|
-
sourcemapExcludeSources?: boolean | undefined;
|
|
211
|
-
sourcemapFile?: string | undefined;
|
|
212
|
-
sourcemapFileNames?: string | ((chunkInfo: import("rollup").PreRenderedChunk) => string) | undefined;
|
|
213
|
-
sourcemapIgnoreList?: boolean | import("rollup").SourcemapIgnoreListOption | undefined;
|
|
214
|
-
sourcemapPathTransform?: import("rollup").SourcemapPathTransformOption | undefined;
|
|
215
|
-
strict?: boolean | undefined;
|
|
216
|
-
systemNullSetters?: boolean | undefined;
|
|
217
|
-
validate?: boolean | undefined;
|
|
218
106
|
};
|
|
219
|
-
}
|
|
107
|
+
}>;
|
|
220
108
|
export declare function magicModuleAppComponent({ entry }: {
|
|
221
109
|
entry: string;
|
|
222
110
|
}): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../source/app.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../source/app.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,MAAM,EAAiB,cAAc,EAAC,MAAM,QAAQ,CAAC;AAQlE,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,mBAAmB,CAAC;AAM7D,MAAM,WAAW,UAAU;IACzB;;;;;;;;;;;;OAYG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IAEb;;;;O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@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Plugin } from 'rollup';
|
|
2
|
+
export declare function rawAssets(): Plugin;
|
|
3
|
+
export declare function staticAssets({ emit, baseURL, extensions, inlineLimit, outputPattern, }?: {
|
|
4
|
+
emit?: boolean;
|
|
5
|
+
baseURL?: string;
|
|
6
|
+
extensions?: readonly string[];
|
|
7
|
+
inlineLimit?: number;
|
|
8
|
+
outputPattern?: string;
|
|
9
|
+
}): {
|
|
10
|
+
name: string;
|
|
11
|
+
load(this: import("rollup").PluginContext, id: string): Promise<string | null>;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=assets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../../source/features/assets.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAC;AA0CnC,wBAAgB,SAAS,IAAI,MAAM,CAmBlC;AAED,wBAAgB,YAAY,CAAC,EAC3B,IAAW,EACX,OAAa,EACb,UAA4C,EAC5C,WAAkC,EAClC,aAAsC,GACvC,GAAE;IACD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;CACnB;;;EA+DL"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface Options {
|
|
2
|
+
minify?: boolean;
|
|
3
|
+
extract?: boolean;
|
|
4
|
+
}
|
|
5
|
+
export declare function cssRollupPlugin({ minify, extract }: Options): {
|
|
6
|
+
name: string;
|
|
7
|
+
transform(this: import("rollup").TransformPluginContext, code: string, id: string): Promise<{
|
|
8
|
+
code: string;
|
|
9
|
+
map: {
|
|
10
|
+
mappings: "";
|
|
11
|
+
};
|
|
12
|
+
moduleSideEffects: "no-treeshake";
|
|
13
|
+
} | undefined>;
|
|
14
|
+
renderChunk(this: import("rollup").PluginContext, _: string, chunk: import("rollup").RenderedChunk): Promise<null>;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=css.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../../source/features/css.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,OAAO;IACtB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAKD,wBAAgB,eAAe,CAAC,EAAC,MAAa,EAAE,OAAc,EAAC,EAAE,OAAO;;;;;;;;;;EAgFvE"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { PluginContext } from 'rollup';
|
|
2
|
+
export declare function replaceProcessEnv({ mode, preserve, }: {
|
|
3
|
+
mode: string;
|
|
4
|
+
preserve?: boolean;
|
|
5
|
+
}): import("rollup").Plugin<any>;
|
|
6
|
+
export interface MagicModuleEnvOptions {
|
|
7
|
+
/**
|
|
8
|
+
* The runtime mode for your target environment.
|
|
9
|
+
*/
|
|
10
|
+
mode?: 'production' | 'development';
|
|
11
|
+
/**
|
|
12
|
+
* Environment variables from the build environment to inline into the magic
|
|
13
|
+
* module. Be careful when using this option! Inlining environment variables
|
|
14
|
+
* into your application always comes with the risk of exposing sensitive information
|
|
15
|
+
* to your users. Only use this option for environment variables that are safe
|
|
16
|
+
* for a human to see if they open their browser developer tools.
|
|
17
|
+
*/
|
|
18
|
+
inline?: string[];
|
|
19
|
+
/**
|
|
20
|
+
* A string that will be inlined directly as code to reference a runtime variable
|
|
21
|
+
* that contains environment variables.
|
|
22
|
+
*/
|
|
23
|
+
runtime?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Whether to load environment variables from a `.env` file. The option can
|
|
26
|
+
* be one of the following types:
|
|
27
|
+
*
|
|
28
|
+
* - `false`, which disables loading environment variables from a `.env` file.
|
|
29
|
+
* - An object containing a `roots` field, specifying the directories to search
|
|
30
|
+
* for `.env` files in.
|
|
31
|
+
* - An object containing a `files` field, specifying the directories to search
|
|
32
|
+
* for `.env` files in.
|
|
33
|
+
*
|
|
34
|
+
* @default {roots: ['.', 'configuration']}
|
|
35
|
+
*/
|
|
36
|
+
dotenv?: false | {
|
|
37
|
+
roots?: string[];
|
|
38
|
+
files?: never;
|
|
39
|
+
} | {
|
|
40
|
+
roots?: never;
|
|
41
|
+
files?: string[];
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
export declare function magicModuleEnv({ mode, dotenv, inline, runtime, }?: MagicModuleEnvOptions): {
|
|
45
|
+
name: string;
|
|
46
|
+
resolveId(this: PluginContext, id: string): {
|
|
47
|
+
id: string;
|
|
48
|
+
moduleSideEffects: "no-treeshake" | undefined;
|
|
49
|
+
} | null;
|
|
50
|
+
load: ((this: PluginContext, source: string) => Promise<{
|
|
51
|
+
code: string;
|
|
52
|
+
moduleSideEffects: "no-treeshake" | undefined;
|
|
53
|
+
} | null>) | undefined; /**
|
|
54
|
+
* The runtime mode for your target environment.
|
|
55
|
+
*/
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=env.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../source/features/env.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,QAAQ,CAAC;AAa1C,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,QAAe,GAChB,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,gCAQA;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,IAAI,CAAC,EAAE,YAAY,GAAG,aAAa,CAAC;IAEpC;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAElB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,EACH,KAAK,GACL;QAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAA;KAAC,GACjC;QAAC,KAAK,CAAC,EAAE,KAAK,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;KAAC,CAAC;CACvC;AAED,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,MAAwC,EACxC,MAAW,EACX,OAAc,GACf,GAAE,qBAA0B;;;;;;;;;4BA3C3B;;OAEG;EAmFJ"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { DocumentNode, TypedQueryDocumentNode } from 'graphql';
|
|
2
|
+
import type { GraphQLOperation } from '@quilted/graphql';
|
|
3
|
+
export interface EnhancedDocumentNode<Data = Record<string, any>, Variables = Record<string, any>> extends TypedQueryDocumentNode<Data, Variables> {
|
|
4
|
+
readonly id: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function cleanGraphQLDocument<Data = Record<string, any>, Variables = Record<string, any>>(document: DocumentNode | TypedQueryDocumentNode<Data, Variables>, { removeUnused }?: {
|
|
7
|
+
removeUnused?: boolean | {
|
|
8
|
+
exclude: Set<string>;
|
|
9
|
+
};
|
|
10
|
+
}): EnhancedDocumentNode<Data, Variables>;
|
|
11
|
+
export declare function extractGraphQLImports(rawSource: string): {
|
|
12
|
+
imports: string[];
|
|
13
|
+
source: string;
|
|
14
|
+
};
|
|
15
|
+
export declare function toGraphQLOperation<Data = unknown, Variables = unknown>(documentOrSource: EnhancedDocumentNode<Data, Variables> | string): GraphQLOperation<Data, Variables>;
|
|
16
|
+
export declare function minifyGraphQLSource(source: string): string;
|
|
17
|
+
//# sourceMappingURL=transform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transform.d.ts","sourceRoot":"","sources":["../../../../source/features/graphql/transform.ts"],"names":[],"mappings":"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D,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAC7B;AAED,wBAAgB,OAAO,CAAC,EAAC,QAAQ,EAAC,GAAE,OAAY,GAAG,MAAM,CAiExD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare function magicModuleRequestRouterEntry({ host, port, }?: {
|
|
2
|
+
host?: string;
|
|
3
|
+
port?: number;
|
|
4
|
+
}): {
|
|
5
|
+
name: string;
|
|
6
|
+
resolveId(this: import("rollup").PluginContext, id: string): {
|
|
7
|
+
id: string;
|
|
8
|
+
moduleSideEffects: "no-treeshake" | undefined;
|
|
9
|
+
} | null;
|
|
10
|
+
load: ((this: import("rollup").PluginContext, source: string) => Promise<{
|
|
11
|
+
code: string;
|
|
12
|
+
moduleSideEffects: "no-treeshake" | undefined;
|
|
13
|
+
} | null>) | undefined;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=request-router.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-router.d.ts","sourceRoot":"","sources":["../../../source/features/request-router.ts"],"names":[],"mappings":"AAKA,wBAAgB,6BAA6B,CAAC,EAC5C,IAAI,EACJ,IAAI,GACL,GAAE;IACD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACV;;;;;;;;;;EAsBL"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source-code.d.ts","sourceRoot":"","sources":["../../../source/features/source-code.ts"],"names":[],"mappings":"AAMA,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,OAAO,GACR,EAAE;IACD,IAAI,CAAC,EAAE,aAAa,GAAG,YAAY,CAAC;IACpC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB,gCAmDA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare function systemJS({ minify }?: {
|
|
2
|
+
minify?: boolean | undefined;
|
|
3
|
+
}): {
|
|
4
|
+
name: string;
|
|
5
|
+
renderChunk(this: import("rollup").PluginContext, _: string, chunk: import("rollup").RenderedChunk, options: import("rollup").NormalizedOutputOptions): Promise<null>;
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=system-js.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system-js.d.ts","sourceRoot":"","sources":["../../../source/features/system-js.ts"],"names":[],"mappings":"AAKA,wBAAgB,QAAQ,CAAC,EAAC,MAAc,EAAC;;CAAK;;;EA8B7C"}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { quiltAppBrowser, quiltAppServer, magicModuleAppComponent, magicModuleAppBrowserEntry, magicModuleAppRequestRouter, type AppOptions, type AppBrowserOptions, type AppServerOptions, } from './app.ts';
|
|
3
|
-
export { magicModuleRequestRouterEntry } from './request-router.ts';
|
|
1
|
+
export { quiltAppBrowser, quiltAppServer, type AppOptions, type AppBrowserOptions, type AppServerOptions, } from './app.ts';
|
|
4
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,eAAe,EACf,cAAc,EACd,KAAK,UAAU,EACf,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,GACtB,MAAM,UAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"access": "public",
|
|
7
7
|
"@quilted/registry": "https://registry.npmjs.org"
|
|
8
8
|
},
|
|
9
|
-
"version": "0.1.
|
|
9
|
+
"version": "0.1.5",
|
|
10
10
|
"engines": {
|
|
11
11
|
"node": ">=14.0.0"
|
|
12
12
|
},
|
|
@@ -45,9 +45,12 @@
|
|
|
45
45
|
"dotenv": "^16.0.0",
|
|
46
46
|
"esbuild": "^0.19.4",
|
|
47
47
|
"graphql": "^16.8.0",
|
|
48
|
+
"lightningcss": "^1.22.0",
|
|
49
|
+
"mrmime": "^1.0.1",
|
|
48
50
|
"rollup-plugin-esbuild": "^6.1.0",
|
|
49
51
|
"rollup-plugin-node-externals": "^6.1.2",
|
|
50
|
-
"rollup-plugin-visualizer": "^5.9.0"
|
|
52
|
+
"rollup-plugin-visualizer": "^5.9.0",
|
|
53
|
+
"systemjs": "^6.14.2"
|
|
51
54
|
},
|
|
52
55
|
"peerDependencies": {
|
|
53
56
|
"rollup": "^4.0.0"
|