@grove-dev/cli 0.3.1 → 0.3.2

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.
Files changed (108) hide show
  1. package/README.md +8 -93
  2. package/dist/index.d.ts +1 -2
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +95 -1931
  5. package/dist/index.js.map +1 -1
  6. package/dist/init.d.ts +11 -0
  7. package/dist/init.d.ts.map +1 -0
  8. package/dist/init.js +82 -0
  9. package/dist/init.js.map +1 -0
  10. package/dist/package.json +6 -17
  11. package/dist/site/.github/ISSUE_TEMPLATE/bug_report.md +33 -0
  12. package/dist/site/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  13. package/dist/site/.github/ISSUE_TEMPLATE/record_submission.md +48 -0
  14. package/dist/site/.github/pull_request_template.md +27 -0
  15. package/dist/site/.github/workflows/ci.yml +21 -0
  16. package/dist/site/.github/workflows/cleanup.yml +23 -0
  17. package/dist/site/.github/workflows/deploy.yml +36 -0
  18. package/dist/site/.github/workflows/sync-contributors.yml +28 -0
  19. package/dist/site/.github/workflows/sync-github.yml +31 -0
  20. package/dist/site/astro.config.mjs +24 -0
  21. package/dist/site/content/pages/about.md +63 -0
  22. package/dist/site/content/pages/methodology.md +103 -0
  23. package/dist/site/data/health.yml +13 -0
  24. package/dist/site/data/records/.gitkeep +0 -0
  25. package/dist/site/data/records/crewai.yml +21 -0
  26. package/dist/site/data/records/dify.yml +21 -0
  27. package/dist/site/data/records/flowise.yml +21 -0
  28. package/dist/site/data/records/llamaindex.yml +21 -0
  29. package/dist/site/data/records/ollama.yml +28 -0
  30. package/dist/site/data/records/open-webui.yml +21 -0
  31. package/dist/site/data/taxonomy/categories.yml +10 -0
  32. package/dist/site/data/taxonomy/distribution-channels.yml +43 -0
  33. package/dist/site/data/taxonomy/platforms.yml +27 -0
  34. package/dist/site/data/taxonomy/stacks.yml +18 -0
  35. package/dist/site/grove.config.ts +76 -0
  36. package/dist/site/package.json +33 -0
  37. package/dist/site/public/icons/platforms/android.svg +1 -0
  38. package/dist/site/public/icons/platforms/apple-dark.svg +1 -0
  39. package/dist/site/public/icons/platforms/apple-light.svg +1 -0
  40. package/dist/site/public/icons/platforms/chrome.svg +1 -0
  41. package/dist/site/public/icons/platforms/chromeos.svg +5 -0
  42. package/dist/site/public/icons/platforms/desktop.svg +4 -0
  43. package/dist/site/public/icons/platforms/embedded.svg +5 -0
  44. package/dist/site/public/icons/platforms/ios.svg +1 -0
  45. package/dist/site/public/icons/platforms/linux.svg +1 -0
  46. package/dist/site/public/icons/platforms/macos.svg +1 -0
  47. package/dist/site/public/icons/platforms/ubuntu.svg +1 -0
  48. package/dist/site/public/icons/platforms/web.svg +5 -0
  49. package/dist/site/public/icons/platforms/windows.svg +6 -0
  50. package/dist/site/public/icons/stacks/android.svg +1 -0
  51. package/dist/site/public/icons/stacks/apple-dark.svg +1 -0
  52. package/dist/site/public/icons/stacks/apple-light.svg +1 -0
  53. package/dist/site/public/icons/stacks/bun.svg +1 -0
  54. package/dist/site/public/icons/stacks/capacitor.svg +14 -0
  55. package/dist/site/public/icons/stacks/clojure.svg +1 -0
  56. package/dist/site/public/icons/stacks/clojurescript.svg +1 -0
  57. package/dist/site/public/icons/stacks/dart.svg +1 -0
  58. package/dist/site/public/icons/stacks/deno.svg +1 -0
  59. package/dist/site/public/icons/stacks/django.svg +1 -0
  60. package/dist/site/public/icons/stacks/docker.svg +1 -0
  61. package/dist/site/public/icons/stacks/firebase.svg +1 -0
  62. package/dist/site/public/icons/stacks/flutter.svg +1 -0
  63. package/dist/site/public/icons/stacks/go.svg +1 -0
  64. package/dist/site/public/icons/stacks/graphql.svg +1 -0
  65. package/dist/site/public/icons/stacks/ionic.svg +4 -0
  66. package/dist/site/public/icons/stacks/java.svg +1 -0
  67. package/dist/site/public/icons/stacks/javascript.svg +1 -0
  68. package/dist/site/public/icons/stacks/kotlin.svg +1 -0
  69. package/dist/site/public/icons/stacks/llm.svg +1 -0
  70. package/dist/site/public/icons/stacks/mongodb.svg +1 -0
  71. package/dist/site/public/icons/stacks/node.js.svg +1 -0
  72. package/dist/site/public/icons/stacks/nodejs.svg +1 -0
  73. package/dist/site/public/icons/stacks/python.svg +1 -0
  74. package/dist/site/public/icons/stacks/rag.svg +7 -0
  75. package/dist/site/public/icons/stacks/react-native.svg +1 -0
  76. package/dist/site/public/icons/stacks/react.svg +1 -0
  77. package/dist/site/public/icons/stacks/rust.svg +1 -0
  78. package/dist/site/public/icons/stacks/solidity.svg +1 -0
  79. package/dist/site/public/icons/stacks/sveltekit.svg +1 -0
  80. package/dist/site/public/icons/stacks/swift.svg +1 -0
  81. package/dist/site/public/icons/stacks/tensorflow.svg +1 -0
  82. package/dist/site/public/icons/stacks/typescript.svg +1 -0
  83. package/dist/site/public/icons/stacks/vue.svg +1 -0
  84. package/dist/site/public/og-image.svg +48 -0
  85. package/dist/site/public/robots.txt +53 -0
  86. package/dist/site/src/pages/404.astro +64 -0
  87. package/dist/site/src/pages/[slug]/[recordSlug].astro +527 -0
  88. package/dist/site/src/pages/[slug]/index.astro +242 -0
  89. package/dist/site/src/pages/about.astro +189 -0
  90. package/dist/site/src/pages/apps/[recordSlug].astro +34 -0
  91. package/dist/site/src/pages/contributors.astro +113 -0
  92. package/dist/site/src/pages/index.astro +131 -0
  93. package/dist/site/src/pages/submit.astro +170 -0
  94. package/dist/site/src/styles/global.css +33 -0
  95. package/dist/site/tsconfig.json +13 -0
  96. package/package.json +7 -18
  97. package/dist/helpers.d.ts +0 -27
  98. package/dist/helpers.d.ts.map +0 -1
  99. package/dist/helpers.js +0 -41
  100. package/dist/helpers.js.map +0 -1
  101. package/dist/template-loader.d.ts +0 -99
  102. package/dist/template-loader.d.ts.map +0 -1
  103. package/dist/template-loader.js +0 -338
  104. package/dist/template-loader.js.map +0 -1
  105. package/dist/template-loader.test.d.ts +0 -2
  106. package/dist/template-loader.test.d.ts.map +0 -1
  107. package/dist/template-loader.test.js +0 -317
  108. package/dist/template-loader.test.js.map +0 -1
@@ -1,338 +0,0 @@
1
- /**
2
- * Resolve and copy Grove framework templates into a project directory.
3
- *
4
- * Templates live inside each framework adapter package
5
- * (`@grove-dev/astro/templates/<name>`, ...). The CLI looks them
6
- * up in `node_modules` so that `grove new <dir> --framework <f>`
7
- * just works after `pnpm add @grove-dev/<framework>`.
8
- */
9
- import { cp, mkdir, readFile, writeFile } from "node:fs/promises";
10
- import { existsSync, readFileSync, readdirSync, realpathSync } from "node:fs";
11
- import { dirname, join, resolve } from "node:path";
12
- import { fileURLToPath } from "node:url";
13
- /** Frameworks that ship templates inside the adapter package. */
14
- export const SUPPORTED_FRAMEWORKS = ["astro"];
15
- export function isFramework(value) {
16
- return SUPPORTED_FRAMEWORKS.includes(value);
17
- }
18
- function templatesRoot(framework) {
19
- const pkg = `@grove-dev/${framework}`;
20
- // Resolve the package's *root* entrypoint. We do not ask for
21
- // `pkg/package.json` because the V1 package's `exports` field
22
- // intentionally does not list that subpath — only the
23
- // user-facing entrypoints (`./components/*`, `./layouts/*`,
24
- // `./styles.css`) are public. The package root directory is
25
- // then used to look up `templates/` and `package.json`
26
- // directly via the filesystem.
27
- let packageRoot;
28
- try {
29
- // Walking the node_modules ancestry from the CLI's own
30
- // location: this works whether the framework adapter was
31
- // installed as a dep of the consumer's project, as a
32
- // workspace sibling, or as a global package.
33
- const here = dirname(fileURLToPath(import.meta.url));
34
- packageRoot = resolveGrovePackage(pkg, here);
35
- }
36
- catch {
37
- try {
38
- packageRoot = resolveGrovePackage(pkg, process.cwd());
39
- }
40
- catch {
41
- throw new Error(`Framework package ${pkg} is not installed.\n` +
42
- `Run one of:\n` +
43
- ` pnpm add -g ${pkg}\n` +
44
- ` pnpm add -D ${pkg}\n` +
45
- (framework === "astro" ? "then retry: grove new <dir> --framework astro" : ""));
46
- }
47
- }
48
- return resolve(packageRoot, "templates");
49
- }
50
- function resolvePackageRoot(pkg, from) {
51
- let cursor = from;
52
- for (let i = 0; i < 8; i++) {
53
- const candidate = join(cursor, "node_modules", pkg);
54
- if (existsSync(candidate))
55
- return candidate;
56
- cursor = resolve(cursor, "..");
57
- }
58
- throw new Error(`Could not find ${pkg} from ${from}`);
59
- }
60
- /**
61
- * Walk up from a starting directory looking for `pnpm-workspace.yaml`.
62
- * That file marks the monorepo root — pnpm convention. We need it for
63
- * the special case where the package we want to resolve IS the CLI
64
- * itself (`@grove-dev/cli`): the CLI's `node_modules/@grove-dev/cli`
65
- * doesn't exist because the CLI is a root package, not a dep of
66
- * itself. From the monorepo root, `packages/cli` is always canonical.
67
- *
68
- * Throws if we never find a `pnpm-workspace.yaml` (we are not inside
69
- * a monorepo, so `grove run` is the wrong tool anyway).
70
- */
71
- function findMonorepoRoot(from) {
72
- let cursor = from;
73
- for (let i = 0; i < 8; i++) {
74
- if (existsSync(join(cursor, "pnpm-workspace.yaml")))
75
- return cursor;
76
- const parent = resolve(cursor, "..");
77
- if (parent === cursor)
78
- break; // filesystem root
79
- cursor = parent;
80
- }
81
- throw new Error(`Could not find monorepo root (pnpm-workspace.yaml) starting from ${from}. ` +
82
- `grove run must be executed from inside the grove monorepo.`);
83
- }
84
- /**
85
- * Resolve a `@grove-dev/*` package's on-disk path. Two strategies:
86
- *
87
- * 1. Workspace: when running inside the Grove monorepo, prefer the
88
- * matching `packages/<short>` source package. This is essential for
89
- * `grove run`: the CLI may depend on an older published adapter, but
90
- * local template work must be scaffolded from the current checkout.
91
- * 2. Standard: walk up from `from` looking for `node_modules/<pkg>`.
92
- * This is the normal path for published/global CLI installations.
93
- */
94
- function resolveGrovePackage(pkg, from) {
95
- const shortName = pkg.startsWith("@grove-dev/")
96
- ? pkg.slice("@grove-dev/".length)
97
- : "";
98
- if (shortName) {
99
- try {
100
- const monorepoRoot = findMonorepoRoot(from);
101
- const workspacePath = join(monorepoRoot, "packages", shortName);
102
- const manifestPath = join(workspacePath, "package.json");
103
- if (existsSync(manifestPath)) {
104
- const manifest = JSON.parse(readFileSync(manifestPath, "utf8"));
105
- if (manifest.name === pkg)
106
- return workspacePath;
107
- }
108
- }
109
- catch {
110
- // Not inside the Grove source workspace (or not a Grove package
111
- // checkout). Fall through to normal node_modules resolution.
112
- }
113
- }
114
- if (pkg === "@grove-dev/cli") {
115
- const monorepoRoot = findMonorepoRoot(from);
116
- const cliPath = join(monorepoRoot, "packages", "cli");
117
- if (existsSync(cliPath))
118
- return cliPath;
119
- // Fall through to the standard strategy below; the package might
120
- // still be findable via a globally installed `grove` layout.
121
- }
122
- return resolvePackageRoot(pkg, from);
123
- }
124
- /** List every available template for a framework. */
125
- export async function listTemplates(framework) {
126
- const root = templatesRoot(framework);
127
- // No fs.readdir on unknown folders; assume a single 'default' template per framework.
128
- return [{ framework, template: "default", path: join(root, "default") }];
129
- }
130
- /** Resolve the absolute path of a framework template directory. */
131
- export function templatePath(framework, name = "default") {
132
- return join(templatesRoot(framework), name);
133
- }
134
- /**
135
- * Read the version of the framework adapter package
136
- * (`@grove-dev/<framework>`) that shipped the templates. This is the
137
- * fallback for older templates that still contain loose dependencies;
138
- * current templates already carry exact published versions.
139
- */
140
- export function frameworkVersion(framework) {
141
- const here = dirname(fileURLToPath(import.meta.url));
142
- const root = resolveGrovePackage(`@grove-dev/${framework}`, here);
143
- const pkgPath = join(root, "package.json");
144
- const pkg = JSON.parse(readFileSync(pkgPath, "utf8"));
145
- if (!pkg.version) {
146
- throw new Error(`Could not read version of @grove-dev/${framework} from ${pkgPath}`);
147
- }
148
- return pkg.version;
149
- }
150
- /**
151
- * Copy a template directory into a project root. Honors `force: false`
152
- * by default so an existing project isn't clobbered.
153
- *
154
- * V1: the `new` action runs `mkdir(root, { recursive: true })` before
155
- * we get here, which means `targetRoot` already exists (and is empty)
156
- * for a fresh scaffold. `cp` with `errorOnExist: true` would reject
157
- * that empty dir with EEXIST, so we let `cp` overwrite it silently.
158
- *
159
- * The non-empty case is handled before the copy: a non-empty
160
- * `targetRoot` with `force: false` raises up front (partial
161
- * scaffolds are worse than a hard fail), and `force: true` proceeds
162
- * and overwrites per `cp`'s `force: true` semantics.
163
- */
164
- export async function copyTemplate(framework, targetRoot, name = "default", options = {}) {
165
- const from = templatePath(framework, name);
166
- // Guard: refuse to silently produce a partial scaffold. Node's
167
- // `cp` with `force: false` will skip existing files without
168
- // raising — which is the worst possible outcome for a scaffolder
169
- // (the user gets a half-populated project and no error).
170
- if (existsSync(targetRoot)) {
171
- const entries = readdirSync(targetRoot);
172
- if (entries.length > 0 && !options.force) {
173
- throw new Error(`Target directory ${targetRoot} is not empty. ` +
174
- `Re-run with force: true to overwrite, or pick a different target.`);
175
- }
176
- }
177
- await cp(from, targetRoot, {
178
- recursive: true,
179
- force: options.force ?? false,
180
- errorOnExist: false,
181
- filter: (source) => {
182
- const relative = source.slice(from.length).replace(/^[/\\]/, "");
183
- if (!relative)
184
- return true;
185
- const normalized = relative.replaceAll("\\", "/");
186
- return !(normalized === "node_modules" ||
187
- normalized.startsWith("node_modules/") ||
188
- normalized === ".astro" ||
189
- normalized.startsWith(".astro/") ||
190
- normalized === "dist" ||
191
- normalized.startsWith("dist/") ||
192
- normalized === "data/generated" ||
193
- normalized.startsWith("data/generated/") ||
194
- normalized.endsWith("/.DS_Store") ||
195
- normalized === ".DS_Store");
196
- },
197
- });
198
- // Count the files we actually wrote — used by callers that surface
199
- // a "(N files)" line in their success message. We walk the
200
- // destination tree post-copy because Node's `cp` callback doesn't
201
- // report a file count. The `filter` above matches the exclude
202
- // list one-to-one, so this count reflects exactly what was copied.
203
- // (Audit finding: was returning `files: -1` as a sentinel.)
204
- const copiedFiles = walkDir(targetRoot);
205
- return { from, to: targetRoot, files: copiedFiles };
206
- }
207
- /**
208
- * Count the regular files under `dir`, recursively. Used by
209
- * `copyTemplate` to report a real file count instead of a `-1`
210
- * sentinel. Symlinks are counted as one file each (we don't follow
211
- * them — the symlink itself is the artefact, the target is a
212
- * pre-existing tree we shouldn't be double-counting).
213
- */
214
- function walkDir(dir) {
215
- let count = 0;
216
- const entries = readdirSync(dir, { withFileTypes: true });
217
- for (const entry of entries) {
218
- if (entry.isDirectory()) {
219
- count += walkDir(join(dir, entry.name));
220
- }
221
- else if (entry.isFile() || entry.isSymbolicLink()) {
222
- count++;
223
- }
224
- }
225
- return count;
226
- }
227
- export async function renameProjectInTemplate(framework, targetRoot, projectName, templateName = "default", options = {}) {
228
- const mode = options.mode ?? "published";
229
- const packageJsonPath = join(targetRoot, "package.json");
230
- const raw = await readFile(packageJsonPath, "utf8");
231
- const pkg = JSON.parse(raw);
232
- pkg.name = packageNameFromProjectName(projectName, framework, templateName);
233
- const rewrittenDeps = mode === "published"
234
- ? rewriteWorkspaceDepsToVersion(pkg, frameworkVersion(framework))
235
- : rewriteWorkspaceDepsToFile(pkg);
236
- await writeFile(packageJsonPath, `${JSON.stringify(pkg, null, 2)}\n`, "utf8");
237
- return { packageJsonPath, finalName: pkg.name, rewrittenDeps };
238
- }
239
- /**
240
- * In-place: replace loose or non-semver `@grove-dev/*` dependencies
241
- * with the supplied published version. Exact versions already present
242
- * in current templates are preserved.
243
- *
244
- * Non-Grove deps are left untouched.
245
- */
246
- function rewriteWorkspaceDepsToVersion(pkg, version) {
247
- const rewritten = [];
248
- for (const section of ["dependencies", "devDependencies", "peerDependencies"]) {
249
- const map = pkg[section];
250
- if (!map)
251
- continue;
252
- for (const [name, value] of Object.entries(map)) {
253
- if (!name.startsWith("@grove-dev/"))
254
- continue;
255
- if (value === version)
256
- continue;
257
- // Pin placeholders, git/file URLs that do not exist in the
258
- // scaffold, or values that do not look like real semver.
259
- const looksPinned = /^[~^]?\d/.test(value);
260
- if (!looksPinned) {
261
- rewritten.push(`${name}: ${value} -> ${version}`);
262
- map[name] = version;
263
- }
264
- }
265
- }
266
- return rewritten;
267
- }
268
- /**
269
- * In-place: rewrite every `@grove-dev/*` dependency in the template's
270
- * `package.json` to a `link:` URL pointing at the matching package
271
- * inside the local monorepo. Used by `grove run` to make a freshly
272
- * scaffolded project installable from this workspace without going
273
- * through the npm registry or `pnpm-workspace.yaml` membership.
274
- *
275
- * We resolve each package from the Grove workspace first, falling back
276
- * to the CLI's `node_modules` ancestry outside a source checkout. A
277
- * direct link avoids repacking the local package dependency graph for
278
- * every smoke-test scaffold.
279
- */
280
- function rewriteWorkspaceDepsToFile(pkg) {
281
- const rewritten = [];
282
- // The CLI's own dist/ directory is the only stable reference point
283
- // we have. From there we walk up to find each `@grove-dev/*` package.
284
- const cliLocation = dirname(fileURLToPath(import.meta.url));
285
- for (const section of ["dependencies", "devDependencies", "peerDependencies"]) {
286
- const map = pkg[section];
287
- if (!map)
288
- continue;
289
- for (const name of Object.keys(map)) {
290
- if (!name.startsWith("@grove-dev/"))
291
- continue;
292
- let pkgPath;
293
- try {
294
- pkgPath = realpathSync(resolveGrovePackage(name, cliLocation));
295
- }
296
- catch {
297
- // Not installed locally (e.g. a future framework like
298
- // `@grove-dev/svelte` that has no real template in V1). Skip
299
- // rather than crashing — the user will see a normal pnpm
300
- // install error and can fix it.
301
- continue;
302
- }
303
- rewritten.push(`${name}: -> link:${pkgPath}`);
304
- map[name] = `link:${pkgPath}`;
305
- }
306
- }
307
- return rewritten;
308
- }
309
- export function packageNameFromProjectName(name, framework, templateName) {
310
- const slug = name
311
- .toLowerCase()
312
- .replace(/[^a-z0-9]+/g, "-")
313
- .replace(/^-+|-+$/g, "");
314
- // Make the npm name unique-ish per template: e.g. "grove-astro-default"
315
- return `${slug || "grove-site"}-${framework}-${templateName}`;
316
- }
317
- /**
318
- * Make sure a directory exists. Async wrapper around `mkdir -p`.
319
- */
320
- export async function ensureDir(path) {
321
- await mkdir(path, { recursive: true });
322
- }
323
- /**
324
- * Resolve a file path relative to the current module — handy for
325
- * locating bundled assets the CLI ships with (e.g. .github templates).
326
- */
327
- export function here(...parts) {
328
- const url = new URL(import.meta.url);
329
- return resolve(fileURLToPath(url), "..", ...parts);
330
- }
331
- /**
332
- * Public re-export: `grove run` needs to find the monorepo root to
333
- * place its scratch project under `<root>/.grove/run/...` and to run
334
- * `pnpm install --filter` from there. The implementation lives above
335
- * so this stays a thin alias.
336
- */
337
- export { findMonorepoRoot };
338
- //# sourceMappingURL=template-loader.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"template-loader.js","sourceRoot":"","sources":["../src/template-loader.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC9E,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAqBzC,iEAAiE;AACjE,MAAM,CAAC,MAAM,oBAAoB,GAAyB,CAAC,OAAO,CAAU,CAAC;AAE7E,MAAM,UAAU,WAAW,CAAC,KAAa;IACvC,OAAQ,oBAA0C,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACrE,CAAC;AAED,SAAS,aAAa,CAAC,SAAoB;IACzC,MAAM,GAAG,GAAG,cAAc,SAAS,EAAE,CAAC;IACtC,6DAA6D;IAC7D,8DAA8D;IAC9D,sDAAsD;IACtD,4DAA4D;IAC5D,4DAA4D;IAC5D,uDAAuD;IACvD,+BAA+B;IAC/B,IAAI,WAAmB,CAAC;IACxB,IAAI,CAAC;QACH,uDAAuD;QACvD,yDAAyD;QACzD,qDAAqD;QACrD,6CAA6C;QAC7C,MAAM,IAAI,GAAG,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QACrD,WAAW,GAAG,mBAAmB,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;IAC/C,CAAC;IAAC,MAAM,CAAC;QACP,IAAI,CAAC;YACH,WAAW,GAAG,mBAAmB,CAAC,GAAG,EAAE,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;QACxD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GAEG;AACH,MAAM,CAAC,KAAK,UAAU,SAAS,CAAC,IAAY;IAC1C,MAAM,KAAK,CAAC,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;AACzC,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,IAAI,CAAC,GAAG,KAAe;IACrC,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACrC,OAAO,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC,CAAC;AACrD,CAAC;AAED;;;;;GAKG;AACH,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=template-loader.test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"template-loader.test.d.ts","sourceRoot":"","sources":["../src/template-loader.test.ts"],"names":[],"mappings":""}