UNPKG

@atomist/sdm

Version:

Atomist Software Delivery Machine SDK

42 lines 1.99 kB
"use strict"; /* * Copyright © 2020 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 }); exports.NodeProjectCreationParametersDefinition = void 0; const decorators_1 = require("@atomist/automation-client/lib/decorators"); const commonValidationPatterns_1 = require("../../../api/command/support/commonValidationPatterns"); const ParametersDefinition_1 = require("../../../api/registration/ParametersDefinition"); /** * 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(Object.assign({}, commonValidationPatterns_1.SemVerRegExp), { required: false, order: 52, defaultValue: "0.1.0" }), screenName: { declarationType: ParametersDefinition_1.DeclarationType.Mapped, uri: decorators_1.MappedParameters.SlackUserName }, }; //# sourceMappingURL=NodeProjectCreationParameters.js.map