@editframe/cli 0.10.0-beta.4 → 0.10.0-beta.6
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/VERSION.d.ts +1 -1
- package/dist/VERSION.js +1 -1
- package/dist/commands/render.d.ts +1 -1
- package/dist/commands/render.js +77 -51
- package/dist/commands/sync.js +5 -2
- package/dist/operations/getRenderInfo.d.ts +40 -4
- package/dist/operations/getRenderInfo.js +13 -0
- package/dist/operations/processRenderInfo.js +3 -0
- package/dist/operations/syncAssetsDirectory/SubAssetSync.d.ts +20 -0
- package/dist/operations/syncAssetsDirectory/SubAssetSync.js +26 -0
- package/dist/operations/syncAssetsDirectory/SyncCaption.d.ts +19 -0
- package/dist/operations/syncAssetsDirectory/SyncCaption.js +66 -0
- package/dist/operations/syncAssetsDirectory/SyncCaption.test.d.ts +1 -0
- package/dist/operations/syncAssetsDirectory/SyncFragmentIndex.d.ts +20 -0
- package/dist/operations/syncAssetsDirectory/SyncFragmentIndex.js +79 -0
- package/dist/operations/syncAssetsDirectory/SyncFragmentIndex.test.d.ts +1 -0
- package/dist/operations/syncAssetsDirectory/SyncImage.d.ts +23 -0
- package/dist/operations/syncAssetsDirectory/SyncImage.js +95 -0
- package/dist/operations/syncAssetsDirectory/SyncImage.test.d.ts +1 -0
- package/dist/operations/syncAssetsDirectory/SyncStatus.d.ts +41 -0
- package/dist/operations/syncAssetsDirectory/SyncStatus.js +43 -0
- package/dist/operations/syncAssetsDirectory/SyncTrack.d.ts +70 -0
- package/dist/operations/syncAssetsDirectory/SyncTrack.js +138 -0
- package/dist/operations/syncAssetsDirectory/SyncTrack.test.d.ts +1 -0
- package/dist/operations/syncAssetsDirectory/doAssetSync.d.ts +5 -0
- package/dist/operations/syncAssetsDirectory/doAssetSync.js +48 -0
- package/dist/operations/syncAssetsDirectory/doAssetSync.test.d.ts +1 -0
- package/dist/operations/syncAssetsDirectory.d.ts +1 -1
- package/dist/operations/syncAssetsDirectory.js +20 -240
- package/dist/test-fixtures/fixture.d.ts +26 -0
- package/dist/utils/index.js +4 -1
- package/package.json +5 -5
- package/src/commands/process.ts +0 -1
- package/src/commands/render.ts +79 -58
- package/src/commands/sync.ts +5 -2
- package/src/operations/getRenderInfo.ts +14 -0
- package/src/operations/processRenderInfo.ts +3 -0
- package/src/operations/syncAssetsDirectory/SubAssetSync.ts +42 -0
- package/src/operations/syncAssetsDirectory/SyncCaption.test.ts +145 -0
- package/src/operations/syncAssetsDirectory/SyncCaption.ts +76 -0
- package/src/operations/syncAssetsDirectory/SyncFragmentIndex.test.ts +151 -0
- package/src/operations/syncAssetsDirectory/SyncFragmentIndex.ts +92 -0
- package/src/operations/syncAssetsDirectory/SyncImage.test.ts +131 -0
- package/src/operations/syncAssetsDirectory/SyncImage.ts +112 -0
- package/src/operations/syncAssetsDirectory/SyncStatus.ts +51 -0
- package/src/operations/syncAssetsDirectory/SyncTrack.test.ts +222 -0
- package/src/operations/syncAssetsDirectory/SyncTrack.ts +164 -0
- package/src/operations/syncAssetsDirectory/doAssetSync.test.ts +134 -0
- package/src/operations/syncAssetsDirectory/doAssetSync.ts +62 -0
- package/src/operations/syncAssetsDirectory.test.ts +482 -0
- package/src/operations/syncAssetsDirectory.ts +22 -283
- package/src/utils/index.ts +4 -1
- package/test-fixtures/fixture.ts +141 -0
- package/test-fixtures/network.ts +181 -0
- package/test-fixtures/test-captions.json +9 -0
- package/test-fixtures/test.mp4 +0 -0
- package/test-fixtures/test.png +0 -0
- package/src/commands/render.test.ts +0 -34
- /package/dist/{commands/render.test.d.ts → operations/syncAssetsDirectory.test.d.ts} +0 -0
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
// @vitest-environment node
|
|
2
|
-
import { join } from "node:path";
|
|
3
|
-
import { describe, expect, test } from "vitest";
|
|
4
|
-
import { buildAssetId } from "./render.ts";
|
|
5
|
-
|
|
6
|
-
const testAssetPath = join(__dirname, "test-asset.file");
|
|
7
|
-
|
|
8
|
-
describe("render", () => {
|
|
9
|
-
describe("buildProductionUrl", () => {
|
|
10
|
-
test("builds urls for ef-audio", async () => {
|
|
11
|
-
await expect(buildAssetId(testAssetPath)).resolves.toBe(
|
|
12
|
-
"d41d8cd9-8f00-b204-e980-0998ecf8427e:test-asset.file",
|
|
13
|
-
);
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
test("builds urls for ef-video", async () => {
|
|
17
|
-
await expect(buildAssetId(testAssetPath)).resolves.toBe(
|
|
18
|
-
"d41d8cd9-8f00-b204-e980-0998ecf8427e:test-asset.file",
|
|
19
|
-
);
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
test("builds urls for ef-captions", async () => {
|
|
23
|
-
await expect(buildAssetId(testAssetPath)).resolves.toBe(
|
|
24
|
-
"d41d8cd9-8f00-b204-e980-0998ecf8427e:test-asset.file",
|
|
25
|
-
);
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
test("builds urls for ef-image", async () => {
|
|
29
|
-
await expect(buildAssetId(testAssetPath)).resolves.toBe(
|
|
30
|
-
"d41d8cd9-8f00-b204-e980-0998ecf8427e:test-asset.file",
|
|
31
|
-
);
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
});
|
|
File without changes
|