@livestore/devtools-vite 0.3.0-dev.33 → 0.3.0-dev.36
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/dist/devtools-bundle/{data-grid-overlay-editor-CjqXm8i5.js → data-grid-overlay-editor--Md1DTXR.js} +1 -1
- package/dist/devtools-bundle/{devtools-react-bundle-DRPiF6-j.js → devtools-react-bundle-ClyHh9l3.js} +67474 -50579
- package/dist/devtools-bundle/{index-nec3urlq.js → index-BzmwGrmQ.js} +1 -1
- package/dist/devtools-bundle/index.js +1 -1
- package/dist/devtools-bundle/{number-overlay-editor-DewYS00I.js → number-overlay-editor-BYMqKgk2.js} +1 -1
- package/dist/plugin.d.ts +14 -16
- package/dist/plugin.d.ts.map +1 -1
- package/dist/plugin.js +82 -37
- package/dist/plugin.js.map +1 -1
- package/package.json +10 -1
package/dist/plugin.d.ts
CHANGED
|
@@ -1,37 +1,34 @@
|
|
|
1
|
-
import { Devtools } from '@livestore/common';
|
|
2
1
|
import { Schema } from '@livestore/utils/effect';
|
|
3
2
|
import type { Plugin } from 'vite';
|
|
4
|
-
export
|
|
3
|
+
export declare const PluginOptions: Schema.Struct<{
|
|
5
4
|
/**
|
|
6
|
-
* The path to the schema file.
|
|
5
|
+
* The path to the schema file. The schema file needs to export the schema as `export const schema`.
|
|
6
|
+
* Path needs to be relative to the Vite `root`.
|
|
7
7
|
*
|
|
8
8
|
* Example:
|
|
9
9
|
* ```ts
|
|
10
10
|
* import { devtoolsVitePlugin } from '@livestore/devtools-vite'
|
|
11
11
|
*
|
|
12
12
|
* devtoolsVitePlugin({
|
|
13
|
-
* schemaPath: './src/db/schema/index.
|
|
13
|
+
* schemaPath: './src/db/schema/index.ts'
|
|
14
|
+
* // ...
|
|
15
|
+
* })
|
|
16
|
+
*
|
|
17
|
+
* If your app uses multiple schemas, you can provide an array of schema paths.
|
|
18
|
+
* ```ts
|
|
19
|
+
* devtoolsVitePlugin({
|
|
20
|
+
* schemaPath: ['./src/db/schema/index.ts', './src/db/schema2/index.ts']
|
|
14
21
|
* // ...
|
|
15
22
|
* })
|
|
16
23
|
* ```
|
|
17
24
|
*/
|
|
18
|
-
schemaPath:
|
|
19
|
-
license
|
|
20
|
-
mode?: Devtools.DevtoolsMode;
|
|
25
|
+
schemaPath: Schema.Union<[typeof Schema.String, Schema.Array$<typeof Schema.String>]>;
|
|
26
|
+
license: Schema.optional<typeof Schema.String>;
|
|
21
27
|
/**
|
|
22
28
|
* Where to serve the devtools UI.
|
|
23
29
|
*
|
|
24
30
|
* @default '/_livestore'
|
|
25
31
|
*/
|
|
26
|
-
path?: string;
|
|
27
|
-
experimental?: {
|
|
28
|
-
vinxi?: boolean;
|
|
29
|
-
continueOnError?: boolean;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
export declare const PluginOptions: Schema.Struct<{
|
|
33
|
-
schemaPath: typeof Schema.String;
|
|
34
|
-
license: Schema.optional<typeof Schema.String>;
|
|
35
32
|
mode: Schema.optional<Schema.Union<[Schema.TaggedStruct<"expo", {
|
|
36
33
|
clientSessionInfo: Schema.optional<Schema.Struct<{
|
|
37
34
|
storeId: typeof Schema.String;
|
|
@@ -63,5 +60,6 @@ export declare const PluginOptions: Schema.Struct<{
|
|
|
63
60
|
continueOnError: Schema.optional<typeof Schema.Boolean>;
|
|
64
61
|
}>>;
|
|
65
62
|
}>;
|
|
63
|
+
export type PluginOptions = typeof PluginOptions.Type;
|
|
66
64
|
export declare const livestoreDevtoolsPlugin: (options: PluginOptions) => Plugin;
|
|
67
65
|
//# sourceMappingURL=plugin.d.ts.map
|
package/dist/plugin.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAChD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAMlC,eAAO,MAAM,aAAa;IACxB;;;;;;;;;;;;;;;;;;;;OAoBG;;;IAGH;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQH,CAAA;AAEF,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC,IAAI,CAAA;AAIrD,eAAO,MAAM,uBAAuB,GAAI,SAAS,aAAa,KAAG,MAoMhE,CAAA"}
|
package/dist/plugin.js
CHANGED
|
@@ -4,8 +4,34 @@ import { Schema } from '@livestore/utils/effect';
|
|
|
4
4
|
import { getMountPath } from './vite-path.js';
|
|
5
5
|
const IS_LOCAL_PREVIEW = process.env.LSD_DEVTOOLS_LOCAL_PREVIEW !== undefined;
|
|
6
6
|
export const PluginOptions = Schema.Struct({
|
|
7
|
-
|
|
7
|
+
/**
|
|
8
|
+
* The path to the schema file. The schema file needs to export the schema as `export const schema`.
|
|
9
|
+
* Path needs to be relative to the Vite `root`.
|
|
10
|
+
*
|
|
11
|
+
* Example:
|
|
12
|
+
* ```ts
|
|
13
|
+
* import { devtoolsVitePlugin } from '@livestore/devtools-vite'
|
|
14
|
+
*
|
|
15
|
+
* devtoolsVitePlugin({
|
|
16
|
+
* schemaPath: './src/db/schema/index.ts'
|
|
17
|
+
* // ...
|
|
18
|
+
* })
|
|
19
|
+
*
|
|
20
|
+
* If your app uses multiple schemas, you can provide an array of schema paths.
|
|
21
|
+
* ```ts
|
|
22
|
+
* devtoolsVitePlugin({
|
|
23
|
+
* schemaPath: ['./src/db/schema/index.ts', './src/db/schema2/index.ts']
|
|
24
|
+
* // ...
|
|
25
|
+
* })
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
schemaPath: Schema.Union(Schema.String, Schema.Array(Schema.String)),
|
|
8
29
|
license: Schema.optional(Schema.String),
|
|
30
|
+
/**
|
|
31
|
+
* Where to serve the devtools UI.
|
|
32
|
+
*
|
|
33
|
+
* @default '/_livestore'
|
|
34
|
+
*/
|
|
9
35
|
mode: Schema.optional(Devtools.DevtoolsMode),
|
|
10
36
|
path: Schema.optional(Schema.String),
|
|
11
37
|
experimental: Schema.optional(Schema.Struct({
|
|
@@ -30,28 +56,56 @@ export const livestoreDevtoolsPlugin = (options) => {
|
|
|
30
56
|
// 'server.config.base': server.config.base,
|
|
31
57
|
// mountPath,
|
|
32
58
|
// })
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
59
|
+
const schemaPathsInput = Array.isArray(options.schemaPath) ? options.schemaPath : [options.schemaPath];
|
|
60
|
+
const schemaPaths = schemaPathsInput.map((schemaPath) => path.isAbsolute(schemaPath) ? schemaPath : path.resolve(path.join(server.config.root, schemaPath)));
|
|
61
|
+
for (const schemaPath of schemaPaths) {
|
|
62
|
+
try {
|
|
63
|
+
const schemaExports = await server.ssrLoadModule(schemaPath);
|
|
64
|
+
if (!('schema' in schemaExports)) {
|
|
65
|
+
console.error(`\
|
|
40
66
|
[@livestore/devtools-vite] Could not find an export named \`schema\` in the provided schema file.
|
|
41
67
|
Please make sure to export the schema from your schema file like this: \`export const schema = ...\`.
|
|
42
68
|
|
|
43
69
|
Found exports: ${Object.keys(schemaExports).join(', ')}
|
|
44
70
|
Resolved schema path: ${schemaPath}
|
|
45
71
|
`);
|
|
46
|
-
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
47
74
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
75
|
+
catch (error) {
|
|
76
|
+
console.error(`[@livestore/devtools-vite] Error loading schema file ${schemaPath}`, error);
|
|
77
|
+
if (options.experimental?.continueOnError !== true) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
53
80
|
}
|
|
54
81
|
}
|
|
82
|
+
let bundlePath;
|
|
83
|
+
let cssPath;
|
|
84
|
+
// Allows for loading the devtools via Vite without having to build the bundle
|
|
85
|
+
// Simply set `LSD_DEVTOOLS_LOCAL_PREVIEW=1` when running `pnpm dev` in the app
|
|
86
|
+
if (IS_LOCAL_PREVIEW) {
|
|
87
|
+
cssPath = path.resolve(import.meta.dirname, '..', '..', 'devtools-react', 'src', 'index.css');
|
|
88
|
+
bundlePath = path.join(import.meta.dirname, '..', 'devtools-react-bundle.ts');
|
|
89
|
+
}
|
|
90
|
+
else {
|
|
91
|
+
// Make sure to run `pnpm build` before to generate the bundle
|
|
92
|
+
const bundleDir = path.join(import.meta.dirname, '..', 'dist', 'devtools-bundle');
|
|
93
|
+
bundlePath = path.resolve(bundleDir, 'index.js');
|
|
94
|
+
cssPath = path.resolve(bundleDir, 'devtools-vite.css');
|
|
95
|
+
}
|
|
96
|
+
const hasWebAdapterDep = await server
|
|
97
|
+
.ssrLoadModule('@livestore/adapter-web')
|
|
98
|
+
.then(() => true)
|
|
99
|
+
.catch(() => false);
|
|
100
|
+
const template = makeIndexHtml({
|
|
101
|
+
schemaPaths,
|
|
102
|
+
bundlePath,
|
|
103
|
+
cssPath,
|
|
104
|
+
mountPath,
|
|
105
|
+
mode: options.mode,
|
|
106
|
+
hasWebAdapterDep,
|
|
107
|
+
});
|
|
108
|
+
const html = await server.transformIndexHtml(mountPath, template);
|
|
55
109
|
server.middlewares.use(mountPath, async (req, res, next) => {
|
|
56
110
|
if (req.url === undefined) {
|
|
57
111
|
next();
|
|
@@ -62,22 +116,6 @@ Resolved schema path: ${schemaPath}
|
|
|
62
116
|
// Forward all Vite requests to Vite
|
|
63
117
|
if (url.pathname.startsWith('/@') === false) {
|
|
64
118
|
res.setHeader('Content-Type', 'text/html');
|
|
65
|
-
let bundlePath;
|
|
66
|
-
let cssPath;
|
|
67
|
-
// Allows for loading the devtools via Vite without having to build the bundle
|
|
68
|
-
// Simply set `LSD_DEVTOOLS_LOCAL_PREVIEW=1` when running `pnpm dev` in the app
|
|
69
|
-
if (IS_LOCAL_PREVIEW) {
|
|
70
|
-
cssPath = path.resolve(import.meta.dirname, '..', '..', 'devtools-react', 'src', 'index.css');
|
|
71
|
-
bundlePath = path.join(import.meta.dirname, '..', 'devtools-react-bundle.ts');
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
// Make sure to run `pnpm build` before to generate the bundle
|
|
75
|
-
const bundleDir = path.join(import.meta.dirname, '..', 'dist', 'devtools-bundle');
|
|
76
|
-
bundlePath = path.resolve(bundleDir, 'index.js');
|
|
77
|
-
cssPath = path.resolve(bundleDir, 'devtools-vite.css');
|
|
78
|
-
}
|
|
79
|
-
const template = makeIndexHtml({ schemaPath, bundlePath, cssPath, mountPath, mode: options.mode });
|
|
80
|
-
const html = await server.transformIndexHtml(mountPath, template);
|
|
81
119
|
// Remove line that contains `vinxi/runtime`
|
|
82
120
|
const trimmedHtml = html
|
|
83
121
|
.split('\n')
|
|
@@ -90,13 +128,20 @@ Resolved schema path: ${schemaPath}
|
|
|
90
128
|
}
|
|
91
129
|
});
|
|
92
130
|
},
|
|
93
|
-
config: (config) => {
|
|
131
|
+
config: async (config, env) => {
|
|
94
132
|
if (config.optimizeDeps === undefined) {
|
|
95
133
|
config.optimizeDeps = {};
|
|
96
134
|
}
|
|
97
135
|
if (config.optimizeDeps.exclude === undefined) {
|
|
98
136
|
config.optimizeDeps.exclude = [];
|
|
99
137
|
}
|
|
138
|
+
if (env.command === 'serve') {
|
|
139
|
+
if (config.define === undefined) {
|
|
140
|
+
config.define = {};
|
|
141
|
+
}
|
|
142
|
+
const mountPath = getMountPath({ path: options.path, base: config.base ?? '/' });
|
|
143
|
+
config.define['LIVESTORE_DEVTOOLS_PATH'] = `'${mountPath}'`;
|
|
144
|
+
}
|
|
100
145
|
const toAdd = ['@livestore/devtools-vite', '@livestore/wa-sqlite'];
|
|
101
146
|
for (const dep of toAdd) {
|
|
102
147
|
if (!config.optimizeDeps.exclude.includes(dep)) {
|
|
@@ -154,9 +199,9 @@ Resolved schema path: ${schemaPath}
|
|
|
154
199
|
// },
|
|
155
200
|
};
|
|
156
201
|
};
|
|
157
|
-
const makeIndexHtml = ({
|
|
158
|
-
// `sharedWorker` is only needed for web
|
|
159
|
-
// We
|
|
202
|
+
const makeIndexHtml = ({ schemaPaths, bundlePath, cssPath, mountPath, mode, hasWebAdapterDep, }) => {
|
|
203
|
+
// `sharedWorker` is only needed for @livestore/adapter-web
|
|
204
|
+
// We're trying to import it dynamically for the web-adapter and fallback to the bundled one if it fails
|
|
160
205
|
return /*html*/ `
|
|
161
206
|
<!doctype html>
|
|
162
207
|
<html lang="en">
|
|
@@ -172,11 +217,11 @@ const makeIndexHtml = ({ schemaPath, bundlePath, cssPath, mountPath, mode, }) =>
|
|
|
172
217
|
import '${cssPath}'
|
|
173
218
|
|
|
174
219
|
import { run } from '${bundlePath}'
|
|
175
|
-
import { schema } from '${schemaPath}'
|
|
176
|
-
import sharedWorker from
|
|
220
|
+
${schemaPaths.map((schemaPath, index) => ` import { schema as schema${index} } from '${schemaPath}'`).join('\n')}
|
|
221
|
+
${hasWebAdapterDep ? 'import sharedWorker from "@livestore/adapter-web/shared-worker?sharedworker"' : 'const sharedWorker = undefined'}
|
|
177
222
|
|
|
178
223
|
run({
|
|
179
|
-
schema,
|
|
224
|
+
schemas: [${schemaPaths.map((_schemaPath, index) => `schema${index}`).join(', ')}],
|
|
180
225
|
license: ${process.env.LSD_LICENSE} ? '${process.env.LSD_LICENSE}' : undefined,
|
|
181
226
|
mode: ${mode ? Schema.encodeSync(Schema.parseJson(Devtools.DevtoolsMode))(mode) : undefined},
|
|
182
227
|
sharedWorker,
|
package/dist/plugin.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.js","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAA;AAE5B,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,yB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GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;QAC7G,gBAAgB,CAAC,CAAC,CAAC,8EAA8E,CAAC,CAAC,CAAC,gCAAgC;;;oBAGxH,WAAW,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,KAAK,EAAE,EAAE,CAAC,SAAS,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;mBACrE,OAAO,CAAC,GAAG,CAAC,WAAW,OAAO,OAAO,CAAC,GAAG,CAAC,WAAW;gBACxD,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS;;sBAE7E,SAAS;;;;;EAK7B,CAAA;AACF,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livestore/devtools-vite",
|
|
3
|
-
"version": "0.3.0-dev.
|
|
3
|
+
"version": "0.3.0-dev.36",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -8,5 +8,14 @@
|
|
|
8
8
|
"default": "./dist/plugin.js"
|
|
9
9
|
},
|
|
10
10
|
"./build": "./build.ts"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"dist"
|
|
14
|
+
],
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@livestore/adapter-web": "0.3.0-dev.36"
|
|
17
|
+
},
|
|
18
|
+
"peerDependencies": {
|
|
19
|
+
"vite": "*"
|
|
11
20
|
}
|
|
12
21
|
}
|