@ooneex/seeds 1.6.2 → 1.7.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/dist/index.d.ts +6 -1
- package/dist/index.js +32 -6
- package/dist/index.js.map +6 -5
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -20,4 +20,9 @@ declare const seedCreate: (config: {
|
|
|
20
20
|
testPath: string;
|
|
21
21
|
dataPath: string;
|
|
22
22
|
}>;
|
|
23
|
-
|
|
23
|
+
declare const seedTestCreate: (config: {
|
|
24
|
+
name: string;
|
|
25
|
+
testsDir: string;
|
|
26
|
+
module?: string;
|
|
27
|
+
}) => Promise<string>;
|
|
28
|
+
export { seedTestCreate, seedCreate, run, getSeeds, decorator, SeedClassType, ISeed };
|
package/dist/index.js
CHANGED
|
@@ -118,10 +118,10 @@ import { toKebabCase, toPascalCase } from "@ooneex/utils";
|
|
|
118
118
|
var {Glob } = globalThis.Bun;
|
|
119
119
|
|
|
120
120
|
// src/seed.test.txt
|
|
121
|
-
var seed_test_default = `import {
|
|
122
|
-
import { join } from "node:path";
|
|
121
|
+
var seed_test_default = `import { join } from "node:path";
|
|
123
122
|
import { describe, expect, test } from "bun:test";
|
|
124
123
|
import { {{NAME}}Seed } from "@module/{{MODULE}}/seeds/{{NAME}}Seed";
|
|
124
|
+
import {{MODULE}}Yml from "../../{{MODULE}}.yml";
|
|
125
125
|
|
|
126
126
|
describe("{{NAME}}Seed", () => {
|
|
127
127
|
test("should have class name ending with 'Seed'", () => {
|
|
@@ -143,9 +143,19 @@ describe("{{NAME}}Seed", () => {
|
|
|
143
143
|
expect(typeof {{NAME}}Seed.prototype.getDependencies).toBe("function");
|
|
144
144
|
});
|
|
145
145
|
|
|
146
|
-
test("should have a data yml file", () => {
|
|
147
|
-
const dataFile = join(
|
|
148
|
-
expect(
|
|
146
|
+
test("should have a data yml file", async () => {
|
|
147
|
+
const dataFile = Bun.file(join(import.meta.dir, "../../src/seeds/{{DATA_FILE}}.yml"));
|
|
148
|
+
expect(await dataFile.exists()).toBe(true);
|
|
149
|
+
});
|
|
150
|
+
|
|
151
|
+
test("should match the locked hash in {{MODULE}}.yml", async () => {
|
|
152
|
+
const content = await Bun.file(join(import.meta.dir, "../../src/seeds/{{DATA_FILE}}.yml")).text();
|
|
153
|
+
const actualHash = new Bun.CryptoHasher("sha256").update(content).digest("hex");
|
|
154
|
+
|
|
155
|
+
const lockedSeeds = {{MODULE}}Yml.seeds as Record<string, { hash: string }>;
|
|
156
|
+
const lockedHash = lockedSeeds["{{DATA_FILE}}"]?.hash;
|
|
157
|
+
expect(lockedHash).toBeDefined();
|
|
158
|
+
expect(actualHash).toBe(lockedHash as string);
|
|
149
159
|
});
|
|
150
160
|
});
|
|
151
161
|
`;
|
|
@@ -201,11 +211,27 @@ var seedCreate = async (config) => {
|
|
|
201
211
|
dataPath: join(seedsDir, `${dataFile}.yml`)
|
|
202
212
|
};
|
|
203
213
|
};
|
|
214
|
+
// src/seedTestCreate.ts
|
|
215
|
+
import { join as join2 } from "path";
|
|
216
|
+
import { toKebabCase as toKebabCase2 } from "@ooneex/utils";
|
|
217
|
+
var seedTestCreate = async (config) => {
|
|
218
|
+
const { name, testsDir, module } = config;
|
|
219
|
+
const testPath = join2(process.cwd(), testsDir, `${name}.spec.ts`);
|
|
220
|
+
const testFile = Bun.file(testPath);
|
|
221
|
+
if (await testFile.exists())
|
|
222
|
+
return testPath;
|
|
223
|
+
const baseName = name.replace(/Seed$/, "");
|
|
224
|
+
const dataFile = toKebabCase2(name);
|
|
225
|
+
const content = seed_test_default.replace(/\{\{NAME\}\}/g, baseName).replace(/\{\{DATA_FILE\}\}/g, dataFile).replace(/\{\{MODULE\}\}/g, module ?? "");
|
|
226
|
+
await Bun.write(testPath, content);
|
|
227
|
+
return testPath;
|
|
228
|
+
};
|
|
204
229
|
export {
|
|
230
|
+
seedTestCreate,
|
|
205
231
|
seedCreate,
|
|
206
232
|
run,
|
|
207
233
|
getSeeds,
|
|
208
234
|
decorator
|
|
209
235
|
};
|
|
210
236
|
|
|
211
|
-
//# debugId=
|
|
237
|
+
//# debugId=728D696F910CF29264756E2164756E21
|
package/dist/index.js.map
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["src/decorators.ts", "src/container.ts", "src/getSeeds.ts", "src/run.ts", "src/seedCreate.ts"],
|
|
3
|
+
"sources": ["src/decorators.ts", "src/container.ts", "src/getSeeds.ts", "src/run.ts", "src/seedCreate.ts", "src/seedTestCreate.ts"],
|
|
4
4
|
"sourcesContent": [
|
|
5
5
|
"import { container, EContainerScope } from \"@ooneex/container\";\nimport { SEEDS_CONTAINER } from \"./container\";\nimport type { SeedClassType } from \"./types\";\n\nexport const decorator = {\n seed: (scope: EContainerScope = EContainerScope.Singleton) => {\n return (target: SeedClassType): void => {\n container.add(target, scope);\n SEEDS_CONTAINER.push(target);\n };\n },\n};\n",
|
|
6
6
|
"import type { SeedClassType } from \"./types\";\n\nexport const SEEDS_CONTAINER: SeedClassType[] = [];\n",
|
|
7
7
|
"import { container } from \"@ooneex/container\";\nimport { SEEDS_CONTAINER } from \"./container\";\nimport type { ISeed } from \"./types\";\n\nexport const getSeeds = (): ISeed[] => {\n const seedInstances = SEEDS_CONTAINER.map((SeedClass) => {\n return container.get(SeedClass);\n });\n\n return seedInstances.filter((seed) => seed.isActive());\n};\n",
|
|
8
|
-
"import { parseArgs } from \"node:util\";\nimport { container } from \"@ooneex/container\";\nimport type { IException } from \"@ooneex/exception\";\nimport { TerminalLogger } from \"@ooneex/logger\";\nimport { getSeeds } from \"./getSeeds\";\nimport type { ISeed } from \"./types\";\n\nconst runSeed = async (seed: ISeed): Promise<void> => {\n const data = [];\n\n const dependencies = await seed.getDependencies();\n\n for (const dependency of dependencies) {\n const dep = container.get(dependency);\n data.push(await runSeed(dep));\n }\n\n await seed.run(data);\n};\n\nexport const run = async (): Promise<void> => {\n const { values } = parseArgs({\n args: Bun.argv,\n options: {\n drop: {\n type: \"boolean\",\n },\n },\n strict: false,\n allowPositionals: true,\n });\n\n const seeds = getSeeds();\n const logger = new TerminalLogger();\n\n if (seeds.length === 0) {\n logger.info(\"No seeds found\\n\", undefined, {\n showTimestamp: false,\n showArrow: false,\n useSymbol: true,\n });\n return;\n }\n\n if (values.drop) {\n const database = container.getConstant<{ drop: () => Promise<void> }>(\
|
|
9
|
-
"import { join } from \"node:path\";\nimport { toKebabCase, toPascalCase } from \"@ooneex/utils\";\nimport { Glob } from \"bun\";\nimport testTemplate from \"./seed.test.txt\";\nimport template from \"./seed.txt\";\n\nexport const seedCreate = async (config: {\n name: string;\n seedsDir?: string;\n testsDir?: string;\n module?: string;\n}): Promise<{ seedPath: string; testPath: string; dataPath: string }> => {\n const name = toPascalCase(config.name).replace(/Seed$/, \"\");\n const seedName = `${name}Seed`;\n const dataFile = toKebabCase(seedName);\n const seedsDir = config.seedsDir || \"seeds\";\n const testsDir = config.testsDir || join(\"tests\", \"seeds\");\n\n const seedContent = template.replaceAll(\"{{ name }}\", seedName).replaceAll(\"{{ dataFile }}\", dataFile);\n await Bun.write(join(process.cwd(), seedsDir, `${seedName}.ts`), seedContent);\n\n await Bun.write(join(process.cwd(), seedsDir, `${dataFile}.yml`), \"# Seed data\\n\");\n\n const testContent = testTemplate.replace(/\\{\\{NAME\\}\\}/g, name).replace(/\\{\\{DATA_FILE\\}\\}/g, dataFile).replace(/\\{\\{MODULE\\}\\}/g, config.module ?? \"\");\n await Bun.write(join(process.cwd(), testsDir, `${seedName}.spec.ts`), testContent);\n\n const imports: string[] = [];\n const glob = new Glob(\"**/*Seed.ts\");\n for await (const file of glob.scan(join(process.cwd(), seedsDir))) {\n const seedClassName = file.replace(/\\.ts$/, \"\");\n imports.push(`export { ${seedClassName} } from './${seedClassName}';`);\n }\n\n await Bun.write(join(process.cwd(), seedsDir, \"seeds.ts\"), `${imports.sort().join(\"\\n\")}\\n`);\n\n return {\n seedPath: join(seedsDir, `${seedName}.ts`),\n testPath: join(testsDir, `${seedName}.spec.ts`),\n dataPath: join(seedsDir, `${dataFile}.yml`),\n };\n};\n"
|
|
8
|
+
"import { parseArgs } from \"node:util\";\nimport { container } from \"@ooneex/container\";\nimport type { IException } from \"@ooneex/exception\";\nimport { TerminalLogger } from \"@ooneex/logger\";\nimport { getSeeds } from \"./getSeeds\";\nimport type { ISeed } from \"./types\";\n\nconst runSeed = async (seed: ISeed): Promise<void> => {\n const data = [];\n\n const dependencies = await seed.getDependencies();\n\n for (const dependency of dependencies) {\n const dep = container.get(dependency);\n data.push(await runSeed(dep));\n }\n\n await seed.run(data);\n};\n\nexport const run = async (): Promise<void> => {\n const { values } = parseArgs({\n args: Bun.argv,\n options: {\n drop: {\n type: \"boolean\",\n },\n },\n strict: false,\n allowPositionals: true,\n });\n\n const seeds = getSeeds();\n const logger = new TerminalLogger();\n\n if (seeds.length === 0) {\n logger.info(\"No seeds found\\n\", undefined, {\n showTimestamp: false,\n showArrow: false,\n useSymbol: true,\n });\n return;\n }\n\n if (values.drop) {\n const database = container.getConstant<{ drop: () => Promise<void> }>(\"database\");\n if (database) {\n await database.drop();\n logger.info(\"Database dropped\\n\", undefined, {\n showTimestamp: false,\n showArrow: false,\n useSymbol: true,\n });\n }\n }\n\n logger.info(`Running ${seeds.length} seed(s)...\\n`, undefined, {\n showTimestamp: false,\n showArrow: false,\n useSymbol: true,\n });\n\n for (const seed of seeds) {\n const seedName = seed.constructor.name;\n\n if (!seed.isActive()) {\n logger.warn(`Seed ${seedName} is inactive\\n`, undefined, {\n showTimestamp: false,\n showArrow: false,\n useSymbol: true,\n });\n continue;\n }\n\n try {\n await runSeed(seed);\n logger.success(`Seed ${seedName} completed\\n`, undefined, {\n showTimestamp: false,\n showArrow: false,\n useSymbol: true,\n });\n } catch (error) {\n logger.error(`Seed ${seedName} failed\\n`, undefined, {\n showTimestamp: false,\n showArrow: false,\n useSymbol: true,\n });\n logger.error(error as IException);\n process.exit(1);\n }\n }\n\n try {\n const database = container.getConstant<{ close: () => Promise<void> }>(\"database\");\n if (database) {\n await database.close();\n }\n } catch {\n // No database constant registered — nothing to close\n }\n};\n",
|
|
9
|
+
"import { join } from \"node:path\";\nimport { toKebabCase, toPascalCase } from \"@ooneex/utils\";\nimport { Glob } from \"bun\";\nimport testTemplate from \"./seed.test.txt\";\nimport template from \"./seed.txt\";\n\nexport const seedCreate = async (config: {\n name: string;\n seedsDir?: string;\n testsDir?: string;\n module?: string;\n}): Promise<{ seedPath: string; testPath: string; dataPath: string }> => {\n const name = toPascalCase(config.name).replace(/Seed$/, \"\");\n const seedName = `${name}Seed`;\n const dataFile = toKebabCase(seedName);\n const seedsDir = config.seedsDir || \"seeds\";\n const testsDir = config.testsDir || join(\"tests\", \"seeds\");\n\n const seedContent = template.replaceAll(\"{{ name }}\", seedName).replaceAll(\"{{ dataFile }}\", dataFile);\n await Bun.write(join(process.cwd(), seedsDir, `${seedName}.ts`), seedContent);\n\n await Bun.write(join(process.cwd(), seedsDir, `${dataFile}.yml`), \"# Seed data\\n\");\n\n const testContent = testTemplate\n .replace(/\\{\\{NAME\\}\\}/g, name)\n .replace(/\\{\\{DATA_FILE\\}\\}/g, dataFile)\n .replace(/\\{\\{MODULE\\}\\}/g, config.module ?? \"\");\n await Bun.write(join(process.cwd(), testsDir, `${seedName}.spec.ts`), testContent);\n\n const imports: string[] = [];\n const glob = new Glob(\"**/*Seed.ts\");\n for await (const file of glob.scan(join(process.cwd(), seedsDir))) {\n const seedClassName = file.replace(/\\.ts$/, \"\");\n imports.push(`export { ${seedClassName} } from './${seedClassName}';`);\n }\n\n await Bun.write(join(process.cwd(), seedsDir, \"seeds.ts\"), `${imports.sort().join(\"\\n\")}\\n`);\n\n return {\n seedPath: join(seedsDir, `${seedName}.ts`),\n testPath: join(testsDir, `${seedName}.spec.ts`),\n dataPath: join(seedsDir, `${dataFile}.yml`),\n };\n};\n",
|
|
10
|
+
"import { join } from \"node:path\";\nimport { toKebabCase } from \"@ooneex/utils\";\nimport testTemplate from \"./seed.test.txt\";\n\nexport const seedTestCreate = async (config: {\n name: string;\n testsDir: string;\n module?: string;\n}): Promise<string> => {\n const { name, testsDir, module } = config;\n const testPath = join(process.cwd(), testsDir, `${name}.spec.ts`);\n\n const testFile = Bun.file(testPath);\n if (await testFile.exists()) return testPath;\n\n const baseName = name.replace(/Seed$/, \"\");\n const dataFile = toKebabCase(name);\n\n const content = testTemplate\n .replace(/\\{\\{NAME\\}\\}/g, baseName)\n .replace(/\\{\\{DATA_FILE\\}\\}/g, dataFile)\n .replace(/\\{\\{MODULE\\}\\}/g, module ?? \"\");\n await Bun.write(testPath, content);\n\n return testPath;\n};\n"
|
|
10
11
|
],
|
|
11
|
-
"mappings": ";;AAAA;;;ACEO,IAAM,kBAAmC,CAAC;;;ADE1C,IAAM,YAAY;AAAA,EACvB,MAAM,CAAC,QAAyB,gBAAgB,cAAc;AAAA,IAC5D,OAAO,CAAC,WAAgC;AAAA,MACtC,UAAU,IAAI,QAAQ,KAAK;AAAA,MAC3B,gBAAgB,KAAK,MAAM;AAAA;AAAA;AAGjC;;AEXA,sBAAS;AAIF,IAAM,WAAW,MAAe;AAAA,EACrC,MAAM,gBAAgB,gBAAgB,IAAI,CAAC,cAAc;AAAA,IACvD,OAAO,WAAU,IAAI,SAAS;AAAA,GAC/B;AAAA,EAED,OAAO,cAAc,OAAO,CAAC,SAAS,KAAK,SAAS,CAAC;AAAA;;ACTvD;AACA,sBAAS;AAET;AAIA,IAAM,UAAU,OAAO,SAA+B;AAAA,EACpD,MAAM,OAAO,CAAC;AAAA,EAEd,MAAM,eAAe,MAAM,KAAK,gBAAgB;AAAA,EAEhD,WAAW,cAAc,cAAc;AAAA,IACrC,MAAM,MAAM,WAAU,IAAI,UAAU;AAAA,IACpC,KAAK,KAAK,MAAM,QAAQ,GAAG,CAAC;AAAA,EAC9B;AAAA,EAEA,MAAM,KAAK,IAAI,IAAI;AAAA;AAGd,IAAM,MAAM,YAA2B;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1
|
{
|
|
2
2
|
"name": "@ooneex/seeds",
|
|
3
3
|
"description": "Database seeding framework for populating initial data, fixtures, and test datasets with execution logging and idempotent operations",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.7.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist",
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
"npm:publish": "bun publish --tolerate-republish --force --production --access public"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@ooneex/container": "^1.5.
|
|
31
|
+
"@ooneex/container": "^1.5.1",
|
|
32
32
|
"@ooneex/logger": "^1.3.5",
|
|
33
|
-
"@ooneex/utils": "^0.4.
|
|
33
|
+
"@ooneex/utils": "^0.4.11"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@ooneex/exception": "^1.2.
|
|
36
|
+
"@ooneex/exception": "^1.2.10"
|
|
37
37
|
},
|
|
38
38
|
"keywords": [
|
|
39
39
|
"bun",
|