Skip to content

Commit

Permalink
docs: move basic-starter logic into src directory
Browse files Browse the repository at this point in the history
  • Loading branch information
brettstack committed Jun 21, 2019
1 parent e768599 commit 2290128
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions __tests__/integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const path = require('path')
const fs = require('fs')
const awsServerlessExpress = require('../index')
const apiGatewayEvent = require('../examples/basic-starter/api-gateway-event.json')
const app = require('../examples/basic-starter/app')
const app = require('../examples/basic-starter/src/app')

const serverlessExpress = awsServerlessExpress.configure({ app })
const server = serverlessExpress.server
Expand Down Expand Up @@ -240,7 +240,7 @@ describe('integration tests', () => {
delete response.multiValueHeaders.etag
delete response.multiValueHeaders['last-modified']

const samLogoPath = path.resolve(path.join(__dirname, '../examples/basic-starter/sam-logo.png'))
const samLogoPath = path.resolve(path.join(__dirname, '../examples/basic-starter/src/sam-logo.png'))
const samLogoImage = fs.readFileSync(samLogoPath)
const samLogoBase64 = Buffer.from(samLogoImage).toString('base64')

Expand Down
1 change: 0 additions & 1 deletion examples/alb/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const express = require('express')
const bodyParser = require('body-parser')
const cors = require('cors')
// const compression = require('compression')
// const { getCurrentLambdaInvoke } = require(process.env.NODE_ENV === 'test' ? '../..' : 'aws-serverless-express')
const { getCurrentLambdaInvoke } = require('aws-serverless-express')
const app = express()
const router = express.Router()
Expand Down
1 change: 1 addition & 0 deletions examples/basic-starter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,6 @@ To update this example against the latest local changes to aws-serverless-expres
```bash
npm pack ../..
npm install ./aws-serverless-express-3.3.5.tgz
npm install --prefix ./src ./
npm run local
```
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const express = require('express')
const bodyParser = require('body-parser')
const cors = require('cors')
const compression = require('compression')
const { getCurrentLambdaInvoke } = require(process.env.NODE_ENV === 'test' ? '../../index' : 'aws-serverless-express')
const { getCurrentLambdaInvoke } = require(process.env.NODE_ENV === 'test' ? '../../../index' : 'aws-serverless-express')
const app = express()
const router = express.Router()

Expand Down
File renamed without changes.
File renamed without changes
File renamed without changes.

0 comments on commit 2290128

Please sign in to comment.