Copy a file to some destination. In the options object, only one of source or content is needed.
destination
options
source
content
import { files } from 'ember-apply';await files.copyFileTo('destination/file.js', { source: 'source/file.js' }); Copy
import { files } from 'ember-apply';await files.copyFileTo('destination/file.js', { source: 'source/file.js' });
import { files } from 'ember-apply';await files.copyFileTo('destination/file.js', { content: 'file contents' }); Copy
import { files } from 'ember-apply';await files.copyFileTo('destination/file.js', { content: 'file contents' });
Copy a file to some
destination
. In theoptions
object, only one ofsource
orcontent
is needed.