Giter VIP home page Giter VIP logo

Comments (4)

pgherveou avatar pgherveou commented on June 4, 2024

Thks @ramonck!
Dont hesitate to submit a PR with your changes to the documentation if you think of way to make it better.

As for the feature you are talking about, I am not sure to understand exactly what you are asking for

from gulp-awspublish.

ramonck avatar ramonck commented on June 4, 2024

The feature is related to this new item https://forums.aws.amazon.com/ann.jspa?annID=3072

Best Regards

from gulp-awspublish.

akrisanov avatar akrisanov commented on June 4, 2024

I agree that the uploading of build zip archive would be very useful feature.
One of the use cases is a deploy an application with Amazon OpsWorks from S3 bucket.

edit_site-staging_-apps-_core_staging__aws_opsworks_2016-04-13_21-30-57

from gulp-awspublish.

akrisanov avatar akrisanov commented on June 4, 2024

@ramonck You also can do this in your gulpfile:

gulp.task('zip', function() {
    return gulp.src('./build/**')
        .pipe(zip('release_' + process.env.NODE_ENV + '.zip'))
        .pipe(gulp.dest('./releases'));
});

gulp.task('awspublish', ['build', 'zip'], function() {
    var config = require('./aws-credentials.json')
    var envs   = config[process.env.NODE_ENV]

    if(envs == undefined) {
      throw new Error("Please provide aws credentials.");
    }

    var publisher = awspublish.create(envs);
    var plain     = gulp.src(['./releases/' + 'release_' +
                              process.env.NODE_ENV + '.zip'])

    return merge(plain).pipe(publisher.publish())
                       .pipe(publisher.sync())
                       .pipe(publisher.cache())
                       .pipe(awspublish.reporter());
});

from gulp-awspublish.

Related Issues (20)

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.