Skip to content

Commit

Permalink
Updating to use serverless-bundle plugin (#44)
Browse files Browse the repository at this point in the history
* Updating to use bundle plugin

* Updating template

* Update README.md
  • Loading branch information
jayair authored Jul 18, 2019
1 parent 1caaf52 commit b577ac1
Show file tree
Hide file tree
Showing 6 changed files with 6,843 additions and 7,254 deletions.
8 changes: 0 additions & 8 deletions .babelrc

This file was deleted.

9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,20 @@

A Serverless starter that adds ES7 syntax, serverless-offline, environment variables, and unit test support. Part of the [Serverless Stack](http://serverless-stack.com) guide.

[Serverless Node.js Starter](https://github.com/AnomalyInnovations/serverless-nodejs-starter) uses the [serverless-webpack](https://github.com/serverless-heaven/serverless-webpack) plugin, [Babel](https://babeljs.io), [serverless-offline](https://github.com/dherault/serverless-offline), and [Jest](https://facebook.github.io/jest/). It supports:
[Serverless Node.js Starter](https://github.com/AnomalyInnovations/serverless-nodejs-starter) uses the [serverless-bundle](https://github.com/AnomalyInnovations/serverless-bundle) plugin (an extension of the [serverless-webpack](https://github.com/serverless-heaven/serverless-webpack) plugin) and the [serverless-offline](https://github.com/dherault/serverless-offline) plugin. It supports:

- **ES7 syntax in your handler functions**
- **Generating optimized Lambda packages with Webpack**
- **Use ES7 syntax in your handler functions**
- Use `import` and `export`
- **Package your functions using Webpack**
- **Run API Gateway locally**
- Use `serverless offline start`
- **Support for unit tests**
- Run `npm test` to run your tests
- **Sourcemaps for proper error messages**
- Error message show the correct line numbers
- Works in production with CloudWatch
- **Automatic support for multiple handler files**
- No need to add a new entry to your `webpack.config.js`
- **Add environment variables for your stages**
- **No need to manage Webpack or Babel configs**

---

Expand Down
Loading

0 comments on commit b577ac1

Please sign in to comment.