-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
Reading API updates regarding this.input
, this.output
. I'was checked original broccoli plugin documentation on website and seen such example:
https://github.com/broccolijs/broccolijs.github.io/edit/code/src/content/plugins.md
build() {
const walkOptions = {
includeBasePath: true,
directories: false,
globs: this.fileMatchers,
};
const content = this.inputPaths
.reduce((output, inputPath) => output + this.joinSeparator +
walkSync(inputPath, walkOptions)
.map(file => fs.readFileSync(file, { encoding: 'UTF-8' }))
.join(this.joinSeparator),
'');
fs.writeFileSync(`${this.outputPath}/${this.outputFile}`, content);
}
How we will convert it into new api? without fs
usage inside walkSync
?
Metadata
Metadata
Assignees
Labels
No labels