UNPKG

@atomist/sdm-pack-node

Version:

Extension pack for an Atomist SDM to work with Node.js projects

41 lines 1.93 kB
"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. */ Object.defineProperty(exports, "__esModule", { value: true }); const automation_client_1 = require("@atomist/automation-client"); const sdm_1 = require("@atomist/sdm"); const updatePackageJsonIdentification_1 = require("../transform/updatePackageJsonIdentification"); const updateReadmeTitle_1 = require("../transform/updateReadmeTitle"); const NodeProjectCreationParameters_1 = require("./NodeProjectCreationParameters"); /** * This shows how to add a Node generator to your SDM. * We recommend that you add your own, with a startingPoint of your choice. * @param {SoftwareDeliveryMachine} sdm * @param options config options */ exports.SampleNodeGenerator = Object.assign({}, sdm_1.metadata("SampleNodeGenerator"), { configure: (sdm) => { sdm.addGeneratorCommand({ name: "typescript-express-generator", startingPoint: new automation_client_1.GitHubRepoRef("spring-team", "typescript-express-seed"), intent: "create node", parameters: NodeProjectCreationParameters_1.NodeProjectCreationParametersDefinition, transform: [ updatePackageJsonIdentification_1.UpdatePackageJsonIdentification, updateReadmeTitle_1.UpdateReadmeTitle ], }); } }); //# sourceMappingURL=SampleNodeGenerator.js.map