Code Monkey home page Code Monkey logo

serverless-package-plugin's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

serverless-package-plugin's Issues

Pre deploy plugins are not executed

When using plugins in the project, that are run before function deployment (e.g. serverless-optimizer-plugin) the package plugin does not execute them. This leads to the packaged files not having the optimizations applied.

The package plugin should execute as follows:
-> Runtime build/package
-> post codePackageLambda hooks
-> pre codeDeployLambda hooks

Afterwards the package should be identical to what function deploy creates.

Discuss further functionality

Currently the plugin just runs the runtime builder, so the output can be found in the meta/_tmp directory.

There may be better options, like having a --dest switch to copy the packaged output somewhere else and to put it into structured directories.

Specifying a function name causes an error

I am seeing the following when running

sls package create sites -s josh -r us-east-1

/home/jwilson/.nvm/versions/node/v4.3.2/lib/node_modules/serverless/node_modules/bluebird/js/release/async.js:61
        fn = function () { throw arg; };
                           ^

TypeError: Cannot read property 'project' of undefined
  at /home/jwilson/Development/berry/pyramid-api/node_modules/serverless-package-plugin/lib/actions/PackageCreate.js:106:28
  at Array.forEach (native)
  at PackageCreate._validateAndPrepare (/home/jwilson/Development/berry/pyramid-api/node_modules/serverless-package-plugin/lib/actions/PackageCreate.js:105:32)

When I do not specify a function, it works successfully.

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.