2020-09-09 08:37:38 -04:00
|
|
|
import {join} from 'path';
|
|
|
|
import {exec} from 'shelljs';
|
|
|
|
import {ReleaseConfig} from '../dev-infra/release/config';
|
|
|
|
|
|
|
|
/** Configuration for the `ng-dev release` command. */
|
|
|
|
export const release: ReleaseConfig = {
|
2021-01-19 11:30:33 -05:00
|
|
|
publishRegistry: 'https://wombat-dressing-room.appspot.com',
|
2020-09-09 08:37:38 -04:00
|
|
|
npmPackages: [
|
|
|
|
'@angular/animations',
|
|
|
|
'@angular/bazel',
|
|
|
|
'@angular/common',
|
|
|
|
'@angular/compiler',
|
|
|
|
'@angular/compiler-cli',
|
|
|
|
'@angular/core',
|
|
|
|
'@angular/elements',
|
|
|
|
'@angular/forms',
|
|
|
|
'@angular/language-service',
|
|
|
|
'@angular/localize',
|
|
|
|
'@angular/platform-browser',
|
|
|
|
'@angular/platform-browser-dynamic',
|
|
|
|
'@angular/platform-server',
|
|
|
|
'@angular/router',
|
|
|
|
'@angular/service-worker',
|
|
|
|
'@angular/upgrade',
|
|
|
|
],
|
2020-11-12 14:01:01 -05:00
|
|
|
buildPackages: async () => {
|
|
|
|
// The buildTargetPackages function is loaded at runtime as the loading the script causes an
|
|
|
|
// invocation of bazel.
|
|
|
|
const {buildTargetPackages} = require(join(__dirname, '../scripts/build/package-builder'));
|
2020-12-11 15:51:29 -05:00
|
|
|
return buildTargetPackages('dist/release-output', false, 'Release', true);
|
2020-11-12 14:01:01 -05:00
|
|
|
},
|
2020-10-10 15:02:47 -04:00
|
|
|
// TODO: This can be removed once there is an org-wide tool for changelog generation.
|
2020-09-09 08:37:38 -04:00
|
|
|
generateReleaseNotesForHead: async () => {
|
|
|
|
exec('yarn -s gulp changelog', {cwd: join(__dirname, '../')});
|
|
|
|
},
|
2021-01-19 15:32:46 -05:00
|
|
|
releasePrLabels: ['comp: build & ci', 'action: merge', 'PullApprove: disable'],
|
2020-09-09 08:37:38 -04:00
|
|
|
};
|