UNPKG

@atomist/org-visualizer

Version:

Organization Visualizer using Atomist project scanning

94 lines 4.72 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. */ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; Object.defineProperty(exports, "__esModule", { value: true }); const clojure_1 = require("@atomist/sdm-pack-clojure/lib/fingerprints/clojure"); const sdm_pack_docker_1 = require("@atomist/sdm-pack-docker"); const sdm_pack_fingerprints_1 = require("@atomist/sdm-pack-fingerprints"); const codeMetrics_1 = require("../aspect/common/codeMetrics"); const codeOwnership_1 = require("../aspect/common/codeOwnership"); const fileCount_1 = require("../aspect/common/fileCount"); const stackAspect_1 = require("../aspect/common/stackAspect"); const codeOfConduct_1 = require("../aspect/community/codeOfConduct"); const license_1 = require("../aspect/community/license"); const conditionalize_1 = require("../aspect/compose/conditionalize"); const branchCount_1 = require("../aspect/git/branchCount"); const gitActivity_1 = require("../aspect/git/gitActivity"); const idealFromNpm_1 = require("../aspect/node/idealFromNpm"); const TsLintAspect_1 = require("../aspect/node/TsLintAspect"); const TypeScriptVersion_1 = require("../aspect/node/TypeScriptVersion"); const pythonDependencies_1 = require("../aspect/python/pythonDependencies"); const exposedSecrets_1 = require("../aspect/secret/exposedSecrets"); const directMavenDependencies_1 = require("../aspect/spring/directMavenDependencies"); const springBootStarter_1 = require("../aspect/spring/springBootStarter"); const springBootVersion_1 = require("../aspect/spring/springBootVersion"); const travisAspects_1 = require("../aspect/travis/travisAspects"); /** * The aspects anaged by this SDM. * Modify this list to customize with your own aspects. */ exports.Aspects = [ sdm_pack_docker_1.DockerFrom, sdm_pack_docker_1.DockerfilePath, sdm_pack_docker_1.DockerPorts, license_1.License, springBootStarter_1.SpringBootStarter, TypeScriptVersion_1.TypeScriptVersion, new codeOwnership_1.CodeOwnership(), Object.assign({}, sdm_pack_fingerprints_1.NpmDeps, { suggestedIdeals: (type, name) => idealFromNpm_1.idealsFromNpm(name) }), codeOfConduct_1.CodeOfConduct, exposedSecrets_1.ExposedSecrets, new TsLintAspect_1.TsLintPropertyAspect(), travisAspects_1.TravisScriptsAspect, fileCount_1.fileCount, branchCount_1.branchCount, gitActivity_1.GitRecency, // This is expensive as it requires deeper cloning gitActivity_1.gitActiveCommitters(50), // This is also expensive codeMetrics_1.CodeMetricsAspect, stackAspect_1.StackAspect, stackAspect_1.CiAspect, stackAspect_1.JavaBuild, conditionalize_1.conditionalize(sdm_pack_fingerprints_1.filesAspect({ name: "node-gitignore", displayName: "Node git ignore", type: "node-gitignore", toDisplayableFingerprint: fp => fp.sha, canonicalize: c => c, }, ".gitignore"), (p) => __awaiter(this, void 0, void 0, function* () { return p.hasFile("package.json"); })), conditionalize_1.conditionalize(sdm_pack_fingerprints_1.filesAspect({ name: "spring-gitignore", displayName: "git ignore", type: "spring-gitignore", toDisplayableFingerprint: fp => fp.sha, canonicalize: c => c, }, ".gitignore"), (p) => __awaiter(this, void 0, void 0, function* () { return p.hasFile("pom.xml"); })), springBootVersion_1.SpringBootVersion, // allMavenDependenciesAspect, // This is expensive directMavenDependencies_1.DirectMavenDependencies, pythonDependencies_1.PythonDependencies, clojure_1.LeinDeps, ]; //# sourceMappingURL=aspects.js.map