mirror of
https://github.com/mdgriffith/elm-optimize-level-2.git
synced 2024-11-29 12:46:32 +03:00
Formatting
This commit is contained in:
parent
37aefb39e9
commit
f4e923fdab
18
src/index.ts
18
src/index.ts
@ -37,14 +37,20 @@ async function run(options: {
|
|||||||
outputFilePath: string | null,
|
outputFilePath: string | null,
|
||||||
optimizeSpeed: boolean
|
optimizeSpeed: boolean
|
||||||
}) {
|
}) {
|
||||||
return runWithLogger(options, console.log.bind(console));
|
return runWithLogger(
|
||||||
|
options,
|
||||||
|
console.log.bind(console)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function runWithLogger(options: {
|
async function runWithLogger(
|
||||||
inputFilePath: string | undefined,
|
options: {
|
||||||
outputFilePath: string | null,
|
inputFilePath: string | undefined,
|
||||||
optimizeSpeed: boolean
|
outputFilePath: string | null,
|
||||||
}, log: (message?: any, ...optionalParams: any[]) => void) {
|
optimizeSpeed: boolean
|
||||||
|
},
|
||||||
|
log: (message?: any, ...optionalParams: any[]) => void
|
||||||
|
) {
|
||||||
const dirname = process.cwd();
|
const dirname = process.cwd();
|
||||||
let jsSource: string = '';
|
let jsSource: string = '';
|
||||||
let elmFilePath = undefined;
|
let elmFilePath = undefined;
|
||||||
|
Loading…
Reference in New Issue
Block a user