Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

Commit

Permalink
deps update
Browse files Browse the repository at this point in the history
* gulp is now a peer dependancy
* upgrade to typescript 2.9.2
* get rid of the use of the deprecated gutil package
  • Loading branch information
stevejhiggs committed Jun 15, 2018
1 parent 3416a4f commit 56681d1
Show file tree
Hide file tree
Showing 4 changed files with 673 additions and 1,094 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 2.0.0
* gulp is now a peer dependancy
* upgrade to typescript 2.9.2
* get rid of the use of the deprecated gutil package

## 1.1.0

* templates upgraded to target node 8.10
9 changes: 5 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ const copy = require('copy');
const install = require('gulp-install');
const zip = require('gulp-zip');
const del = require('del');
const gutil = require('gulp-util');
const log = require('fancy-log');
const tsPipeline = require('gulp-webpack-typescript-pipeline');
const AWS = require('aws-sdk');
const localServer = require('./localServer');
const awsLambda = require('node-aws-lambda');
const colors = require('ansi-colors');

const handleError = (msg) => {
gutil.log(gutil.colors.red('ERROR!', msg));
log(colors.red('ERROR!', msg));
process.exit(1);
};

Expand Down Expand Up @@ -86,9 +87,9 @@ const registerBuildGulpTasks = (gulp, lambdaDir) => {
lambda.getFunction({ FunctionName: lambdaName }, (err, data) => {
if (err) {
if (err.statusCode === 404) {
gutil.log(`Unable to find lambda function ${lambdaName}. Verify the lambda function name and AWS region are correct.`);
log(`Unable to find lambda function ${lambdaName}. Verify the lambda function name and AWS region are correct.`);
} else {
gutil.log('AWS API request failed. Check your AWS credentials and permissions.');
log('AWS API request failed. Check your AWS credentials and permissions.');
}
}
console.log(data);
Expand Down
23 changes: 13 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aws-lambda-typescript",
"version": "1.1.1",
"version": "2.0.0",
"description": "simple build pipeline for creating lambda functions in typescript",
"main": "index.js",
"scripts": {
Expand All @@ -22,22 +22,25 @@
},
"homepage": "https://github.com/stevejhiggs/aws-lambda-typescript#readme",
"dependencies": {
"@types/aws-lambda": "8.10.3",
"@types/aws-lambda": "8.10.6",
"@types/node": "^10.0.0",
"aws-sdk": "^2.229.1",
"body-parser": "^1.18.2",
"copy": "^0.3.1",
"ansi-colors": "^2.0.1",
"aws-sdk": "^2.258.1",
"body-parser": "^1.18.3",
"copy": "^0.3.2",
"del": "^3.0.0",
"express": "^4.16.3",
"gulp": "^3.9.1",
"fancy-log": "^1.3.2",
"gulp-install": "^1.1.0",
"gulp-util": "^3.0.8",
"gulp-webpack-typescript-pipeline": "^10.0.0",
"gulp-webpack-typescript-pipeline": "^11.0.0",
"gulp-zip": "^4.1.0",
"node-aws-lambda": "^0.1.8",
"pino-http": "^3.2.1",
"pino-http": "^3.2.2",
"run-sequence": "^2.2.1",
"ts-node": "^6.0.1"
"ts-node": "^6.1.1"
},
"peerDependencies": {
"gulp": "^3.9.1"
},
"devDependencies": {
"eslint-config-airbnb": "^16.1.0"
Expand Down
Loading

0 comments on commit 56681d1

Please sign in to comment.