Skip to content

Commit b577ac1

Browse files
authored
Updating to use serverless-bundle plugin (#44)
* Updating to use bundle plugin * Updating template * Update README.md
1 parent 1caaf52 commit b577ac1

File tree

6 files changed

+6843
-7254
lines changed

6 files changed

+6843
-7254
lines changed

.babelrc

Lines changed: 0 additions & 8 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,20 @@
22

33
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.
44

5-
[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:
5+
[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:
66

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

2120
---
2221

0 commit comments

Comments
 (0)