Skip to content

Commit e943618

Browse files
author
temyers
committed
Update README prior to publish
1 parent 9ceb59a commit e943618

File tree

4 files changed

+2696
-6
lines changed

4 files changed

+2696
-6
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ script:
1414
# setup links for integration testing
1515
- npm link
1616
# FIXME - integration test fails first time, due to timing issue - S3 bucket does not exist after initial create stack completes.
17-
- npm run integ || npm run integ || npm run integ
17+
- npm run test:integration || npm run test:integration || npm run test:integration

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,11 @@ git clone https://github.com/temyers/serverless-localstack
158158
##### Setup your project
159159

160160
```
161+
cd /path/to/serverless-localstack
162+
npm link
163+
161164
cd myproject
162-
mkdir .serverless_plugins
163-
ln -s /absolute/path/to/serverless-localstack .serverless_plugins/serverless-localstack
165+
npm link serverless-localstack
164166
```
165167

166168
### Optional Debug Flag
@@ -172,3 +174,13 @@ custom:
172174
localstack:
173175
debug: true
174176
```
177+
178+
## Publishing to NPM
179+
180+
```
181+
yarn install
182+
yarn version
183+
npm login
184+
npm publish
185+
186+
```

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88
"lint-fix": "eslint . --fix",
99
"test": "jasmine --config=spec/support/jasmine.json",
1010
"test:watch": "jasmine --config=spec/support/jasmine.json",
11-
"integ": "jasmine --config=spec/support/jasmine_integration.json",
12-
"integ:watch": "nodemon -L -i spec/integrate ./node_modules/.bin/jasmine --config=spec/support/jasmine_integration.json",
13-
"test:cover": "jasmine --coverage"
11+
"test:integration": "jasmine --config=spec/support/jasmine_integration.json",
12+
"test:integration:watch": "nodemon -L -i spec/integrate ./node_modules/.bin/jasmine --config=spec/support/jasmine_integration.json",
13+
"test:cover": "jasmine --coverage",
14+
"prepublish": "yarn run test",
15+
"preversion": "yarn run test"
1416
},
1517
"repository": {
1618
"type": "git",

0 commit comments

Comments
 (0)