Skip to content

Commit cb6dcc0

Browse files
zackarychapplefilipesilva
authored andcommitted
feat(migration): copying JS files when created in cli generated app, removing dead code (#546)
1 parent a6cf825 commit cb6dcc0

File tree

1 file changed

+1
-29
lines changed

1 file changed

+1
-29
lines changed

lib/broccoli/angular2-app.js

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ class Angular2App extends BroccoliPlugin {
5656
read(readTree) {
5757
return this._tree.read(readTree);
5858
}
59+
5960
/**
6061
* @override
6162
*/
@@ -246,34 +247,6 @@ class Angular2App extends BroccoliPlugin {
246247
});
247248
}
248249

249-
/**
250-
* Returns the source root dir tree.
251-
*
252-
* @private
253-
* @method _getSourceTree
254-
* @return {Tree} Tree for the src dir.
255-
*/
256-
_getSourceTree() {
257-
return new BroccoliFunnel(this._inputNode, {
258-
include: ['*.ts', '**/*.ts', '**/*.d.ts'],
259-
destDir: this._sourceDir
260-
});
261-
}
262-
263-
/**
264-
* Returns the typings tree.
265-
*
266-
* @private
267-
* @method _getTypingsTree
268-
* @return {Tree} Tree for the src dir.
269-
*/
270-
_getTypingsTree() {
271-
return new BroccoliFunnel('typings', {
272-
include: ['browser.d.ts', 'browser/**'],
273-
destDir: 'typings'
274-
});
275-
}
276-
277250
/**
278251
* Returns the TS tree.
279252
*
@@ -345,7 +318,6 @@ class Angular2App extends BroccoliPlugin {
345318
include: [path.join(this._sourceDir, '**/*')],
346319
exclude: [
347320
'**/*.ts',
348-
'**/*.js',
349321
'**/*.scss',
350322
'**/*.sass',
351323
'**/*.less',

0 commit comments

Comments
 (0)