sls-plugin-typescript-express

Serverless Plugin Typescript Express

Compile ts files to js with serverless. AWS Lambda serverless.yml plugin for working typescript express node apps.

Credits:

Features

Installation and use

yarn add --dev sls-plugin-typescript-express

or

npm install --save-dev sls-plugin-typescript-express

Add the following plugin to your serverless.yml:

plugins:
  - 'sls-plugin-typescript-express'

tsconfig.json

The default tsconfig.json file used by the plugin looks like this:

{
    "compilerOptions": {
      "target": "es6",
      "module": "commonjs",
      "outDir": "dist",
      "sourceMap": true,
      "experimentalDecorators": true,
      "emitDecoratorMetadata": true,
      "isolatedModules": false,      
      "lib": [ 
        "es6", 
        "dom" 
      ]
    },
    "include": [
      "src/**/*"
    ],
    "exclude": [
      "node_modules"
    ]
  } 

Contributions welcome!

Open a new PR here on GitHub.

Bugs and Issues

Have a bug or an issue? Open a new issue here on GitHub.

The input folder src cannot be overwritten

License

Code licensed under MIT. Everything else is CC

Follow us

© nordible