mirror of
https://github.com/mdgriffith/elm-optimize-level-2.git
synced 2024-11-25 22:50:42 +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,
|
||||
optimizeSpeed: boolean
|
||||
}) {
|
||||
return runWithLogger(options, console.log.bind(console));
|
||||
return runWithLogger(
|
||||
options,
|
||||
console.log.bind(console)
|
||||
);
|
||||
}
|
||||
|
||||
async function runWithLogger(options: {
|
||||
inputFilePath: string | undefined,
|
||||
outputFilePath: string | null,
|
||||
optimizeSpeed: boolean
|
||||
}, log: (message?: any, ...optionalParams: any[]) => void) {
|
||||
async function runWithLogger(
|
||||
options: {
|
||||
inputFilePath: string | undefined,
|
||||
outputFilePath: string | null,
|
||||
optimizeSpeed: boolean
|
||||
},
|
||||
log: (message?: any, ...optionalParams: any[]) => void
|
||||
) {
|
||||
const dirname = process.cwd();
|
||||
let jsSource: string = '';
|
||||
let elmFilePath = undefined;
|
||||
|
Loading…
Reference in New Issue
Block a user