How to use the foy.fs.rmrf function in foy

To help you get started, we’ve selected a few foy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github zaaack / htmls-webpack-plugin / Foyfile.ts View on Github external
task('build', async ctx => {
  // Your build tasks
  await ctx.exec('tsc')
  await fs.rmrf('lib/test')
})
github hydux / hydux / Foyfile.ts View on Github external
task<{ type: 'patch' | 'major' | 'minor' }>('publish', async ctx => {
  await ctx.run('preversion', { options: { version: ctx.options.type } })
  await ctx.exec(`npm version ${ctx.options.type}`)
  await fs.rmrf('./lib/test')
  await fs.rmrf('./es/test')
  await Promise.all([
    ctx.exec(`git push origin master --tags`),
    ctx.exec(`npm --registry https://registry.npmjs.org/ publish`),
  ])
})
github hydux / hydux / Foyfile.ts View on Github external
task<{ type: 'patch' | 'major' | 'minor' }>('publish', async ctx => {
  await ctx.run('preversion', { options: { version: ctx.options.type } })
  await ctx.exec(`npm version ${ctx.options.type}`)
  await fs.rmrf('./lib/test')
  await fs.rmrf('./es/test')
  await Promise.all([
    ctx.exec(`git push origin master --tags`),
    ctx.exec(`npm --registry https://registry.npmjs.org/ publish`),
  ])
})

foy

A simple, light-weight and modern task runner for general purpose.

MIT
Latest version published 10 days ago

Package Health Score

66 / 100
Full package analysis