0.6.1 • Published 5 years ago

franz v0.6.1

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

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/
    }]
  }
})
0.6.1

5 years ago

0.6.0

6 years ago

0.5.2

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.8

7 years ago

0.4.7

7 years ago

0.4.6

7 years ago

0.4.5

7 years ago

0.4.4

7 years ago

0.4.3

7 years ago

0.4.2

7 years ago

0.4.1

7 years ago

0.4.0

7 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.19

7 years ago

0.0.18

7 years ago

0.0.17

7 years ago

0.0.16

7 years ago

0.0.15

7 years ago

0.0.14

7 years ago

0.0.13

7 years ago

0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago