accelerator-tool-cli
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -5,4 +5,7 @@ import chalk from 'chalk'; | ||
} from 'colorful-logging'; | ||
import * as fs from 'fs-extra'; | ||
import { | ||
readFile, | ||
writeFile, | ||
} from 'fs-extra'; | ||
import { | ||
makeTemplateReplacements, | ||
@@ -12,3 +15,3 @@ } from '../functions/makeTemplateReplacements'; | ||
export async function generateAssetStyleFile({ | ||
export const generateAssetStyleFile = async ({ | ||
config, | ||
@@ -21,3 +24,3 @@ forceCss, | ||
type, | ||
}) | ||
}) => | ||
{ | ||
@@ -32,3 +35,3 @@ const styleTemplatePath = path.join( | ||
const data = await fs.readFile(styleTemplatePath, 'utf8'); | ||
const data = await readFile(styleTemplatePath, 'utf8'); | ||
log('Rewriting style template.'); | ||
@@ -42,7 +45,7 @@ | ||
const newStylePath = path.join(newAssetDir, `${name}.scss`); | ||
const newStylePath = path.join(newAssetDir, `${name}.less`); | ||
log(`Writing style template to "${chalk.bold(newStylePath)}".`); | ||
await fs.writeFile(newStylePath, rewrittenData); | ||
} | ||
await writeFile(newStylePath, rewrittenData); | ||
}; |
{ | ||
"name": "accelerator-tool-cli", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "All the code for the Accelerator devtool.", | ||
@@ -5,0 +5,0 @@ "author": "furkle", |
64165
1009