-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: convert recordFrames into Typescript; stubbed out renderFrames
- Loading branch information
Showing
9 changed files
with
137 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,5 +29,6 @@ | |
"tempy", | ||
"usfm", | ||
"webm" | ||
] | ||
], | ||
"typescript.tsdk": "node_modules\\typescript\\lib" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 7 additions & 10 deletions
17
...ic/cli/lib/rendering/recordFrames.spec.js → ...ic/cli/lib/rendering/recordFrames.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import test from 'ava'; | ||
import tempy from 'tempy'; | ||
import fs from 'fs'; | ||
|
||
test('renderFrames hello world', async (t) => { | ||
/* | ||
let htmlContent = createMockHtml(); | ||
const numberOfFrames = 5; | ||
await tempy.directory.task(async (outputLocation) => { | ||
let files = fs.readdirSync(outputLocation); | ||
t.is(files.length, 0); | ||
await record(htmlContent, numberOfFrames, outputLocation); | ||
files = fs.readdirSync(outputLocation); | ||
t.is(files.length, numberOfFrames); | ||
}); | ||
*/ | ||
t.pass(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { record } from './recordFrames'; | ||
|
||
export async function render(outputLocation: string) { | ||
// collect UI options | ||
|
||
// load caption/frames object | ||
let captions = {}; | ||
|
||
// create HTMLcontent | ||
const htmlContent = getHtml(captions); | ||
|
||
// run record | ||
//await record(htmlContent, numberOfFrames, outputLocation, notifyEvent); | ||
} | ||
|
||
function getHtml(captions: object) {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"extends": "@tsconfig/node12/tsconfig.json", | ||
|
||
"compilerOptions": { | ||
"preserveConstEnums": true | ||
}, | ||
|
||
"include": ["public/cli/lib/rendering/**/*.ts"], | ||
"exclude": ["node_modules"] | ||
} |