2.1.1 • Published 7 years ago

broccoli-file-creator v2.1.1

Weekly downloads
296,003
License
MIT
Repository
github
Last release
7 years ago

Broccoli's File Creator

Build Status

Usage

Create a file named app/main.js with "some content goes here":

let writeFile = require('broccoli-file-creator');
let tree = writeFile('/app/main.js', 'some content goes here');

Documentation

writeFile(filename, content, fileOptions)


filename {String}

The path of the file to create.


content {String|Function|Promise}

The contents to write into the file.

writeFile('filename.txt', 'the-content');
writeFile('filename.txt', Promise.resolve('the-content'));
writeFile('filename.txt', () => 'the-content');
writeFile('filename.txt', () => Promise.resolve('the-content'));

note: If a function is provided, it will only be invoked once, on first build

ZOMG!!! TESTS?!?!!?

I know, right?

Running the tests:

npm install
npm test

License

This project is distributed under the MIT license.

@unihorncorn/horn-stylesember-engines-lexascms@infinitebrahmanuniverse/nolb-broc@everything-registry/sub-chunk-1264guidemakerilios-commonglimmer-buildglimmer-v1-application-pipelineprysmex-docfy-emberpilasbloques-ember-paperprember-rss-feedprember-sitemap-generatorraureif-glimmer@ascua/config@buschtoens/ember-engines@charlesfries/emberfire@1024pix/ember-cli-stencil@felixrieseberg/ember-service-worker@hashicorp/ember-cli-api-double@fortawesome/ember-fontawesome@ember-data-mirror/private-build-infra@ember-data/-build-infra@ember-data/private-build-infra@embroider/compat@glimmer/application-pipeline@glimmer/build@magikcraft/ember-simple-auth@eflexsystems/ember-cli-new-version@eflexsystems/ember-data-model-fragments@jasonmit/ember-new-relic@jagthedrummer/ember-heroicons@jrrucker/ember-cli-stencil@rancher/ember-api-store@real_ate/fake-embroider-compat@pgengler/ember-cli-mirage@nycplanning/ember-cli-foundation-6-sass@systembug/ember-paper@retail-architects/ember-data@docfy/ember@denali-js/cli@coyote-labs/ember-accessibilityember-cli-addon-versionsember-cli-babel-polyfillsember-cli-app-updaterember-cli-cmsember-awesome-macrosember-batch-requestember-api-storeember-aframeember-addon-viewerember-adminbsbember-a11yember-2-legacyempress-blog-netlify-cmsember-cli-paperember-cli-new-versionember-cli-native-stencilember-emojioneember-enginesember-euiember-mutation-observerember-sourceember-snipemberfire-expemberjs-buildember-cli-jstreeember-cli-styles-preprocessorember-cli-stencilember-frost-coreember-intl-tel-input2ember-cli-dump-targetsember-cli-self-updateember-cli-sketchember-cli-shimsember-feature-flag-solutionember-heroiconsember-paper-liteember-paperember-paper-exember-vendor-splitember-cli-file-creatorember-cli-ghost-spiritember-cli-foundation-6-sassember-cli-postcss-glimmerember-cli-remark-staticember-cli-rollbar2ember-cli-rollupember-data-model-fragmentsember-doc-engineember-component-showcaseember-mirage-genember-mdember-service-workerember-cli-mirageember-data-background-adaptersember-data-classicember-makeupember-render-vendorember-replember-tooltips
2.1.1

7 years ago

2.1.0

7 years ago

2.0.0

7 years ago

1.2.0

7 years ago

1.1.1

8 years ago

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago

0.1.0

11 years ago