mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 02:24:10 +08:00
26 lines
798 B
TypeScript
26 lines
798 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google Inc. 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
|
|
*/
|
|
// tslint:disable:no-implicit-dependencies
|
|
import { logging } from '@angular-devkit/core';
|
|
import * as fs from 'fs';
|
|
import * as path from 'path';
|
|
import { packages } from '../lib/packages';
|
|
|
|
export default function(_options: {}, logger: logging.Logger) {
|
|
const monorepo = require('../.monorepo.json');
|
|
|
|
logger.info('Building README...');
|
|
const readme = require('./templates/readme').default;
|
|
const content = readme({
|
|
monorepo,
|
|
packages,
|
|
encode: (x: string) => global.encodeURIComponent(x),
|
|
});
|
|
fs.writeFileSync(path.join(__dirname, '../README.md'), content, 'utf-8');
|
|
}
|