@hozu/cli 0.1.0 → 0.3.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/README.md +2 -0
- package/dist/commands/add.d.ts +6 -0
- package/dist/commands/add.d.ts.map +1 -0
- package/dist/commands/add.js +269 -0
- package/dist/commands/add.js.map +1 -0
- package/dist/commands/check.d.ts +5 -0
- package/dist/commands/check.d.ts.map +1 -0
- package/dist/commands/check.js +55 -0
- package/dist/commands/check.js.map +1 -0
- package/dist/commands/map.d.ts +5 -0
- package/dist/commands/map.d.ts.map +1 -0
- package/dist/commands/map.js +125 -0
- package/dist/commands/map.js.map +1 -0
- package/dist/commands/request.d.ts +24 -0
- package/dist/commands/request.d.ts.map +1 -0
- package/dist/commands/request.js +305 -0
- package/dist/commands/request.js.map +1 -0
- package/dist/commands/scaffold.d.ts +32 -0
- package/dist/commands/scaffold.d.ts.map +1 -0
- package/dist/commands/scaffold.js +533 -0
- package/dist/commands/scaffold.js.map +1 -0
- package/dist/contract.d.ts +119 -0
- package/dist/contract.d.ts.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +88 -1
- package/dist/main.js.map +1 -1
- package/package.json +6 -6
- package/schema/add.schema.json +69 -0
- package/schema/check.schema.json +405 -0
- package/schema/map.schema.json +383 -0
- package/schema/request.schema.json +144 -0
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
var __rewriteRelativeImportExtension = (this && this.__rewriteRelativeImportExtension) || function (path, preserveJsx) {
|
|
2
|
+
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
3
|
+
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
|
|
4
|
+
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
return path;
|
|
8
|
+
};
|
|
9
|
+
import { randomBytes } from 'node:crypto';
|
|
10
|
+
import { createRequire } from 'node:module';
|
|
11
|
+
import { dirname, join } from 'node:path';
|
|
12
|
+
import { pathToFileURL } from 'node:url';
|
|
13
|
+
import { HozuCliError } from '../errors.js';
|
|
14
|
+
const LIMIT = 1500;
|
|
15
|
+
const decode = (s) => s
|
|
16
|
+
.replace(/"/g, '"')
|
|
17
|
+
.replace(/'/g, "'")
|
|
18
|
+
.replace(/</g, '<')
|
|
19
|
+
.replace(/>/g, '>')
|
|
20
|
+
.replace(/&/g, '&');
|
|
21
|
+
const attrsOf = (source) => {
|
|
22
|
+
const out = {};
|
|
23
|
+
for (const m of source.matchAll(/([\w:-]+)(?:="([^"]*)")?/g))
|
|
24
|
+
out[m[1].toLowerCase()] = decode(m[2] ?? '');
|
|
25
|
+
return out;
|
|
26
|
+
};
|
|
27
|
+
const plain = (html) => decode(html.replace(/<!--[\s\S]*?-->/g, '').replace(/<[^>]+>/g, ' '))
|
|
28
|
+
.replace(/\s+/g, ' ')
|
|
29
|
+
.trim();
|
|
30
|
+
export function formsOf(html, at) {
|
|
31
|
+
const forms = [];
|
|
32
|
+
for (const m of html.matchAll(/<form\b([^>]*)>([\s\S]*?)<\/form>/g)) {
|
|
33
|
+
const attrs = attrsOf(m[1]);
|
|
34
|
+
if ((attrs.method ?? 'get').toLowerCase() !== 'post')
|
|
35
|
+
continue;
|
|
36
|
+
const body = m[2];
|
|
37
|
+
const fields = {};
|
|
38
|
+
for (const i of body.matchAll(/<input\b([^>]*)>/g)) {
|
|
39
|
+
const a = attrsOf(i[1]);
|
|
40
|
+
if (!a.name || ['submit', 'button', 'reset', 'file'].includes(a.type ?? ''))
|
|
41
|
+
continue;
|
|
42
|
+
if (['checkbox', 'radio'].includes(a.type ?? '') && !('checked' in a))
|
|
43
|
+
continue;
|
|
44
|
+
fields[a.name] = a.value ?? (a.type === 'checkbox' ? 'on' : '');
|
|
45
|
+
}
|
|
46
|
+
for (const s of body.matchAll(/<select\b([^>]*)>([\s\S]*?)<\/select>/g)) {
|
|
47
|
+
const name = attrsOf(s[1]).name;
|
|
48
|
+
if (!name)
|
|
49
|
+
continue;
|
|
50
|
+
const options = [...s[2].matchAll(/<option\b([^>]*)>([\s\S]*?)<\/option>/g)].map((o) => {
|
|
51
|
+
const a = attrsOf(o[1]);
|
|
52
|
+
return { value: a.value ?? plain(o[2]), selected: 'selected' in a };
|
|
53
|
+
});
|
|
54
|
+
const chosen = options.find((o) => o.selected) ?? options[0];
|
|
55
|
+
if (chosen)
|
|
56
|
+
fields[name] = chosen.value;
|
|
57
|
+
}
|
|
58
|
+
for (const t of body.matchAll(/<textarea\b([^>]*)>([\s\S]*?)<\/textarea>/g)) {
|
|
59
|
+
const name = attrsOf(t[1]).name;
|
|
60
|
+
if (name)
|
|
61
|
+
fields[name] = decode(t[2]);
|
|
62
|
+
}
|
|
63
|
+
const buttons = [];
|
|
64
|
+
for (const b of body.matchAll(/<button\b([^>]*)>([\s\S]*?)<\/button>/g))
|
|
65
|
+
if ((attrsOf(b[1]).type ?? 'submit') === 'submit')
|
|
66
|
+
buttons.push(plain(b[2]));
|
|
67
|
+
for (const i of body.matchAll(/<input\b([^>]*)>/g)) {
|
|
68
|
+
const a = attrsOf(i[1]);
|
|
69
|
+
if (a.type === 'submit')
|
|
70
|
+
buttons.push(a.value ?? 'Submit');
|
|
71
|
+
}
|
|
72
|
+
forms.push({ action: attrs.action || at, fields, buttons });
|
|
73
|
+
}
|
|
74
|
+
return forms;
|
|
75
|
+
}
|
|
76
|
+
const VOID = new Set([
|
|
77
|
+
'area',
|
|
78
|
+
'base',
|
|
79
|
+
'br',
|
|
80
|
+
'col',
|
|
81
|
+
'embed',
|
|
82
|
+
'hr',
|
|
83
|
+
'img',
|
|
84
|
+
'input',
|
|
85
|
+
'link',
|
|
86
|
+
'meta',
|
|
87
|
+
'source',
|
|
88
|
+
'track',
|
|
89
|
+
'wbr',
|
|
90
|
+
]);
|
|
91
|
+
const selectorOf = (selector) => {
|
|
92
|
+
const m = /^([a-z][\w-]*)?(?:#([\w-]+))?(?:\[([\w:-]+)(?:=["']?([^"'\]]*)["']?)?\])?$/i.exec(selector.trim());
|
|
93
|
+
if (!m || (!m[1] && !m[2] && !m[3]))
|
|
94
|
+
throw new HozuCliError('usage', `Unsupported selector "${selector}"`, [
|
|
95
|
+
'button',
|
|
96
|
+
'#id',
|
|
97
|
+
'[role=alert]',
|
|
98
|
+
'a[href]',
|
|
99
|
+
'input[name=title]',
|
|
100
|
+
]);
|
|
101
|
+
return { tag: m[1]?.toLowerCase(), id: m[2], attr: m[3]?.toLowerCase(), value: m[4] };
|
|
102
|
+
};
|
|
103
|
+
export function elementsOf(html, selector) {
|
|
104
|
+
const sel = selectorOf(selector);
|
|
105
|
+
const source = html.replace(/<(script|style|template)\b[\s\S]*?<\/\1>/gi, (m) => ' '.repeat(m.length));
|
|
106
|
+
const out = [];
|
|
107
|
+
const open = /<([a-z][\w-]*)\b([^>]*)>/gi;
|
|
108
|
+
for (const m of source.matchAll(open)) {
|
|
109
|
+
const tag = m[1].toLowerCase();
|
|
110
|
+
if (sel.tag && sel.tag !== tag)
|
|
111
|
+
continue;
|
|
112
|
+
const attrs = attrsOf(m[2].replace(/\/$/, ''));
|
|
113
|
+
if (sel.id && attrs.id !== sel.id)
|
|
114
|
+
continue;
|
|
115
|
+
if (sel.attr && (!(sel.attr in attrs) || (sel.value !== undefined && attrs[sel.attr] !== sel.value)))
|
|
116
|
+
continue;
|
|
117
|
+
let text = '';
|
|
118
|
+
if (!VOID.has(tag)) {
|
|
119
|
+
const start = m.index + m[0].length;
|
|
120
|
+
const tags = new RegExp(`<(/?)${tag}\\b[^>]*>`, 'gi');
|
|
121
|
+
tags.lastIndex = start;
|
|
122
|
+
let depth = 1;
|
|
123
|
+
let end = source.length;
|
|
124
|
+
for (let t = tags.exec(source); t; t = tags.exec(source)) {
|
|
125
|
+
depth += t[1] ? -1 : 1;
|
|
126
|
+
if (depth === 0) {
|
|
127
|
+
end = t.index;
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
text = plain(source.slice(start, end));
|
|
132
|
+
}
|
|
133
|
+
out.push({ selector, tag, attrs, text: text.length > 120 ? `${text.slice(0, 120)}…` : text });
|
|
134
|
+
}
|
|
135
|
+
return out;
|
|
136
|
+
}
|
|
137
|
+
const titleOf = (html) => {
|
|
138
|
+
const t = /<title>([\s\S]*?)<\/title>/.exec(html)?.[1];
|
|
139
|
+
return t === undefined ? null : plain(t);
|
|
140
|
+
};
|
|
141
|
+
const alertsOf = (html) => [...html.matchAll(/<(\w+)\b[^>]*role="alert"[^>]*>([\s\S]*?)<\/\1>/g)]
|
|
142
|
+
.map((m) => plain(m[2]))
|
|
143
|
+
.filter((t) => t !== '');
|
|
144
|
+
export async function runRequest(loaded, options) {
|
|
145
|
+
const require = createRequire(loaded.path);
|
|
146
|
+
const importFrom = async (id, hint) => {
|
|
147
|
+
try {
|
|
148
|
+
return (await import(__rewriteRelativeImportExtension(pathToFileURL(require.resolve(id)).href)));
|
|
149
|
+
}
|
|
150
|
+
catch {
|
|
151
|
+
throw new HozuCliError('config', `hozu ${options.method.toLowerCase()} needs ${id} in the app`, hint);
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
const { testApp } = await importFrom('@hozu/testing', ['npm install -D @hozu/testing']);
|
|
155
|
+
const serverPath = join(dirname(loaded.path), 'server.ts');
|
|
156
|
+
const server = await import(__rewriteRelativeImportExtension(pathToFileURL(serverPath).href)).catch(() => null);
|
|
157
|
+
if (typeof server?.createResolvers !== 'function')
|
|
158
|
+
throw new HozuCliError('config', `${serverPath} must export createResolvers()`, [
|
|
159
|
+
'export function createResolvers() { return resolvers(project, (implement) => [...]) }',
|
|
160
|
+
]);
|
|
161
|
+
let session = null;
|
|
162
|
+
if (options.session !== undefined)
|
|
163
|
+
try {
|
|
164
|
+
session = JSON.parse(options.session);
|
|
165
|
+
}
|
|
166
|
+
catch {
|
|
167
|
+
throw new HozuCliError('usage', '--session must be JSON', [`--session '{"userId":"ada"}'`]);
|
|
168
|
+
}
|
|
169
|
+
const store = options.session === undefined
|
|
170
|
+
? (await importFrom('@hozu/runtime-server', ['npm install @hozu/runtime-server'])).sessionCookie({ name: 'sid', secret: randomBytes(24).toString('hex'), secure: false })
|
|
171
|
+
: () => session;
|
|
172
|
+
const app = testApp({
|
|
173
|
+
build: loaded.build(),
|
|
174
|
+
resolvers: server.createResolvers(),
|
|
175
|
+
env: process.env,
|
|
176
|
+
session: store,
|
|
177
|
+
});
|
|
178
|
+
const cookies = new Map();
|
|
179
|
+
const init = () => ({
|
|
180
|
+
headers: cookies.size ? { cookie: [...cookies].map(([k, v]) => `${k}=${v}`).join('; ') } : {},
|
|
181
|
+
});
|
|
182
|
+
const remember = (page) => {
|
|
183
|
+
for (const c of page.headers.getSetCookie()) {
|
|
184
|
+
const [pair = ''] = c.split(';');
|
|
185
|
+
const eq = pair.indexOf('=');
|
|
186
|
+
if (eq > 0)
|
|
187
|
+
cookies.set(pair.slice(0, eq).trim(), pair.slice(eq + 1).trim());
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
const steps = [];
|
|
191
|
+
const record = (method, path, page, final) => {
|
|
192
|
+
const location = page.headers.get('location');
|
|
193
|
+
const text = page.text.length > LIMIT && !options.full ? `${page.text.slice(0, LIMIT)}…` : page.text;
|
|
194
|
+
steps.push({
|
|
195
|
+
method,
|
|
196
|
+
path,
|
|
197
|
+
status: page.status,
|
|
198
|
+
location,
|
|
199
|
+
title: final ? titleOf(page.html) : null,
|
|
200
|
+
alerts: final ? alertsOf(page.html) : [],
|
|
201
|
+
text: final ? text : null,
|
|
202
|
+
truncated: final && page.text.length > LIMIT && !options.full,
|
|
203
|
+
elements: final ? options.select.flatMap((q) => elementsOf(page.html, q)) : [],
|
|
204
|
+
forms: final && options.forms ? formsOf(page.html, path) : [],
|
|
205
|
+
});
|
|
206
|
+
};
|
|
207
|
+
const get = async (path) => {
|
|
208
|
+
for (let hops = 0; hops < 5; hops++) {
|
|
209
|
+
const page = await app.get(path, init());
|
|
210
|
+
remember(page);
|
|
211
|
+
const location = page.headers.get('location');
|
|
212
|
+
const redirect = page.status >= 300 && page.status < 400 && location;
|
|
213
|
+
record('GET', path, page, !redirect);
|
|
214
|
+
if (!redirect)
|
|
215
|
+
return;
|
|
216
|
+
path = new URL(location, 'http://localhost/').pathname + new URL(location, 'http://localhost/').search;
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
if (options.method === 'GET') {
|
|
220
|
+
if (!options.paths.length)
|
|
221
|
+
throw new HozuCliError('usage', 'hozu get needs a path', ['hozu get /']);
|
|
222
|
+
for (const path of options.paths)
|
|
223
|
+
await get(path);
|
|
224
|
+
return { steps };
|
|
225
|
+
}
|
|
226
|
+
const fieldsOf = (list) => {
|
|
227
|
+
const given = {};
|
|
228
|
+
for (const f of list) {
|
|
229
|
+
const eq = f.indexOf('=');
|
|
230
|
+
if (eq <= 0)
|
|
231
|
+
throw new HozuCliError('usage', `Field "${f}" must be name=value`, ['--field title=Ship it']);
|
|
232
|
+
given[f.slice(0, eq)] = f.slice(eq + 1);
|
|
233
|
+
}
|
|
234
|
+
return given;
|
|
235
|
+
};
|
|
236
|
+
const post = async (path, given, button) => {
|
|
237
|
+
const page = await app.get(path, init());
|
|
238
|
+
remember(page);
|
|
239
|
+
const forms = formsOf(page.html, path);
|
|
240
|
+
const label = button?.trim().toLowerCase();
|
|
241
|
+
const form = forms.find((f) => Object.keys(given).every((k) => k in f.fields) &&
|
|
242
|
+
(label === undefined || f.buttons.some((b) => b.toLowerCase() === label)));
|
|
243
|
+
if (!form)
|
|
244
|
+
throw new HozuCliError('usage', forms.length
|
|
245
|
+
? `No form on ${path} has ${[
|
|
246
|
+
Object.keys(given).length ? `the fields ${Object.keys(given).join(', ')}` : '',
|
|
247
|
+
label ? `a "${button}" button` : '',
|
|
248
|
+
]
|
|
249
|
+
.filter(Boolean)
|
|
250
|
+
.join(' and ')}`
|
|
251
|
+
: `${path} has no form that posts`, forms.map((f) => `form fields: ${Object.keys(f.fields).join(', ') || '(none)'} · buttons: ${f.buttons.join(', ') || '(none)'}`));
|
|
252
|
+
const posted = await app.post(form.action, { ...form.fields, ...given }, init());
|
|
253
|
+
remember(posted);
|
|
254
|
+
const location = posted.headers.get('location');
|
|
255
|
+
const redirect = posted.status >= 300 && posted.status < 400 && location;
|
|
256
|
+
record('POST', path, posted, !redirect);
|
|
257
|
+
if (redirect) {
|
|
258
|
+
const next = new URL(location, 'http://localhost/');
|
|
259
|
+
await get(next.pathname + next.search);
|
|
260
|
+
}
|
|
261
|
+
};
|
|
262
|
+
const [path] = options.paths;
|
|
263
|
+
if (!path)
|
|
264
|
+
throw new HozuCliError('usage', 'hozu post needs a path', ['hozu post / --field title=Ship']);
|
|
265
|
+
await post(path, fieldsOf(options.fields), options.button);
|
|
266
|
+
for (const next of options.next) {
|
|
267
|
+
const m = /^(GET|POST)\s+(\S+)\s*(.*)$/.exec(next.trim());
|
|
268
|
+
if (!m)
|
|
269
|
+
await get(next.trim());
|
|
270
|
+
else if (m[1] === 'GET')
|
|
271
|
+
await get(m[2]);
|
|
272
|
+
else {
|
|
273
|
+
const rest = m[3].trim();
|
|
274
|
+
const [fields, button] = rest.startsWith('@')
|
|
275
|
+
? ['', rest.slice(1)]
|
|
276
|
+
: rest.split('@');
|
|
277
|
+
await post(m[2], fieldsOf(fields.trim() ? fields.trim().split('&') : []), button?.trim());
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
return { steps };
|
|
281
|
+
}
|
|
282
|
+
export function describeRequest(out) {
|
|
283
|
+
const lines = [];
|
|
284
|
+
for (const s of out.steps) {
|
|
285
|
+
lines.push(`${s.method} ${s.path} → ${s.status}${s.location ? ` ${s.location}` : ''}`);
|
|
286
|
+
if (s.text === null)
|
|
287
|
+
continue;
|
|
288
|
+
if (s.title)
|
|
289
|
+
lines.push(` title: ${s.title}`);
|
|
290
|
+
for (const a of s.alerts)
|
|
291
|
+
lines.push(` alert: ${a}`);
|
|
292
|
+
lines.push(` text: ${s.text}${s.truncated ? ' (truncated; --full shows all)' : ''}`);
|
|
293
|
+
for (const e of s.elements)
|
|
294
|
+
lines.push(` ${e.selector}: <${e.tag}${Object.entries(e.attrs)
|
|
295
|
+
.filter(([k]) => k !== 'class')
|
|
296
|
+
.map(([k, v]) => (v === '' ? ` ${k}` : ` ${k}="${v}"`))
|
|
297
|
+
.join('')}>${e.text ? ` ${e.text}` : ''}`);
|
|
298
|
+
for (const f of s.forms)
|
|
299
|
+
lines.push(` form ${f.action} fields: ${Object.entries(f.fields)
|
|
300
|
+
.map(([k, v]) => `${k}=${JSON.stringify(v)}`)
|
|
301
|
+
.join(' ') || '(none)'} buttons: ${f.buttons.join(', ') || '(none)'}`);
|
|
302
|
+
}
|
|
303
|
+
return `${lines.join('\n')}\n`;
|
|
304
|
+
}
|
|
305
|
+
//# sourceMappingURL=request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../src/commands/request.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAiB3C,MAAM,KAAK,GAAG,IAAI,CAAA;AAElB,MAAM,MAAM,GAAG,CAAC,CAAS,EAAE,EAAE,CAC3B,CAAC;KACE,OAAO,CAAC,SAAS,EAAE,GAAG,CAAC;KACvB,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC;KACtB,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC;KACrB,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC;KACrB,OAAO,CAA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KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;iBACtD,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAC5C,CAAA;QACH,KAAK,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK;YACrB,KAAK,CAAC,IAAI,CACR,UAAU,CAAC,CAAC,MAAM,YAChB,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC;iBACrB,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;iBAC5C,IAAI,CAAC,GAAG,CAAC,IAAI,QAClB,aAAa,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,QAAQ,EAAE,CAChD,CAAA;IACL,CAAC;IACD,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAA;AAChC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const PARTS: readonly ['auth', 'detail', 'toggle', 'filter', 'remove'];
|
|
2
|
+
export type Part = (typeof PARTS)[number];
|
|
3
|
+
export type With = Record<Part, boolean>;
|
|
4
|
+
export declare function namesOf(name: string): {
|
|
5
|
+
id: string;
|
|
6
|
+
one: string;
|
|
7
|
+
many: string;
|
|
8
|
+
Item: string;
|
|
9
|
+
Key: string;
|
|
10
|
+
New: string;
|
|
11
|
+
list: string;
|
|
12
|
+
get: string;
|
|
13
|
+
add: string;
|
|
14
|
+
toggle: string;
|
|
15
|
+
remove: string;
|
|
16
|
+
tag: string;
|
|
17
|
+
machine: string;
|
|
18
|
+
View: string;
|
|
19
|
+
Detail: string;
|
|
20
|
+
detailRoute: string;
|
|
21
|
+
feature: string;
|
|
22
|
+
resolvers: string;
|
|
23
|
+
title: string;
|
|
24
|
+
};
|
|
25
|
+
export type Names = ReturnType<typeof namesOf>;
|
|
26
|
+
export declare function model(n: Names, w: With): string;
|
|
27
|
+
export declare function views(n: Names, w: With, listRoute: string | null): string;
|
|
28
|
+
export declare function server(n: Names, w: With): string;
|
|
29
|
+
export declare function accountModel(homeRoute: string): string;
|
|
30
|
+
export declare function accountViews(homePath: string): string;
|
|
31
|
+
export declare const accountServer: () => string;
|
|
32
|
+
//# sourceMappingURL=scaffold.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../src/commands/scaffold.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,YAAI,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAU,CAAA;AAC9E,MAAM,MAAM,IAAI,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC,MAAM,CAAC,CAAA;AACzC,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;AAIxC,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;EAyBnC;AAED,MAAM,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,OAAO,CAAC,CAAA;AAO9C,wBAAgB,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,GAAG,MAAM,CAuJ/C;AAED,wBAAgB,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAkPzE;AAED,wBAAgB,MAAM,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,GAAG,MAAM,CAgEhD;AAED,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CA8DtD;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAqHrD;AAED,eAAO,MAAM,aAAa,cAgBzB,CAAA"}
|