Code Monkey home page Code Monkey logo

gulp-aws's People

Contributors

chriskinsman avatar pracucci avatar roccozanni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

blaues0cke

gulp-aws's Issues

Bug: self not defined

Line 30 in index.js throws the error:

            self.push(file);
            ^
ReferenceError: self is not defined

Full context:

        // Check for empty file
        if (file.isNull()) {
            self.push(file);
            return done();
        }

I believe self.push(file) should be this.push(file)

Support for Buffers

gulp-aws currently claims it only supports streams (index.js, lines 34-38):

        // Only streams supported
        if (file.isBuffer()) {
            this.emit('error', new PluginError(PLUGIN_NAME, new Error('Only streams supported'), { showStack: true }));
            return done();
        }

However none of the functionality seems to be particular to streams. In fact, after commenting out the above lines, the plugin works fine with buffered streams. I suggest removing the above check.

Support for file paths

It seems that currently file paths are ignored by gulp-aws, i.e. a file named in assets/app.css will be uploaded to <bucket>/<prefix>/app.css instead of <bucket>/<prefix>/assets/app.css. Whether to include the file path or not when uploading could be made configurable via an option.

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.