Skip to content

Commit 2763601

Browse files
clydinfilipesilva
authored andcommitted
refactor(@angular/cli): convert additional files to typescript
1 parent 32e2e3f commit 2763601

File tree

3 files changed

+11
-21
lines changed

3 files changed

+11
-21
lines changed

packages/@angular/cli/lib/cli/index.js renamed to packages/@angular/cli/lib/cli/index.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
/*eslint-disable no-console */
2-
31
// Prevent the dependency validation from tripping because we don't import these. We need
42
// it as a peer dependency of @angular/core.
53
// require('zone.js')
64

5+
import * as path from 'path';
76

8-
// This file hooks up on require calls to transpile TypeScript.
97
const cli = require('../../ember-cli/lib/cli');
108
const UI = require('../../ember-cli/lib/ui');
11-
const path = require('path');
9+
1210

1311
function loadCommands() {
1412
return {
@@ -36,10 +34,10 @@ function loadCommands() {
3634
};
3735
}
3836

39-
module.exports = function(options) {
37+
export default function(options: any) {
4038

4139
// patch UI to not print Ember-CLI warnings (which don't apply to Angular CLI)
42-
UI.prototype.writeWarnLine = function () { }
40+
UI.prototype.writeWarnLine = function () { };
4341

4442
options.cli = {
4543
name: 'ng',
@@ -54,4 +52,4 @@ module.exports = function(options) {
5452
process.env.CLI_ROOT = process.env.CLI_ROOT || path.resolve(__dirname, '..', '..');
5553

5654
return cli(options);
57-
};
55+
}

packages/@angular/cli/plugins/webpack.js

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Exports the webpack plugins we use internally.
2+
export { BaseHrefWebpackPlugin } from '../lib/base-href-webpack/base-href-webpack-plugin';
3+
export { GlobCopyWebpackPlugin, GlobCopyWebpackPluginOptions } from './glob-copy-webpack-plugin';
4+
export { InsertConcatAssetsWebpackPlugin } from './insert-concat-assets-webpack-plugin';
5+
export { NamedLazyChunksWebpackPlugin } from './named-lazy-chunks-webpack-plugin';
6+
export { SuppressExtractedTextChunksWebpackPlugin } from './suppress-entry-chunks-webpack-plugin';

0 commit comments

Comments
 (0)