Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

accelerator-tool-cli

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

accelerator-tool-cli - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

17

new/generateAssetStyleFile.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc