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-accessibility@vazgentigranich/parlor-glimmer-application-pipelineangular-bro-appbroccoli-clextbroccoli-handlebars-precompilerbroccoli-directoryciena-devops-testbeddenali-cliember-mdember-cli-sketchember-cli-self-updateember-cli-shimsember-cli-styles-preprocessorember-cli-stencilember-render-vendorember-replember-mutation-observerember-service-workerember-snipember-paperember-paper-exember-mirage-genember-paper-liteember-theemoember-tooltipsember-addon-viewerember-adminbsbember-aframeember-intl-tel-input2ember-vendor-splitemberjs-buildemberfireemberfire-expember-cli-cmsember-cli-dump-targetsember-cli-native-stencilember-cli-new-versionember-cli-paperember-cli-rollbar2ember-cli-rollupember-cli-remark-staticember-cli-postcss-glimmerember-cli-babel-polyfillsember-cli-app-updaterember-cli-zugember-cli-fastbootember-cli-file-creatorember-cli-jstreeember-doc-engineember-emojioneember-enginesember-euiember-data-model-fragmentsember-heroiconsember-awesome-macrosember-batch-requestember-feature-flag-solutionember-frost-coreember-cli-ghost-spiritember-cli-foundation-6-sass
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