Skip to content

Commit d771e9f

Browse files
authored
Updating to use Node 8.10 (#31)
* Upgrading to Node 8 * Testing * Disabling webpack * Enabling webpack * Updating README
1 parent ed606d2 commit d771e9f

3 files changed

Lines changed: 5 additions & 8 deletions

File tree

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"plugins": ["source-map-support", "transform-runtime"],
33
"presets": [
4-
["env", { "node": "6.10" }],
4+
["env", { "node": "8.10" }],
55
"stage-3"
66
]
77
}

README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# Serverless Node.js Starter
22

3-
A Serverless starter that adds ES7 async/await, serverless-offline, environment variables, and unit test support. Part of the [Serverless Stack](http://serverless-stack.com) guide.
3+
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), and [Jest](https://facebook.github.io/jest/). It supports:
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:
66

77
- **ES7 syntax in your handler functions**
8-
- Use async/await
9-
- And much more!
8+
- Use `import` and `export`
109
- **Run API Gateway locally**
1110
- Use `serverless offline start`
1211
- **Support for unit tests**
@@ -18,8 +17,6 @@ A Serverless starter that adds ES7 async/await, serverless-offline, environment
1817
- No need to add a new entry to your `webpack.config.js`
1918
- **Add environment variables for your stages**
2019

21-
If you'd like to learn how to setup your existing Serverless project to support ES7 async/await, use this [guide on Serverless-Stack.com](http://serverless-stack.com/chapters/add-support-for-es6-javascript.html).
22-
2320
---
2421

2522
### Demo

serverless.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ custom:
1515

1616
provider:
1717
name: aws
18-
runtime: nodejs6.10
18+
runtime: nodejs8.10
1919
stage: dev
2020
region: us-east-1
2121
# To load environment variables externally

0 commit comments

Comments
 (0)