Giter Site home page Giter Site logo

broccoli-output-wrapper's Introduction

broccoli-output-wrapper

This libary is to provide Proxy to FS operations for Broccoli. Broccoli Plugin developers can just write to the outputPath using the proxy. This libary is not intended to use independently outside broccoli or broccoli-plugin as of now.

APIs

  • readFileSync
  • existsSync
  • lstatSync
  • readdirSync
  • statSync
  • writeFileSync
  • appendFileSync
  • mkdirSync
  • unlinkSync
  • symlinkSync
  • utimesSync

All these operations above are same as File Operations documented in node API guide.

  • rmdirSync

Perform same operation as node guide. We have polyfilled recursive: true option to perform a recursive directory removal. In recursive mode, errors are not reported if path does not exist, and operations are retried on failure. Default: false

broccoli-output-wrapper's People

Contributors

dependabot[bot] avatar sparshithnr avatar stefanpenner avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

broccoli-output-wrapper's Issues

Why no async operations?

Just wondering why async operations are blocked? I can't seem to find documentation regarding this. All of my plugins are async for performance reasons, and they work fine on older Broccoli (0.16.9).

[...] If we needed the plugin to be asynchronous, we could alternatively return a promise and Broccoli would wait until the promise resolved before continuing the build.

https://broccoli.build/plugins.html

Add more operations

Add following operations

  1. rmdirSync with recursive:true
  2. unlinkSync
  3. symlinkOrCopy.sync

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.