From 4db80d69d7aeaa13c350e128a18b8ba36cd0a41a Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Thu, 5 Aug 2021 15:38:24 -0700 Subject: [PATCH] ci: stop publishing snapshots to angular/dev-infra-private-builds (#43059) We no longer publish to angular/dev-infra-private-builds as the dev-infra content has been moved to angular/dev-infra. PR Close #43059 --- scripts/build/build-packages-dist.js | 4 --- scripts/build/dev-infra-builder.js | 48 ---------------------------- 2 files changed, 52 deletions(-) delete mode 100644 scripts/build/dev-infra-builder.js diff --git a/scripts/build/build-packages-dist.js b/scripts/build/build-packages-dist.js index 428f61c7e1..c0f7c641cc 100644 --- a/scripts/build/build-packages-dist.js +++ b/scripts/build/build-packages-dist.js @@ -10,7 +10,6 @@ 'use strict'; const {buildAngularInMemoryWebApiPackage} = require('./angular-in-memory-web-api'); -const {buildDevInfraPackage} = require('./dev-infra-builder'); const {buildTargetPackages} = require('./package-builder'); const {buildZoneJsPackage} = require('./zone-js-builder'); @@ -18,9 +17,6 @@ const {buildZoneJsPackage} = require('./zone-js-builder'); // Build the legacy (view engine) npm packages into `dist/packages-dist/`. buildTargetPackages('dist/packages-dist', false, 'Production'); -// Build the `angular-dev-infra` npm package into `dist/packages-dist/`. -buildDevInfraPackage('dist/packages-dist'); - // Build the `angular-in-memory-web-api` npm package into `dist/angular-in-memory-web-api-dist/`, // because it might be needed by other scripts/targets. buildAngularInMemoryWebApiPackage('dist/angular-in-memory-web-api-dist'); diff --git a/scripts/build/dev-infra-builder.js b/scripts/build/dev-infra-builder.js deleted file mode 100644 index b83877dcf8..0000000000 --- a/scripts/build/dev-infra-builder.js +++ /dev/null @@ -1,48 +0,0 @@ -/** - * @license - * Copyright Google LLC All Rights Reserved. - * - * Use of this source code is governed by an MIT-style license that can be - * found in the LICENSE file at https://angular.io/license - */ - -'use strict'; - -const {resolve} = require('path'); -const {chmod, cp, mkdir, rm, test} = require('shelljs'); -const {baseDir, bazelBin, bazelCmd, exec, scriptPath} = require('./package-builder'); - - -module.exports = { - buildDevInfraPackage, -}; - -/** - * Build the `@angular/dev-infra-private` npm package into `destDir`. - * - * @param {string} destDir Path to the output directory into which we copy the npm package. - * This path should either be absolute or relative to the project root. - */ -function buildDevInfraPackage(destDir) { - console.info('##############################'); - console.info(`${scriptPath}:`); - console.info(' Building @angular/dev-infra-private npm package'); - console.info('##############################'); - exec(`${bazelCmd} build //dev-infra:npm_package`); - - // Create the output directory. - const absDestDir = resolve(baseDir, destDir); - if (!test('-d', absDestDir)) { - mkdir('-p', absDestDir); - } - - const buildOutputDir = `${bazelBin}/dev-infra/npm_package`; - const distTargetDir = `${absDestDir}/dev-infra-private`; - - console.info(`# Copy artifacts to ${distTargetDir}`); - rm('-rf', distTargetDir); - cp('-R', buildOutputDir, distTargetDir); - chmod('-R', 'u+w', distTargetDir); - - console.info(''); -}