How to use the @atomist/sdm/api/goal/Goals.Goals function in @atomist/sdm

To help you get started, we’ve selected a few @atomist/sdm examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github atomist / sdm-core / src / pack / well-known-goals / httpServiceGoals.ts View on Github external
PushReactionGoal,
    BuildGoal,
    ArtifactGoal,
    StagingDeploymentGoal,
    StagingEndpointGoal,
    StagingVerifiedGoal,
    ProductionDeploymentGoal,
    ProductionEndpointGoal);

export const LocalDeploymentGoals = new Goals(
    "Local Deployment",
    PushReactionGoal,
    LocalDeploymentGoal,
    LocalEndpointGoal);

export const UndeployEverywhereGoals = new Goals(
    "Undeploy all environments",
    LocalUndeploymentGoal,
    StagingUndeploymentGoal,
    ProductionUndeploymentGoal,
    DeleteAfterUndeploysGoal,
);

export const RepositoryDeletionGoals = new Goals(
    "Offer to delete repository",
    DeleteRepositoryGoal,
);
github atomist / sdm-core / src / pack / node / npmGoals.ts View on Github external
displayName: "deploy to Prod",
    completedDescription: "Deployed to Prod",
    failedDescription: "Prod deployment failure",
}, StagingDockerDeploymentGoal);

export const NpmDeployGoals = new Goals(
    "Node.js Deploy",
    ReviewGoal,
    AutofixGoal,
    BuildGoal,
    ArtifactGoal,
    StagingDeploymentGoal,
    StagingEndpointGoal,
);

export const NpmBuildGoals = new Goals(
    "Node.js Build",
    VersionGoal,
    ReviewGoal,
    AutofixGoal,
    BuildGoal,
    NpmPublishGoal,
    TagGoal,
);

export const NpmDockerGoals = new Goals(
    "Node.js Docker Build",
    VersionGoal,
    ReviewGoal,
    AutofixGoal,
    BuildGoal,
    NpmPublishGoal,
github atomist / sdm-core / src / pack / well-known-goals / httpServiceGoals.ts View on Github external
export const LocalDeploymentGoals = new Goals(
    "Local Deployment",
    PushReactionGoal,
    LocalDeploymentGoal,
    LocalEndpointGoal);

export const UndeployEverywhereGoals = new Goals(
    "Undeploy all environments",
    LocalUndeploymentGoal,
    StagingUndeploymentGoal,
    ProductionUndeploymentGoal,
    DeleteAfterUndeploysGoal,
);

export const RepositoryDeletionGoals = new Goals(
    "Offer to delete repository",
    DeleteRepositoryGoal,
);
github atomist / sdm-core / src / pack / node / npmGoals.ts View on Github external
NpmPublishGoal,
    TagGoal,
);

export const NpmDockerGoals = new Goals(
    "Node.js Docker Build",
    VersionGoal,
    ReviewGoal,
    AutofixGoal,
    BuildGoal,
    NpmPublishGoal,
    DockerBuildGoal,
    TagGoal,
);

export const NpmKubernetesDeployGoals = new Goals(
    "Node.js Kubernetes Build and Deploy",
    VersionGoal,
    ReviewGoal,
    AutofixGoal,
    BuildGoal,
    NpmPublishGoal,
    DockerBuildGoal,
    TagGoal,
    StagingDockerDeploymentGoal,
    ProductionDockerDeploymentGoal,
);
github atomist / sdm-core / src / pack / node / npmGoals.ts View on Github external
ArtifactGoal,
    StagingDeploymentGoal,
    StagingEndpointGoal,
);

export const NpmBuildGoals = new Goals(
    "Node.js Build",
    VersionGoal,
    ReviewGoal,
    AutofixGoal,
    BuildGoal,
    NpmPublishGoal,
    TagGoal,
);

export const NpmDockerGoals = new Goals(
    "Node.js Docker Build",
    VersionGoal,
    ReviewGoal,
    AutofixGoal,
    BuildGoal,
    NpmPublishGoal,
    DockerBuildGoal,
    TagGoal,
);

export const NpmKubernetesDeployGoals = new Goals(
    "Node.js Kubernetes Build and Deploy",
    VersionGoal,
    ReviewGoal,
    AutofixGoal,
    BuildGoal,
github atomist / sdm-core / src / pack / well-known-goals / libraryGoals.ts View on Github external
* 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.
 */

import { Goals } from "@atomist/sdm/api/goal/Goals";
import {
    CodeInspectionGoal,
    JustBuildGoal,
} from "@atomist/sdm/api/machine/wellKnownGoals";

/**
 * Flow to build a library
 * @type {Goals}
 */
export const LibraryGoals = new Goals(
    "Library",
    CodeInspectionGoal,
    JustBuildGoal,
);
github atomist / sdm-core / src / pack / well-known-goals / commonGoals.ts View on Github external
export const LocalEndpointGoal = new GoalWithPrecondition({
    uniqueName: "FindLocalEndpoint",
    environment: IndependentOfEnvironment,
    orderedName: "2-endpoint",
    displayName: "locate local service endpoint",
    completedDescription: "Here is the local service endpoint",

}, LocalDeploymentGoal);

/**
 * Special Goals object to be returned if changes are immaterial.
 * The identity of this object is important.
 * @type {Goals}
 * @ModuleExport
 */
export const NoGoals = new Goals(
    "No action needed",
    NoGoal);
github atomist / sdm-core / src / pack / well-known-goals / httpServiceGoals.ts View on Github external
*/
export const HttpServiceGoals = new Goals(
    "HTTP Service",
    FingerprintGoal,
    AutofixGoal,
    CodeInspectionGoal,
    PushReactionGoal,
    BuildGoal,
    ArtifactGoal,
    StagingDeploymentGoal,
    StagingEndpointGoal,
    StagingVerifiedGoal,
    ProductionDeploymentGoal,
    ProductionEndpointGoal);

export const LocalDeploymentGoals = new Goals(
    "Local Deployment",
    PushReactionGoal,
    LocalDeploymentGoal,
    LocalEndpointGoal);

export const UndeployEverywhereGoals = new Goals(
    "Undeploy all environments",
    LocalUndeploymentGoal,
    StagingUndeploymentGoal,
    ProductionUndeploymentGoal,
    DeleteAfterUndeploysGoal,
);

export const RepositoryDeletionGoals = new Goals(
    "Offer to delete repository",
    DeleteRepositoryGoal,
github atomist / sdm-core / src / pack / node / npmGoals.ts View on Github external
completedDescription: "Deployed to Test",
    failedDescription: "Test deployment failure",
    waitingForApprovalDescription: "Promote to Prod",
    approvalRequired: true,
}, DockerBuildGoal);

export const ProductionDockerDeploymentGoal = new GoalWithPrecondition({
    uniqueName: "DeployToProduction",
    environment: ProductionEnvironment,
    orderedName: "3-prod-deploy",
    displayName: "deploy to Prod",
    completedDescription: "Deployed to Prod",
    failedDescription: "Prod deployment failure",
}, StagingDockerDeploymentGoal);

export const NpmDeployGoals = new Goals(
    "Node.js Deploy",
    ReviewGoal,
    AutofixGoal,
    BuildGoal,
    ArtifactGoal,
    StagingDeploymentGoal,
    StagingEndpointGoal,
);

export const NpmBuildGoals = new Goals(
    "Node.js Build",
    VersionGoal,
    ReviewGoal,
    AutofixGoal,
    BuildGoal,
    NpmPublishGoal,
github atomist / sdm-core / src / pack / well-known-goals / httpServiceGoals.ts View on Github external
StagingVerifiedGoal,
} from "@atomist/sdm/api/machine/wellKnownGoals";
import {
    LocalEndpointGoal,
    LocalUndeploymentGoal,
    StagingUndeploymentGoal,
} from "./commonGoals";

/**
 * Goals for an Http service, mirroring a typical flow through
 * staging to production.
 * Goal sets are normally user defined, so this is largely
 * an illustration.
 * @type {Goals}
 */
export const HttpServiceGoals = new Goals(
    "HTTP Service",
    FingerprintGoal,
    AutofixGoal,
    CodeInspectionGoal,
    PushReactionGoal,
    BuildGoal,
    ArtifactGoal,
    StagingDeploymentGoal,
    StagingEndpointGoal,
    StagingVerifiedGoal,
    ProductionDeploymentGoal,
    ProductionEndpointGoal);

export const LocalDeploymentGoals = new Goals(
    "Local Deployment",
    PushReactionGoal,