Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var promises = files.map( function ( file ) {
if ( file === '_config.js' ) return;
return sander.readFile( 'es6-module-transpiler-tests/input', dir, file ).then( String ).then( function ( source ) {
var transpiled = esperanto.toCjs( source, {
strict: true
});
return sander.writeFile( 'es6-module-transpiler-tests/output', dir, file, transpiled.code );
});
});
test.after(function after () {
localStorage.clear()
sander.rimrafSync(storagePath)
})
test.after(function after () {
localStorage.clear()
sander.rimrafSync(storagePath)
})
test.after(function after () {
localStorage.clear()
sander.rimrafSync(storagePath)
})
test.after(function after () {
localStorage.clear()
sander.rimrafSync(storagePath)
sander.rimrafSync(storagePath2)
})
test.after(function after () {
localStorage.clear()
sander.rimrafSync(storagePath)
})
export default async function getReadmeData(context = {}) {
const readmePath = path.resolve(
__dirname,
"../../documentation/first-steps.md"
);
const readmeSource = await sander.readFile(readmePath, "utf-8");
const readmeLines = readmeSource.split("\n").map(increment);
return [`# ${context.name}`, readmeLines.join("\n")].join("\n");
}
export default async function getReadmeData(context = {}) {
const readmePath = path.resolve(__dirname, '../../documentation/first-steps.md');
const readmeSource = await sander.readFile(readmePath, { encoding: 'utf-8' });
const readmeLines = readmeSource
.split('\n')
.map(increment);
return [`# ${context.name}`, readmeLines.join('\n')].join('\n');
}
}).forEach(function (file) {
return sander.rimrafSync(dir, file);
});
};
.forEach( file => rimrafSync( dir, file ) );
}