Skip to content

Commit 07e3edc

Browse files
authored
Merge pull request #233 from GorillaStack/fix-vulns
Update build process and fix vulnerabilities
2 parents 5e53d76 + 2fedcbe commit 07e3edc

File tree

6 files changed

+1132
-28
lines changed

6 files changed

+1132
-28
lines changed

.travis.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
language: node_js
22
node_js:
3-
- '4'
3+
- '8'
4+
- '10'
5+
- '12'
46

57
sudo: false
68

@@ -11,8 +13,8 @@ before_install:
1113
- npm init --yes
1214

1315
install:
14-
- npm install --save-dev serverless-offline
15-
- npm install -g serverless@1.0.0-rc.1
16+
- npm install --save-dev serverless-offline
17+
- npm install --save-dev serverless@^1
1618
- npm install aws-sdk
1719
- npm install --save dynamodb-doc-client-wrapper
1820
- serverless create --template aws-nodejs
@@ -25,23 +27,19 @@ install:
2527
- sed -i '18 a plugins:' serverless.yml
2628
- sed -i '19 a - serverless-offline' serverless.yml
2729
- sed -i '20 a - serverless-dynamodb-local' serverless.yml
30+
- "sed -i '21 a custom: { dynamodb: { stages: [dev] } }' serverless.yml"
2831
- cd ..
2932
- cd ..
30-
- npm install --save-dev mocha
31-
- npm install --save-dev should
32-
- npm install --save expect
33-
- npm install --save request
34-
- npm install --save chai
3533
- travis_retry npm install
3634
- cd test/sample-template
3735

3836
before_script:
3937
- sls dynamodb install
40-
- sls offline start &
38+
- sls offline start --stage dev &
4139
- sleep 15
42-
- cd ..
40+
- cd ..
4341
- cd ..
4442
- npm run test
45-
43+
4644
script:
4745
- npm test

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ serverless-dynamodb-local
66
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
77

88
## This Plugin Requires
9-
* serverless@v1-rc.1
9+
* serverless@^1
1010
* Java Runtime Engine (JRE) version 6.x or newer
1111

1212
## Features
@@ -52,7 +52,7 @@ All CLI options are optional:
5252
--delayTransientStatuses -t Causes DynamoDB to introduce delays for certain operations. DynamoDB can perform some tasks almost instantaneously, such as create/update/delete operations on tables and indexes; however, the actual DynamoDB service requires more time for these tasks. Setting this parameter helps DynamoDB simulate the behavior of the Amazon DynamoDB web service more closely. (Currently, this parameter introduces delays only for global secondary indexes that are in either CREATING or DELETING status.)
5353
--optimizeDbBeforeStartup -o Optimizes the underlying database tables before starting up DynamoDB on your computer. You must also specify -dbPath when you use this parameter.
5454
--migration -m After starting dynamodb local, run dynamodb migrations.
55-
--heapInitial The initial heap size
55+
--heapInitial The initial heap size
5656
--heapMax The maximum heap size
5757
--migrate -m After starting DynamoDB local, create DynamoDB tables from the Serverless configuration.
5858
--seed -s After starting and migrating dynamodb local, injects seed data into your tables. The --seed option determines which data categories to onload.
@@ -200,7 +200,7 @@ Make sure that `serverless-dynamodb-local` is above `serverless-offline` so it w
200200
Now your local DynamoDB database will be automatically started before running `serverless offline`.
201201

202202
### Using with serverless-offline and serverless-webpack plugin
203-
Run `serverless offline start`. In comparison with `serverless offline`, the `start` command will fire an `init` and a `end` lifecycle hook which is needed for serverless-offline and serverless-dynamodb-local to switch off both ressources.
203+
Run `serverless offline start`. In comparison with `serverless offline`, the `start` command will fire an `init` and a `end` lifecycle hook which is needed for serverless-offline and serverless-dynamodb-local to switch off both ressources.
204204

205205
Add plugins to your `serverless.yml` file:
206206
```yaml

0 commit comments

Comments
 (0)