UNPKG

@atomist/sdm-pack-node

Version:

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

40 lines 1.73 kB
"use strict"; /* * Copyright © 2019 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"); /** * Corresponding parameter definitions */ exports.NodeProjectCreationParametersDefinition = { appName: { displayName: "App name", description: "Application name", pattern: /^(@?[A-Za-z][-A-Za-z0-9_]*)$/, // tslint:disable:no-invalid-template-strings validInput: "a valid package.json application name, which starts with a lower-case letter and contains only " + " alphanumeric, -, and _ characters, or `${projectName}` to use the project name", // tslint:enable:no-invalid-template-strings minLength: 1, maxLength: 50, required: true, order: 51, }, version: Object.assign({}, sdm_1.SemVerRegExp, { required: false, order: 52, defaultValue: "0.1.0" }), screenName: { declarationType: sdm_1.DeclarationType.Mapped, uri: automation_client_1.MappedParameters.SlackUserName }, }; //# sourceMappingURL=NodeProjectCreationParameters.js.map