loop icon indicating copy to clipboard operation
loop copied to clipboard

Add dynamic commands using a function in task definition

Open mathieuancelin opened this issue 9 years ago • 0 comments

Now you can define a run task like

let copyFiles = run({
  name: 'copy files',
  sh: (changedFiles) => `mkdir -p dist; cp ${changedFiles.join(' ')} dist/`,
  watch: ['src/**']
})

this can be pretty convenient to process only files that actually changed

mathieuancelin avatar Apr 25 '16 17:04 mathieuancelin