Skip to content

Commit

Permalink
Add convert SQLite to the convert index
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanpscott committed Oct 29, 2024
1 parent e13c217 commit 4fd8424
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions convert/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { ConvertFirebase } from './convertFirebase';
import { ConvertStyles } from './convertStyles';
import { ConvertBadges } from './convertBadges';
import { ConvertPlans } from './convertPlans';
import { ConvertSQLite } from './convertSQLite';
import { watch } from 'chokidar';
import { Task, TaskOutput } from './Task';
import { writeFile } from 'fs';
Expand All @@ -24,8 +25,8 @@ const suppliedDataDir = process.argv.find((arg) => arg.includes('--data-dir'));
const dataDir = suppliedDataDir
? suppliedDataDir.split('=')[1]
: process.argv.includes('--examples')
? 'example_data'
: 'data';
? 'example_data'
: 'data';

const watchTimeoutArg = process.argv.find((arg) => arg.includes('--watch-timeout'));
const watchTimeout = watchTimeoutArg ? parseInt(watchTimeoutArg.split('=')[1]) : 100;
Expand Down Expand Up @@ -54,16 +55,15 @@ const commonStepClasses = [
//Classes only necessary for SAB
const SABStepClasses = [ConvertContents, ConvertPlans, ConvertBooks];

//The convert scripts for this project type have not been implemented yet
// const DABStepClasses = [
// ConvertReversalIndex,
// ConvertSQLite
// ];
const DABStepClasses = [
// ConvertReversalIndex,
ConvertSQLite
];

const stepClasses: Task[] = [
...commonStepClasses,
...(programType == 'SAB' ? SABStepClasses : [])
//...(programType == 'DAB' ? DABStepClasses : [])
...(programType == 'SAB' ? SABStepClasses : []),
...(programType == 'DAB' ? DABStepClasses : [])
].map((x) => new x(dataDir));

const allPaths = new Set(
Expand Down

0 comments on commit 4fd8424

Please sign in to comment.