GithubHelp home page GithubHelp logo

vinyl-string's People

Contributors

armordog avatar

Stargazers

 avatar

Watchers

 avatar  avatar

vinyl-string's Issues

`_transform` not implemented error when piping through vinyl-string

I had the crazy idea of using this package to inject a file into a gulp.src stream.

Here's my gulpfile.js:

var gulp = require('gulp');
var vinylString = require('./index');

gulp.task('build', function () {
    return gulp.src('src/**/*.js')
        // Add a generated vinyl file to the stream
        .pipe(vinylString('var x = 1;', { path:'generated.js' }))
        .pipe(gulp.dest('build'));
});

...and this is the error that occurs:

_stream_transform.js:142
  throw new Error('not implemented');
  ^

Error: not implemented
    at Transform._transform (_stream_transform.js:142:9)
    at Transform._read (_stream_transform.js:167:10)
    at Transform._write (_stream_transform.js:155:12)
    at doWrite (_stream_writable.js:301:12)
    at writeOrBuffer (_stream_writable.js:287:5)
    at Transform.Writable.write (_stream_writable.js:215:11)

The dynamic file is written to the build directory, but files from the src directory are missing.

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.