Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

franz

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

franz

Create webpack and serverless config files from your lambda definitions

  • 0.6.0
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

franz

franz generates you serverless.yml and webpack config.

Still in early stage!!

define a lambda.config.js file and call franz.
Now you could call webpack with your webpack config. And finally serverless deploy

module.exports = {
  service: 'service_name', //used by serverless
  region: 'eu-central-1', //used by serverless
  stage: 'dev', //used by serverless

  variables: { //global environment variables for your lambda functions
    FOO: 'bar',
    BAR: process.env.BAR
  },

  functions: [
    './path/to/your/function', //with or without .js -> uses require() internally
  ]
}

your function file:

module.exports = {
  name: 'my-function',
  method: 'GET',
  path: '/foo',
  handler: function (request) {
    return Promise.resolve({foo: 'bar'})
  }
}

wbepack.config.js

const config = require('./dist/webpack.json') //contains all entry points...

module.exports = Object.assign(config, {
  module: {
    rules: [{
      test: /\.js$/,
      loader: 'babel-loader',
      exclude: /node_modules/
    }]
  }
})

FAQs

Package last updated on 23 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc