Skip to content
No description, website, or topics provided.
Branch: development
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.eslintrc.js
.gitignore
README.md
index.js
package-lock.json
package.json

README.md

Serverless Plugin Typescript Express

serverless

Features

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

Instalation and use

yarn add --dev serverless-plugin-typescript-express

or

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

Add the following plugin to your serverless.yml:

plugins:
  - 'serverless-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"
    ]
  } 

The input folder src cannot be overwritten

License

MIT

You can’t perform that action at this time.