Skip to content

Commit

Permalink
Update fixture parser
Browse files Browse the repository at this point in the history
  • Loading branch information
spensbot committed Dec 12, 2023
1 parent 262902b commit 98589a7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/captivate_fixtures.db
Git LFS file not shown
10 changes: 9 additions & 1 deletion tools/qlc_fixture_parser/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,19 @@ async function main() {
}
}

try {
var existing_fixtures_json = await fs.readFile(OUTPUT_PATH, {
encoding: 'utf-8',
})
var existing_fixtures = JSON.parse(existing_fixtures_json) as FixtureType[]
console.log(`Existing fixture count: ${existing_fixtures.length}`)
} catch {}

console.log(
`Writing ${fixture_count} fixtures and ${captivate_fixtures.length} modes`
)

fs.writeFile(
await fs.writeFile(
OUTPUT_PATH,
PRETTY
? JSON.stringify(captivate_fixtures, null, 2)
Expand Down

0 comments on commit 98589a7

Please sign in to comment.