forked from angular/angular-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplates.ts
More file actions
25 lines (23 loc) · 798 Bytes
/
templates.ts
File metadata and controls
25 lines (23 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/**
* @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');
}