Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@atomist/atomist-sdm

Package Overview
Dependencies
Maintainers
1
Versions
1080
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@atomist/atomist-sdm - npm Package Compare versions

Comparing version 0.0.1-20180509162350 to 0.0.1-20180509220948

machine/release.d.ts

4

git-info.json
{
"sha": "9bef43d45c7958a26733190fd76e545dec07a39d",
"branch": "9bef43d45c7958a26733190fd76e545dec07a39d",
"sha": "d8fc0e6aad67559af665e94df00df78eca267426",
"branch": "d8fc0e6aad67559af665e94df00df78eca267426",
"repository": "git@github.com:atomist/atomist-sdm.git"
}

@@ -5,2 +5,4 @@ import { Goal, Goals, GoalWithPrecondition } from "@atomist/sdm";

export declare const ProductionDeploymentGoal: Goal;
export declare const ReleaseNpmGoal: Goal;
export declare const ReleaseDockerGoal: Goal;
export declare const CheckGoals: Goals;

@@ -7,0 +9,0 @@ export declare const BuildGoals: Goals;

@@ -49,2 +49,22 @@ "use strict";

});
exports.ReleaseNpmGoal = new sdm_1.Goal({
uniqueName: "ReleaseNpm",
environment: sdm_1.ProductionEnvironment,
orderedName: "3-release",
displayName: "release NPM artifacts",
workingDescription: "Releasing...",
completedDescription: "Released",
failedDescription: "Release failure",
isolated: true,
});
exports.ReleaseDockerGoal = new sdm_1.Goal({
uniqueName: "ReleaseDocker",
environment: sdm_1.ProductionEnvironment,
orderedName: "3-release",
displayName: "release Docker image",
workingDescription: "Releasing...",
completedDescription: "Released",
failedDescription: "Release failure",
isolated: true,
});
// GOALSET Definition

@@ -54,9 +74,9 @@ // Just running review and autofix

// Just running the build and publish
exports.BuildGoals = new sdm_1.Goals("Build", commonGoals_1.VersionGoal, sdm_1.ReviewGoal, sdm_1.AutofixGoal, sdm_1.BuildGoal, exports.PublishGoal, commonGoals_1.TagGoal);
exports.BuildGoals = new sdm_1.Goals("Build", ...exports.CheckGoals.goals, sdm_1.BuildGoal, new sdm_1.GoalWithPrecondition(Object.assign({}, exports.PublishGoal.definition, { approvalRequired: true }), ...exports.PublishGoal.dependsOn), commonGoals_1.TagGoal, new sdm_1.GoalWithPrecondition(exports.ReleaseNpmGoal.definition, exports.PublishGoal));
// Build including docker build
exports.DockerGoals = new sdm_1.Goals("Docker Build", commonGoals_1.VersionGoal, sdm_1.ReviewGoal, sdm_1.AutofixGoal, sdm_1.BuildGoal, exports.PublishGoal, commonGoals_1.DockerBuildGoal, commonGoals_1.TagGoal);
exports.DockerGoals = new sdm_1.Goals("Docker Build", ...exports.BuildGoals.goals, new sdm_1.GoalWithPrecondition(Object.assign({}, commonGoals_1.DockerBuildGoal.definition, { approvalRequired: true }), ...commonGoals_1.DockerBuildGoal.dependsOn), new sdm_1.GoalWithPrecondition(exports.ReleaseDockerGoal.definition, commonGoals_1.DockerBuildGoal));
// Docker build and testing and production kubernetes deploy
exports.KubernetesDeployGoals = new sdm_1.Goals("Deploy", commonGoals_1.VersionGoal, sdm_1.ReviewGoal, sdm_1.AutofixGoal, sdm_1.BuildGoal, exports.PublishGoal, commonGoals_1.DockerBuildGoal, commonGoals_1.TagGoal, exports.StagingDeploymentGoal, new sdm_1.GoalWithPrecondition(exports.ProductionDeploymentGoal.definition, exports.StagingDeploymentGoal));
exports.KubernetesDeployGoals = new sdm_1.Goals("Deploy", ...exports.CheckGoals.goals, sdm_1.BuildGoal, exports.PublishGoal, commonGoals_1.DockerBuildGoal, commonGoals_1.TagGoal, exports.StagingDeploymentGoal, new sdm_1.GoalWithPrecondition(exports.ProductionDeploymentGoal.definition, exports.StagingDeploymentGoal), new sdm_1.GoalWithPrecondition(exports.ReleaseNpmGoal.definition, exports.StagingDeploymentGoal), new sdm_1.GoalWithPrecondition(exports.ReleaseDockerGoal.definition, exports.StagingDeploymentGoal));
// Docker build and testing and production kubernetes deploy
exports.SimplifiedKubernetesDeployGoals = new sdm_1.Goals("Simplified Deploy", commonGoals_1.VersionGoal, sdm_1.ReviewGoal, sdm_1.AutofixGoal, sdm_1.BuildGoal, exports.PublishGoal, commonGoals_1.DockerBuildGoal, commonGoals_1.TagGoal, new sdm_1.GoalWithPrecondition(exports.ProductionDeploymentGoal.definition, commonGoals_1.DockerBuildGoal));
exports.SimplifiedKubernetesDeployGoals = new sdm_1.Goals("Simplified Deploy", ...exports.CheckGoals.goals, sdm_1.BuildGoal, exports.PublishGoal, commonGoals_1.DockerBuildGoal, commonGoals_1.TagGoal, new sdm_1.GoalWithPrecondition(Object.assign({}, exports.ProductionDeploymentGoal.definition, { approvalRequired: true }), commonGoals_1.DockerBuildGoal), new sdm_1.GoalWithPrecondition(exports.ReleaseNpmGoal.definition, exports.ProductionDeploymentGoal), new sdm_1.GoalWithPrecondition(exports.ReleaseDockerGoal.definition, exports.ProductionDeploymentGoal));
exports.LibraryPublished = new sdm_1.Goal({

@@ -69,3 +89,3 @@ uniqueName: "LibraryPublished",

});
exports.LeinDockerGoals = new sdm_1.Goals("Lein Docker Build", commonGoals_1.VersionGoal, sdm_1.ReviewGoal, sdm_1.AutofixGoal, sdm_1.BuildGoal, commonGoals_1.DockerBuildGoal, commonGoals_1.TagGoal, new sdm_1.GoalWithPrecondition(exports.LibraryPublished.definition, commonGoals_1.TagGoal));
exports.LeinDockerGoals = new sdm_1.Goals("Lein Docker Build", ...exports.CheckGoals.goals, sdm_1.BuildGoal, commonGoals_1.DockerBuildGoal, commonGoals_1.TagGoal, new sdm_1.GoalWithPrecondition(exports.LibraryPublished.definition, commonGoals_1.TagGoal));
//# sourceMappingURL=goals.js.map

@@ -25,5 +25,5 @@ "use strict";

const SetDeployEnablement_1 = require("@atomist/sdm/handlers/commands/SetDeployEnablement");
const isSimplifiedDeployment_1 = require("../support/isSimplifiedDeployment");
const materialChangeToClojureRepo_1 = require("../support/materialChangeToClojureRepo");
const materialChangeToNodeRepo_1 = require("../support/materialChangeToNodeRepo");
const isSimplifiedDeployment_1 = require("../support/isSimplifiedDeployment");
const goals_1 = require("./goals");

@@ -30,0 +30,0 @@ const leinSupport_1 = require("./leinSupport");

"use strict";
/*
* Copyright © 2018 Atomist, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

@@ -28,2 +43,3 @@ return new (P || (P = Promise))(function (resolve, reject) {

const goals_1 = require("./goals");
const release_1 = require("./release");
function addNodeSupport(sdm, configuration) {

@@ -38,3 +54,5 @@ const hasPackageLock = sdm_1.hasFile("package-lock.json");

.addGoalImplementation("nodeDockerBuild", commonGoals_1.DockerBuildGoal, executeDockerBuild_1.executeDockerBuild(sdm.opts.projectLoader, executeDockerBuild_1.DefaultDockerImageNameCreator, npmBuilder_1.NpmPreparations, Object.assign({}, configuration.sdm.docker.hub, { dockerfileFinder: () => __awaiter(this, void 0, void 0, function* () { return "Dockerfile"; }) })), { pushTest: nodePushTests_1.IsNode })
.addGoalImplementation("nodePublish", goals_1.PublishGoal, executePublish_1.executePublish(sdm.opts.projectLoader, nodeProjectIdentifier_1.NodeProjectIdentifier, npmBuilder_1.NpmPreparations, Object.assign({}, configuration.sdm.npm)), { pushTest: nodePushTests_1.IsNode });
.addGoalImplementation("nodePublish", goals_1.PublishGoal, executePublish_1.executePublish(sdm.opts.projectLoader, nodeProjectIdentifier_1.NodeProjectIdentifier, npmBuilder_1.NpmPreparations, Object.assign({}, configuration.sdm.npm)), { pushTest: nodePushTests_1.IsNode })
.addGoalImplementation("nodeNpmRelease", goals_1.ReleaseNpmGoal, release_1.executeReleaseNpm(sdm.opts.projectLoader, nodeProjectIdentifier_1.NodeProjectIdentifier, release_1.NpmReleasePreparations, Object.assign({}, configuration.sdm.npm)), { pushTest: nodePushTests_1.IsNode })
.addGoalImplementation("nodeDockerRelease", goals_1.ReleaseDockerGoal, release_1.executeReleaseDocker(sdm.opts.projectLoader, nodeProjectIdentifier_1.NodeProjectIdentifier, release_1.DockerReleasePreparations, Object.assign({}, configuration.sdm.docker.hub)), { pushTest: sdm_1.allSatisfied(nodePushTests_1.IsNode, sdm_1.hasFile("Dockerfile")) });
sdm.goalFulfillmentMapper

@@ -41,0 +59,0 @@ .addSideEffect({

{
"name": "@atomist/atomist-sdm",
"version": "0.0.1-20180509162350",
"version": "0.0.1-20180509220948",
"description": "an Atomist SDM to deliver automation client projects",

@@ -22,11 +22,14 @@ "author": "Atomist, Inc.",

"@atomist/automation-client": "https://r.atomist.com/SkDUQkI0Tz",
"@atomist/clj-editors": "0.0.18",
"@atomist/sdm": "https://atomist.jfrog.io/atomist/api/npm/npm-dev-local/@atomist/sdm/-/@atomist/sdm-0.0.1-no-env-vars.20180507233656.tgz",
"@atomist/slack-messages": "^0.12.1",
"@atomist/clj-editors": "0.0.18",
"fs-extra": "^6.0.0",
"lodash": "^4.17.10",
"logzio-nodejs": "^0.4.10",
"serialize-error": "^2.1.0",
"uuid": "^3.2.1",
"winston-logzio": "^1.0.6"
},
"devDependencies": {
"@types/fs-extra": "^5.0.2",
"@types/lodash": "^4.14.108",

@@ -36,2 +39,3 @@ "@types/mocha": "^2.2.48",

"@types/power-assert": "^1.4.29",
"@types/uuid": "^3.4.3",
"apollo-codegen": "^0.19.1",

@@ -38,0 +42,0 @@ "espower-typescript": "^8.1.3",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc