1.0.7 • Published 5 years ago

sls-plugin-typescript-express v1.0.7

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Serverless Plugin Typescript Express

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

Credits:

Features

  • Integrates with serverless-offline (live reload without restart server)
  • It's not necessary complementary configuration

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