serverless-tasks-handel-extension
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -39,1 +39,2 @@ "use strict"; | ||
exports.default = awsWrapper; | ||
//# sourceMappingURL=aws-wrapper.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=config-types.js.map |
@@ -45,1 +45,2 @@ "use strict"; | ||
exports.createDefaultClusterIfNotExists = createDefaultClusterIfNotExists; | ||
//# sourceMappingURL=ecs-calls.js.map |
@@ -24,1 +24,2 @@ "use strict"; | ||
exports.loadHandelExtension = loadHandelExtension; | ||
//# sourceMappingURL=extension.js.map |
@@ -111,1 +111,2 @@ "use strict"; | ||
exports.handler = handler; | ||
//# sourceMappingURL=index.js.map |
@@ -1,8 +0,9 @@ | ||
import { PreDeployContext, ServiceConfig, ServiceContext, ServiceDeployer, UnDeployContext, UnPreDeployContext } from 'handel-extension-api'; | ||
import { DeployOutputType, PreDeployContext, ServiceConfig, ServiceContext, ServiceDeployer, UnDeployContext, UnPreDeployContext } from 'handel-extension-api'; | ||
import { DeployContext } from 'handel-extension-api'; | ||
import { ScheduledTasksServiceConfig } from './config-types'; | ||
export declare class ScheduledTasksService implements ServiceDeployer { | ||
readonly consumedDeployOutputTypes: string[]; | ||
readonly consumedDeployOutputTypes: DeployOutputType[]; | ||
readonly providedEventType: null; | ||
readonly producedDeployOutputTypes: never[]; | ||
readonly producedEventsSupportedServices: never[]; | ||
readonly producedEventsSupportedTypes: never[]; | ||
readonly supportsTagging: boolean; | ||
@@ -9,0 +10,0 @@ check(serviceContext: ServiceContext<ScheduledTasksServiceConfig>, dependenciesServiceContexts: Array<ServiceContext<ServiceConfig>>): string[]; |
@@ -12,2 +12,3 @@ "use strict"; | ||
const handel_extension_api_1 = require("handel-extension-api"); | ||
const handel_extension_api_2 = require("handel-extension-api"); | ||
const handel_extension_support_1 = require("handel-extension-support"); | ||
@@ -19,8 +20,9 @@ const ecsCalls = require("./ecs-calls"); | ||
this.consumedDeployOutputTypes = [ | ||
'environmentVariables', | ||
'policies', | ||
'securityGroups' | ||
handel_extension_api_1.DeployOutputType.EnvironmentVariables, | ||
handel_extension_api_1.DeployOutputType.Policies, | ||
handel_extension_api_1.DeployOutputType.SecurityGroups | ||
]; | ||
this.providedEventType = null; | ||
this.producedDeployOutputTypes = []; | ||
this.producedEventsSupportedServices = []; | ||
this.producedEventsSupportedTypes = []; | ||
this.supportsTagging = true; | ||
@@ -50,6 +52,6 @@ } | ||
const compiledTemplate = yield this.getCompiledTemplate(ownServiceContext.resourceName(), ownServiceContext, ownPreDeployContext, dependenciesDeployContexts, s3ArtifactInfo, stackTags); | ||
const deployedStack = yield handel_extension_support_1.deployPhase.deployCloudFormationStack(stackName, compiledTemplate, [], true, SERVICE_NAME, 30, stackTags); | ||
const deployedStack = yield handel_extension_support_1.deployPhase.deployCloudFormationStack(ownServiceContext, stackName, compiledTemplate, [], true, 30, stackTags); | ||
// tslint:disable-next-line:no-console | ||
console.log(`${SERVICE_NAME} - Finished Scheduled Tasks Service '${stackName}'`); | ||
return new handel_extension_api_1.DeployContext(ownServiceContext); | ||
return new handel_extension_api_2.DeployContext(ownServiceContext); | ||
}); | ||
@@ -111,1 +113,2 @@ } | ||
exports.ScheduledTasksService = ScheduledTasksService; | ||
//# sourceMappingURL=scheduled-tasks-service.js.map |
{ | ||
"name": "serverless-tasks-handel-extension", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Handel Extension that provides serverless scheduled tasks using ECS Fargate", | ||
"main": "dist/extension.js", | ||
"scripts": { | ||
"build": "gulp build", | ||
"test": "gulp build && mocha -r ts-node/register 'test/**/*.ts'" | ||
"clean": "echo Cleaning && ./node_modules/.bin/del ./dist/ && echo Finished clean", | ||
"compile": "echo Compiling && tsc && echo Finished compile", | ||
"copyNonTsFiles": "./node_modules/.bin/cpy '**/*' '!**/*.ts' '../dist/' --cwd=src --parents", | ||
"build": "npm run clean && npm run compile && npm run copyNonTsFiles", | ||
"test": "npm run build && mocha -r ts-node/register 'test/**/*.ts'" | ||
}, | ||
@@ -17,4 +20,4 @@ "engines": { | ||
"aws-sdk": "^2.188.0", | ||
"handel-extension-api": "^0.26.8", | ||
"handel-extension-support": "^0.26.8" | ||
"handel-extension-api": "^0.31.1", | ||
"handel-extension-support": "^0.31.1" | ||
}, | ||
@@ -27,7 +30,5 @@ "devDependencies": { | ||
"chai": "^4.1.2", | ||
"fs-extra": "^5.0.0", | ||
"gulp": "^3.9.1", | ||
"gulp-typescript": "^3.2.3", | ||
"merge-stream": "^1.0.1", | ||
"run-sequence": "^2.2.0", | ||
"cpy-cli": "^2.0.0", | ||
"del-cli": "^1.1.0", | ||
"make-dir-cli": "^1.0.0", | ||
"mocha": "^5.0.5", | ||
@@ -34,0 +35,0 @@ "sinon": "^4.5.0", |
@@ -20,2 +20,3 @@ /* | ||
AccountConfig, | ||
DeployOutputType, | ||
PreDeployContext, | ||
@@ -45,8 +46,9 @@ ServiceConfig, | ||
public readonly consumedDeployOutputTypes = [ | ||
'environmentVariables', | ||
'policies', | ||
'securityGroups' | ||
DeployOutputType.EnvironmentVariables, | ||
DeployOutputType.Policies, | ||
DeployOutputType.SecurityGroups | ||
]; | ||
public readonly providedEventType = null; | ||
public readonly producedDeployOutputTypes = []; | ||
public readonly producedEventsSupportedServices = []; | ||
public readonly producedEventsSupportedTypes = []; | ||
@@ -79,3 +81,3 @@ public readonly supportsTagging = true; | ||
const compiledTemplate = await this.getCompiledTemplate(ownServiceContext.resourceName(), ownServiceContext, ownPreDeployContext, dependenciesDeployContexts, s3ArtifactInfo, stackTags); | ||
const deployedStack = await deployPhase.deployCloudFormationStack(stackName, compiledTemplate, [], true, SERVICE_NAME, 30, stackTags); | ||
const deployedStack = await deployPhase.deployCloudFormationStack(ownServiceContext, stackName, compiledTemplate, [], true, 30, stackTags); | ||
@@ -82,0 +84,0 @@ // tslint:disable-next-line:no-console |
63830
13
38
913
+ Addedasync@1.0.0(transitive)
+ Addedhandel-extension-api@0.31.7(transitive)
+ Addedhandel-extension-support@0.31.7(transitive)
+ Addedwinston@2.3.1(transitive)
- Removedhandel-extension-api@0.26.15(transitive)
- Removedhandel-extension-support@0.26.15(transitive)
- Removedwinston@2.4.7(transitive)
Updatedhandel-extension-api@^0.31.1