on-zero 0.1.21 → 0.1.23
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/cjs/cli.cjs +17 -420
- package/dist/cjs/cli.js +7 -398
- package/dist/cjs/cli.js.map +2 -2
- package/dist/cjs/cli.native.js +15 -514
- package/dist/cjs/cli.native.js.map +1 -1
- package/dist/cjs/generate.cjs +370 -0
- package/dist/cjs/generate.js +339 -0
- package/dist/cjs/generate.js.map +6 -0
- package/dist/cjs/generate.native.js +464 -0
- package/dist/cjs/generate.native.js.map +1 -0
- package/dist/cjs/helpers/createMutators.cjs +4 -3
- package/dist/cjs/helpers/createMutators.js +12 -9
- package/dist/cjs/helpers/createMutators.js.map +1 -1
- package/dist/cjs/helpers/createMutators.native.js +25 -21
- package/dist/cjs/helpers/createMutators.native.js.map +1 -1
- package/dist/cjs/mutations.cjs +34 -4
- package/dist/cjs/mutations.js +29 -4
- package/dist/cjs/mutations.js.map +1 -1
- package/dist/cjs/mutations.native.js +36 -4
- package/dist/cjs/mutations.native.js.map +1 -1
- package/dist/cjs/vite-plugin.cjs +84 -0
- package/dist/cjs/vite-plugin.js +86 -0
- package/dist/cjs/vite-plugin.js.map +6 -0
- package/dist/cjs/vite-plugin.native.js +99 -0
- package/dist/cjs/vite-plugin.native.js.map +1 -0
- package/dist/esm/cli.js +8 -384
- package/dist/esm/cli.js.map +2 -2
- package/dist/esm/cli.mjs +17 -398
- package/dist/esm/cli.mjs.map +1 -1
- package/dist/esm/cli.native.js +15 -492
- package/dist/esm/cli.native.js.map +1 -1
- package/dist/esm/generate.js +317 -0
- package/dist/esm/generate.js.map +6 -0
- package/dist/esm/generate.mjs +335 -0
- package/dist/esm/generate.mjs.map +1 -0
- package/dist/esm/generate.native.js +426 -0
- package/dist/esm/generate.native.js.map +1 -0
- package/dist/esm/helpers/createMutators.js +12 -9
- package/dist/esm/helpers/createMutators.js.map +1 -1
- package/dist/esm/helpers/createMutators.mjs +4 -3
- package/dist/esm/helpers/createMutators.mjs.map +1 -1
- package/dist/esm/helpers/createMutators.native.js +25 -21
- package/dist/esm/helpers/createMutators.native.js.map +1 -1
- package/dist/esm/mutations.js +29 -4
- package/dist/esm/mutations.js.map +1 -1
- package/dist/esm/mutations.mjs +34 -4
- package/dist/esm/mutations.mjs.map +1 -1
- package/dist/esm/mutations.native.js +35 -3
- package/dist/esm/mutations.native.js.map +1 -1
- package/dist/esm/vite-plugin.js +71 -0
- package/dist/esm/vite-plugin.js.map +6 -0
- package/dist/esm/vite-plugin.mjs +59 -0
- package/dist/esm/vite-plugin.mjs.map +1 -0
- package/dist/esm/vite-plugin.native.js +71 -0
- package/dist/esm/vite-plugin.native.js.map +1 -0
- package/package.json +7 -2
- package/readme.md +42 -32
- package/src/cli.ts +9 -638
- package/src/generate.ts +490 -0
- package/src/helpers/createMutators.ts +14 -8
- package/src/mutations.ts +57 -4
- package/src/vite-plugin.ts +110 -0
- package/types/generate.d.ts +21 -0
- package/types/generate.d.ts.map +1 -0
- package/types/helpers/createMutators.d.ts.map +1 -1
- package/types/mutations.d.ts.map +1 -1
- package/types/vite-plugin.d.ts +16 -0
- package/types/vite-plugin.d.ts.map +1 -0
package/dist/cjs/mutations.cjs
CHANGED
|
@@ -25,6 +25,37 @@ __export(mutations_exports, {
|
|
|
25
25
|
module.exports = __toCommonJS(mutations_exports);
|
|
26
26
|
var import_didRunPermissionCheck = require("./helpers/didRunPermissionCheck.cjs"),
|
|
27
27
|
import_modelRegistry = require("./modelRegistry.cjs");
|
|
28
|
+
const registryKey = "__onZeroMutationRegistry__",
|
|
29
|
+
proxyKey = "__onZeroProxyRegistry__",
|
|
30
|
+
mutationRegistry = globalThis[registryKey] || (globalThis[registryKey] = /* @__PURE__ */new Map()),
|
|
31
|
+
proxyRegistry = globalThis[proxyKey] || (globalThis[proxyKey] = /* @__PURE__ */new Map());
|
|
32
|
+
function getOrCreateMutationProxy(tableName, implementations) {
|
|
33
|
+
mutationRegistry.set(tableName, implementations);
|
|
34
|
+
const existing = proxyRegistry.get(tableName);
|
|
35
|
+
if (existing) return existing;
|
|
36
|
+
const proxy = new Proxy({}, {
|
|
37
|
+
get(_, key) {
|
|
38
|
+
return mutationRegistry.get(tableName)?.[key];
|
|
39
|
+
},
|
|
40
|
+
ownKeys() {
|
|
41
|
+
const current = mutationRegistry.get(tableName);
|
|
42
|
+
return current ? Object.keys(current) : [];
|
|
43
|
+
},
|
|
44
|
+
getOwnPropertyDescriptor(_, key) {
|
|
45
|
+
const current = mutationRegistry.get(tableName);
|
|
46
|
+
if (current && key in current) return {
|
|
47
|
+
enumerable: !0,
|
|
48
|
+
configurable: !0,
|
|
49
|
+
value: current[key]
|
|
50
|
+
};
|
|
51
|
+
},
|
|
52
|
+
has(_, key) {
|
|
53
|
+
const current = mutationRegistry.get(tableName);
|
|
54
|
+
return current ? key in current : !1;
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
return proxyRegistry.set(tableName, proxy), proxy;
|
|
58
|
+
}
|
|
28
59
|
function mutations(table, permissions, mutations2) {
|
|
29
60
|
if (permissions) {
|
|
30
61
|
const tableName = table.schema.name,
|
|
@@ -42,13 +73,12 @@ function mutations(table, permissions, mutations2) {
|
|
|
42
73
|
delete: createCRUDMutation("delete"),
|
|
43
74
|
upsert: createCRUDMutation("upsert")
|
|
44
75
|
},
|
|
45
|
-
finalMutations =
|
|
76
|
+
finalMutations = {
|
|
46
77
|
...mutations2,
|
|
47
78
|
// overwrite regular mutations but call them if they are defined by user
|
|
48
79
|
...crudMutations
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
return (0, import_modelRegistry.setMutationsPermissions)(tableName, permissions), finalMutations;
|
|
80
|
+
};
|
|
81
|
+
return (0, import_modelRegistry.setMutationsPermissions)(tableName, permissions), getOrCreateMutationProxy(tableName, finalMutations);
|
|
52
82
|
}
|
|
53
83
|
return table;
|
|
54
84
|
}
|
package/dist/cjs/mutations.js
CHANGED
|
@@ -18,6 +18,32 @@ __export(mutations_exports, {
|
|
|
18
18
|
});
|
|
19
19
|
module.exports = __toCommonJS(mutations_exports);
|
|
20
20
|
var import_didRunPermissionCheck = require("./helpers/didRunPermissionCheck"), import_modelRegistry = require("./modelRegistry");
|
|
21
|
+
const registryKey = "__onZeroMutationRegistry__", proxyKey = "__onZeroProxyRegistry__", mutationRegistry = globalThis[registryKey] || (globalThis[registryKey] = /* @__PURE__ */ new Map()), proxyRegistry = globalThis[proxyKey] || (globalThis[proxyKey] = /* @__PURE__ */ new Map());
|
|
22
|
+
function getOrCreateMutationProxy(tableName, implementations) {
|
|
23
|
+
mutationRegistry.set(tableName, implementations);
|
|
24
|
+
const existing = proxyRegistry.get(tableName);
|
|
25
|
+
if (existing)
|
|
26
|
+
return existing;
|
|
27
|
+
const proxy = new Proxy({}, {
|
|
28
|
+
get(_, key) {
|
|
29
|
+
return mutationRegistry.get(tableName)?.[key];
|
|
30
|
+
},
|
|
31
|
+
ownKeys() {
|
|
32
|
+
const current = mutationRegistry.get(tableName);
|
|
33
|
+
return current ? Object.keys(current) : [];
|
|
34
|
+
},
|
|
35
|
+
getOwnPropertyDescriptor(_, key) {
|
|
36
|
+
const current = mutationRegistry.get(tableName);
|
|
37
|
+
if (current && key in current)
|
|
38
|
+
return { enumerable: !0, configurable: !0, value: current[key] };
|
|
39
|
+
},
|
|
40
|
+
has(_, key) {
|
|
41
|
+
const current = mutationRegistry.get(tableName);
|
|
42
|
+
return current ? key in current : !1;
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
return proxyRegistry.set(tableName, proxy), proxy;
|
|
46
|
+
}
|
|
21
47
|
function mutations(table, permissions, mutations2) {
|
|
22
48
|
if (permissions) {
|
|
23
49
|
const tableName = table.schema.name, createCRUDMutation = (action) => async (ctx, obj) => {
|
|
@@ -32,13 +58,12 @@ function mutations(table, permissions, mutations2) {
|
|
|
32
58
|
update: createCRUDMutation("update"),
|
|
33
59
|
delete: createCRUDMutation("delete"),
|
|
34
60
|
upsert: createCRUDMutation("upsert")
|
|
35
|
-
}, finalMutations =
|
|
61
|
+
}, finalMutations = {
|
|
36
62
|
...mutations2,
|
|
37
63
|
// overwrite regular mutations but call them if they are defined by user
|
|
38
64
|
...crudMutations
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
return (0, import_modelRegistry.setMutationsPermissions)(tableName, permissions), finalMutations;
|
|
65
|
+
};
|
|
66
|
+
return (0, import_modelRegistry.setMutationsPermissions)(tableName, permissions), getOrCreateMutationProxy(tableName, finalMutations);
|
|
42
67
|
}
|
|
43
68
|
return table;
|
|
44
69
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/mutations.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mCAAyC,4CACzC,uBAAwC;
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mCAAyC,4CACzC,uBAAwC;AAcxC,MAAM,cAAc,8BACd,WAAW,2BAGX,mBAA0D,WAAW,WAAW,MACrF,WAAW,WAAW,IAAI,oBAAI,IAAI,IAE7B,gBACJ,WAAW,QAAQ,MAAM,WAAW,QAAQ,IAAI,oBAAI,IAAI;AAI1D,SAAS,yBACP,WACA,iBACG;AAEH,mBAAiB,IAAI,WAAW,eAAe;AAG/C,QAAM,WAAW,cAAc,IAAI,SAAS;AAC5C,MAAI;AACF,WAAO;AAIT,QAAM,QAAQ,IAAI,MAAM,CAAC,GAAQ;AAAA,IAC/B,IAAI,GAAG,KAAa;AAClB,aAAO,iBAAiB,IAAI,SAAS,IAAI,GAAG;AAAA,IAC9C;AAAA,IACA,UAAU;AACR,YAAM,UAAU,iBAAiB,IAAI,SAAS;AAC9C,aAAO,UAAU,OAAO,KAAK,OAAO,IAAI,CAAC;AAAA,IAC3C;AAAA,IACA,yBAAyB,GAAG,KAAa;AACvC,YAAM,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JS(mutations_exports);
|
|
28
28
|
var import_didRunPermissionCheck = require("./helpers/didRunPermissionCheck.native.js"),
|
|
29
|
-
import_modelRegistry = require("./modelRegistry.native.js")
|
|
29
|
+
import_modelRegistry = require("./modelRegistry.native.js"),
|
|
30
|
+
registryKey = "__onZeroMutationRegistry__",
|
|
31
|
+
proxyKey = "__onZeroProxyRegistry__",
|
|
32
|
+
mutationRegistry = globalThis[registryKey] || (globalThis[registryKey] = /* @__PURE__ */new Map()),
|
|
33
|
+
proxyRegistry = globalThis[proxyKey] || (globalThis[proxyKey] = /* @__PURE__ */new Map());
|
|
34
|
+
function getOrCreateMutationProxy(tableName, implementations) {
|
|
35
|
+
mutationRegistry.set(tableName, implementations);
|
|
36
|
+
var existing = proxyRegistry.get(tableName);
|
|
37
|
+
if (existing) return existing;
|
|
38
|
+
var proxy = new Proxy({}, {
|
|
39
|
+
get(_, key) {
|
|
40
|
+
var _mutationRegistry_get;
|
|
41
|
+
return (_mutationRegistry_get = mutationRegistry.get(tableName)) === null || _mutationRegistry_get === void 0 ? void 0 : _mutationRegistry_get[key];
|
|
42
|
+
},
|
|
43
|
+
ownKeys() {
|
|
44
|
+
var current = mutationRegistry.get(tableName);
|
|
45
|
+
return current ? Object.keys(current) : [];
|
|
46
|
+
},
|
|
47
|
+
getOwnPropertyDescriptor(_, key) {
|
|
48
|
+
var current = mutationRegistry.get(tableName);
|
|
49
|
+
if (current && key in current) return {
|
|
50
|
+
enumerable: !0,
|
|
51
|
+
configurable: !0,
|
|
52
|
+
value: current[key]
|
|
53
|
+
};
|
|
54
|
+
},
|
|
55
|
+
has(_, key) {
|
|
56
|
+
var current = mutationRegistry.get(tableName);
|
|
57
|
+
return current ? key in current : !1;
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
return proxyRegistry.set(tableName, proxy), proxy;
|
|
61
|
+
}
|
|
30
62
|
function mutations(table, permissions, mutations2) {
|
|
31
63
|
if (permissions) {
|
|
32
64
|
var tableName = table.schema.name,
|
|
@@ -46,12 +78,12 @@ function mutations(table, permissions, mutations2) {
|
|
|
46
78
|
delete: createCRUDMutation("delete"),
|
|
47
79
|
upsert: createCRUDMutation("upsert")
|
|
48
80
|
},
|
|
49
|
-
finalMutations =
|
|
81
|
+
finalMutations = {
|
|
50
82
|
...mutations2,
|
|
51
83
|
// overwrite regular mutations but call them if they are defined by user
|
|
52
84
|
...crudMutations
|
|
53
|
-
}
|
|
54
|
-
return (0, import_modelRegistry.setMutationsPermissions)(tableName, permissions), finalMutations;
|
|
85
|
+
};
|
|
86
|
+
return (0, import_modelRegistry.setMutationsPermissions)(tableName, permissions), getOrCreateMutationProxy(tableName, finalMutations);
|
|
55
87
|
}
|
|
56
88
|
return table;
|
|
57
89
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","mutations_exports","__export","mutations","module","exports","import_didRunPermissionCheck","require","import_modelRegistry","
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","mutations_exports","__export","mutations","module","exports","import_didRunPermissionCheck","require","import_modelRegistry","registryKey","proxyKey","mutationRegistry","globalThis","Map","proxyRegistry","getOrCreateMutationProxy","tableName","implementations","set","existing","get","proxy","Proxy","_","key","_mutationRegistry_get","ownKeys","current","Object","keys","getOwnPropertyDescriptor","enumerable","configurable","has","table","permissions","mutations2","schema","name","createCRUDMutation","action","ctx","obj","runServerPermissionCheck","getDidRunPermissionCheck","process","env","VITE_ENVIRONMENT","can","tx","mutate","crudMutations","insert","update","delete","upsert","finalMutations"],"sources":["../../src/mutations.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,iBAAA;AAAAC,QAAA,CAAAD,iBAAA;EAAAE,SAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CA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O,OAASW,OAGd,GAAAH,GAA0B,IAAAG,OAAA,GAAqB;IAC/C;EACE;EAYI,OAAAb,aAAM,CAAAI,GAAA,CAAAF,SAAA,EAAAK,KAA2B,GAAAA,KAAY;AAC3C;AAOgC,SAElClB,UAAA+B,KAAA,EAAAC,WAAA,EAAAC,UAAA;EAEA,IAAID,WAAW;IAKf,IAAAnB,SAAM,GAAAkB,KAAW,CAAAG,MAAA,CAAAC,IAAY;MAAAC,kBAAM,YAAAA,CAAAC,MAAA;QAE/B,uBACIC,GAAA,EAASC,GAAA,EAAK;UAYpB,IAAAC,wBAAoC,kBAAAA,CAAA;YACxC,IAAQrC,4BAA2B,CAAAsC,wBAAA,EAAAH,GAAA,KAAAI,OAAA,CAAAC,GAAA,CAAAC,gBAAA,qBAAAN,GAAA,CAAAO,GAAA,CAAAb,WAAA,EAAAO,GAAA;UACnC;UACAF,MAAQ,wBAAmBG,wBAAQ;UACnC,IAAAxB,QAAQ,GAAAiB,UAAmB,GAAAI,MAAQ;UAG/BrB,QAAA,SAAiBA,QAAA,CAAAsB,GAAA,EAAAC,GAAA,UAAAD,GAAA,CAAAQ,EAAA,CAAAC,MAAA,CAAAlC,SAAA,EAAAwB,MAAA,EAAAE,GAAA,GAAAF,MAAA,wBAAAG,wBAAA;QACrB;MAAG;MAAAQ,aAAA;QAEHC,MAAG,EAAAb,kBAAA;QACLc,MAAA,EAAAd,kBAAA;QAEAe,MAAA,EAAAf,kBAAA;QAIFgB,MAAA,EAAAhB,kBAAA;MAGA;MAAAiB,cAAO;QACT,GAAApB,UAAA","ignoreList":[]}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all) __defProp(target, name, {
|
|
7
|
+
get: all[name],
|
|
8
|
+
enumerable: !0
|
|
9
|
+
});
|
|
10
|
+
},
|
|
11
|
+
__copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
13
|
+
get: () => from[key],
|
|
14
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
15
|
+
});
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
19
|
+
value: !0
|
|
20
|
+
}), mod);
|
|
21
|
+
var vite_plugin_exports = {};
|
|
22
|
+
__export(vite_plugin_exports, {
|
|
23
|
+
default: () => vite_plugin_default,
|
|
24
|
+
onZeroHmrPlugin: () => onZeroHmrPlugin,
|
|
25
|
+
onZeroPlugin: () => onZeroPlugin
|
|
26
|
+
});
|
|
27
|
+
module.exports = __toCommonJS(vite_plugin_exports);
|
|
28
|
+
var import_node_path = require("node:path"),
|
|
29
|
+
import_generate = require("./generate.cjs");
|
|
30
|
+
function createOnZeroHmrPlugin(hmrInclude = []) {
|
|
31
|
+
const hmrPaths = ["/models/", "/generated/", "/queries/", ...hmrInclude];
|
|
32
|
+
return {
|
|
33
|
+
name: "on-zero:hmr",
|
|
34
|
+
apply: "serve",
|
|
35
|
+
enforce: "post",
|
|
36
|
+
transform(code, id) {
|
|
37
|
+
if (!(!hmrPaths.some(p => id.includes(p)) || !/\.tsx?$/.test(id)) && code.includes("import.meta.hot.invalidate")) return {
|
|
38
|
+
code: code.replace(/if\s*\(invalidateMessage\)\s*import\.meta\.hot\.invalidate\(invalidateMessage\);?/g, "/* on-zero: HMR invalidate disabled */"),
|
|
39
|
+
map: null
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
function isWithinDirectory(file, dir) {
|
|
45
|
+
const rel = (0, import_node_path.relative)(dir, file);
|
|
46
|
+
return rel !== "" && !rel.startsWith("..") && !(0, import_node_path.isAbsolute)(rel);
|
|
47
|
+
}
|
|
48
|
+
function onZeroPlugin(options = {}) {
|
|
49
|
+
const dir = options.dir ?? "src/data";
|
|
50
|
+
let dataDir, modelsDir, queriesDir;
|
|
51
|
+
const runGenerate = silent => (0, import_generate.generate)({
|
|
52
|
+
dir: dataDir,
|
|
53
|
+
after: options.after,
|
|
54
|
+
silent
|
|
55
|
+
});
|
|
56
|
+
return [{
|
|
57
|
+
name: "on-zero:serve",
|
|
58
|
+
apply: "serve",
|
|
59
|
+
configResolved(config) {
|
|
60
|
+
dataDir = (0, import_node_path.resolve)(config.root, dir), modelsDir = (0, import_node_path.resolve)(dataDir, "models"), queriesDir = (0, import_node_path.resolve)(dataDir, "queries");
|
|
61
|
+
},
|
|
62
|
+
async buildStart() {
|
|
63
|
+
options.disableGenerate || (await runGenerate(!1));
|
|
64
|
+
},
|
|
65
|
+
configureServer(server) {
|
|
66
|
+
if (options.disableGenerate) return;
|
|
67
|
+
const handler = async file => {
|
|
68
|
+
/\.tsx?$/.test(file) && (isWithinDirectory(file, modelsDir) || isWithinDirectory(file, queriesDir)) && (await runGenerate(!1));
|
|
69
|
+
};
|
|
70
|
+
server.watcher.on("change", handler), server.watcher.on("add", handler), server.watcher.on("unlink", handler);
|
|
71
|
+
}
|
|
72
|
+
}, {
|
|
73
|
+
name: "on-zero:build",
|
|
74
|
+
apply: "build",
|
|
75
|
+
configResolved(config) {
|
|
76
|
+
dataDir = (0, import_node_path.resolve)(config.root, dir);
|
|
77
|
+
},
|
|
78
|
+
async buildStart() {
|
|
79
|
+
options.disableGenerate || (await runGenerate(!0));
|
|
80
|
+
}
|
|
81
|
+
}, createOnZeroHmrPlugin(options.hmrInclude)];
|
|
82
|
+
}
|
|
83
|
+
const onZeroHmrPlugin = options => createOnZeroHmrPlugin(options?.include);
|
|
84
|
+
var vite_plugin_default = onZeroPlugin;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: !0 });
|
|
8
|
+
}, __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from == "object" || typeof from == "function")
|
|
10
|
+
for (let key of __getOwnPropNames(from))
|
|
11
|
+
!__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: !0 }), mod);
|
|
15
|
+
var vite_plugin_exports = {};
|
|
16
|
+
__export(vite_plugin_exports, {
|
|
17
|
+
default: () => vite_plugin_default,
|
|
18
|
+
onZeroHmrPlugin: () => onZeroHmrPlugin,
|
|
19
|
+
onZeroPlugin: () => onZeroPlugin
|
|
20
|
+
});
|
|
21
|
+
module.exports = __toCommonJS(vite_plugin_exports);
|
|
22
|
+
var import_node_path = require("node:path"), import_generate = require("./generate");
|
|
23
|
+
function createOnZeroHmrPlugin(hmrInclude = []) {
|
|
24
|
+
const hmrPaths = ["/models/", "/generated/", "/queries/", ...hmrInclude];
|
|
25
|
+
return {
|
|
26
|
+
name: "on-zero:hmr",
|
|
27
|
+
apply: "serve",
|
|
28
|
+
enforce: "post",
|
|
29
|
+
transform(code, id) {
|
|
30
|
+
if (!(!hmrPaths.some((p) => id.includes(p)) || !/\.tsx?$/.test(id)) && code.includes("import.meta.hot.invalidate"))
|
|
31
|
+
return {
|
|
32
|
+
code: code.replace(
|
|
33
|
+
/if\s*\(invalidateMessage\)\s*import\.meta\.hot\.invalidate\(invalidateMessage\);?/g,
|
|
34
|
+
"/* on-zero: HMR invalidate disabled */"
|
|
35
|
+
),
|
|
36
|
+
map: null
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function isWithinDirectory(file, dir) {
|
|
42
|
+
const rel = (0, import_node_path.relative)(dir, file);
|
|
43
|
+
return rel !== "" && !rel.startsWith("..") && !(0, import_node_path.isAbsolute)(rel);
|
|
44
|
+
}
|
|
45
|
+
function onZeroPlugin(options = {}) {
|
|
46
|
+
const dir = options.dir ?? "src/data";
|
|
47
|
+
let dataDir, modelsDir, queriesDir;
|
|
48
|
+
const runGenerate = (silent) => (0, import_generate.generate)({
|
|
49
|
+
dir: dataDir,
|
|
50
|
+
after: options.after,
|
|
51
|
+
silent
|
|
52
|
+
});
|
|
53
|
+
return [
|
|
54
|
+
{
|
|
55
|
+
name: "on-zero:serve",
|
|
56
|
+
apply: "serve",
|
|
57
|
+
configResolved(config) {
|
|
58
|
+
dataDir = (0, import_node_path.resolve)(config.root, dir), modelsDir = (0, import_node_path.resolve)(dataDir, "models"), queriesDir = (0, import_node_path.resolve)(dataDir, "queries");
|
|
59
|
+
},
|
|
60
|
+
async buildStart() {
|
|
61
|
+
options.disableGenerate || await runGenerate(!1);
|
|
62
|
+
},
|
|
63
|
+
configureServer(server) {
|
|
64
|
+
if (options.disableGenerate) return;
|
|
65
|
+
const handler = async (file) => {
|
|
66
|
+
/\.tsx?$/.test(file) && (isWithinDirectory(file, modelsDir) || isWithinDirectory(file, queriesDir)) && await runGenerate(!1);
|
|
67
|
+
};
|
|
68
|
+
server.watcher.on("change", handler), server.watcher.on("add", handler), server.watcher.on("unlink", handler);
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
name: "on-zero:build",
|
|
73
|
+
apply: "build",
|
|
74
|
+
configResolved(config) {
|
|
75
|
+
dataDir = (0, import_node_path.resolve)(config.root, dir);
|
|
76
|
+
},
|
|
77
|
+
async buildStart() {
|
|
78
|
+
options.disableGenerate || await runGenerate(!0);
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
createOnZeroHmrPlugin(options.hmrInclude)
|
|
82
|
+
];
|
|
83
|
+
}
|
|
84
|
+
const onZeroHmrPlugin = (options) => createOnZeroHmrPlugin(options?.include);
|
|
85
|
+
var vite_plugin_default = onZeroPlugin;
|
|
86
|
+
//# sourceMappingURL=vite-plugin.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/vite-plugin.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAA8C,sBAE9C,kBAA+C;AAa/C,SAAS,sBAAsB,aAAuB,CAAC,GAAW;AAChE,QAAM,WAAW,CAAC,YAAY,eAAe,aAAa,GAAG,UAAU;AAEvE,SAAO;AAAA,IACL,MAAM;AAAA,IACN,OAAO;AAAA,IACP,SAAS;AAAA,IAET,UAAU,MAAM,IAAI;AAClB,UAAI,GAAC,SAAS,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC,KAAK,CAAC,UAAU,KAAK,EAAE,MAC1D,KAAK,SAAS,4BAA4B;AAE/C,eAAO;AAAA,UACL,MAAM,KAAK;AAAA,YACT;AAAA,YACA;AAAA,UACF;AAAA,UACA,KAAK;AAAA,QACP;AAAA,IACF;AAAA,EACF;AACF;AAEA,SAAS,kBAAkB,MAAc,KAAsB;AAC7D,QAAM,UAAM,2BAAS,KAAK,IAAI;AAC9B,SAAO,QAAQ,MAAM,CAAC,IAAI,WAAW,IAAI,KAAK,KAAC,6BAAW,GAAG;AAC/D;AAEO,SAAS,aAAa,UAA+B,CAAC,GAAa;AACxE,QAAM,MAAM,QAAQ,OAAO;AAE3B,MAAI,SACA,WACA;AAEJ,QAAM,cAAc,CAAC,eACnB,0BAAS;AAAA,IACP,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nPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all) __defProp(target, name, {
|
|
9
|
+
get: all[name],
|
|
10
|
+
enumerable: !0
|
|
11
|
+
});
|
|
12
|
+
},
|
|
13
|
+
__copyProps = (to, from, except, desc) => {
|
|
14
|
+
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
+
value: !0
|
|
22
|
+
}), mod);
|
|
23
|
+
var vite_plugin_exports = {};
|
|
24
|
+
__export(vite_plugin_exports, {
|
|
25
|
+
default: () => vite_plugin_default,
|
|
26
|
+
onZeroHmrPlugin: () => onZeroHmrPlugin,
|
|
27
|
+
onZeroPlugin: () => onZeroPlugin
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(vite_plugin_exports);
|
|
30
|
+
var import_path = require("path"),
|
|
31
|
+
import_generate = require("./generate.native.js");
|
|
32
|
+
function createOnZeroHmrPlugin() {
|
|
33
|
+
var hmrInclude = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [],
|
|
34
|
+
hmrPaths = ["/models/", "/generated/", "/queries/", ...hmrInclude];
|
|
35
|
+
return {
|
|
36
|
+
name: "on-zero:hmr",
|
|
37
|
+
apply: "serve",
|
|
38
|
+
enforce: "post",
|
|
39
|
+
transform(code, id) {
|
|
40
|
+
if (!(!hmrPaths.some(function (p) {
|
|
41
|
+
return id.includes(p);
|
|
42
|
+
}) || !/\.tsx?$/.test(id)) && code.includes("import.meta.hot.invalidate")) return {
|
|
43
|
+
code: code.replace(/if\s*\(invalidateMessage\)\s*import\.meta\.hot\.invalidate\(invalidateMessage\);?/g, "/* on-zero: HMR invalidate disabled */"),
|
|
44
|
+
map: null
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
function isWithinDirectory(file, dir) {
|
|
50
|
+
var rel = (0, import_path.relative)(dir, file);
|
|
51
|
+
return rel !== "" && !rel.startsWith("..") && !(0, import_path.isAbsolute)(rel);
|
|
52
|
+
}
|
|
53
|
+
function onZeroPlugin() {
|
|
54
|
+
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {},
|
|
55
|
+
_options_dir,
|
|
56
|
+
dir = (_options_dir = options.dir) !== null && _options_dir !== void 0 ? _options_dir : "src/data",
|
|
57
|
+
dataDir,
|
|
58
|
+
modelsDir,
|
|
59
|
+
queriesDir,
|
|
60
|
+
runGenerate = function (silent) {
|
|
61
|
+
return (0, import_generate.generate)({
|
|
62
|
+
dir: dataDir,
|
|
63
|
+
after: options.after,
|
|
64
|
+
silent
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
return [{
|
|
68
|
+
name: "on-zero:serve",
|
|
69
|
+
apply: "serve",
|
|
70
|
+
configResolved(config) {
|
|
71
|
+
dataDir = (0, import_path.resolve)(config.root, dir), modelsDir = (0, import_path.resolve)(dataDir, "models"), queriesDir = (0, import_path.resolve)(dataDir, "queries");
|
|
72
|
+
},
|
|
73
|
+
async buildStart() {
|
|
74
|
+
options.disableGenerate || (await runGenerate(!1));
|
|
75
|
+
},
|
|
76
|
+
configureServer(server) {
|
|
77
|
+
if (!options.disableGenerate) {
|
|
78
|
+
var handler = async function (file) {
|
|
79
|
+
/\.tsx?$/.test(file) && (isWithinDirectory(file, modelsDir) || isWithinDirectory(file, queriesDir)) && (await runGenerate(!1));
|
|
80
|
+
};
|
|
81
|
+
server.watcher.on("change", handler), server.watcher.on("add", handler), server.watcher.on("unlink", handler);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}, {
|
|
85
|
+
name: "on-zero:build",
|
|
86
|
+
apply: "build",
|
|
87
|
+
configResolved(config) {
|
|
88
|
+
dataDir = (0, import_path.resolve)(config.root, dir);
|
|
89
|
+
},
|
|
90
|
+
async buildStart() {
|
|
91
|
+
options.disableGenerate || (await runGenerate(!0));
|
|
92
|
+
}
|
|
93
|
+
}, createOnZeroHmrPlugin(options.hmrInclude)];
|
|
94
|
+
}
|
|
95
|
+
var onZeroHmrPlugin = function (options) {
|
|
96
|
+
return createOnZeroHmrPlugin(options?.include);
|
|
97
|
+
},
|
|
98
|
+
vite_plugin_default = onZeroPlugin;
|
|
99
|
+
//# sourceMappingURL=vite-plugin.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["__toCommonJS","mod","__copyProps","__defProp","value","vite_plugin_exports","__export","default","vite_plugin_default","onZeroHmrPlugin","onZeroPlugin","module","exports","import_path","require","import_generate","createOnZeroHmrPlugin","hmrInclude","arguments","length","hmrPaths","name","apply","enforce","transform","code","id","some","p","includes","test","replace","map","isWithinDirectory","file","dir","rel","relative","startsWith","isAbsolute","options","_options_dir","dataDir","modelsDir","queriesDir","runGenerate","silent","generate","after","configResolved","config","resolve","root","buildStart","disableGenerate","configureServer","server","handler","watcher","on"],"sources":["../../src/vite-plugin.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,GAAA,IAAAC,WAAA,CAAAC,SAAA;EAAAC,KAAA;AAAA,IAAAH,GAAA;AAAA,IAAAI,mBAAA;AAAAC,QAAA,CAAAD,mBAAA;EAAAE,OAAA,EAAAA,CAAA,KAAAC,mBAAA;EAAAC,eAAA,EAAAA,CAAA,KAAAA,eAAA;EAAAC,YAAA,EAAAA,CAAA,KAAAA;AAAA;AAAAC,MAAA,CAAAC,OAAA,GAAAZ,YAA8C,CAAAK,mBAE9C;AAaA,IAAAQ,WAAS,GAAAC,OAAA,OAAsB;EAAAC,eAAmC,GAAAD,OAA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