Skip to content

Commit

Permalink
chore(): cleanup unused modules
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Jul 12, 2016
1 parent 10179c3 commit 91f66d8
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 24 deletions.
13 changes: 3 additions & 10 deletions scripts/docs/typescript-definition-package/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,24 +38,17 @@ module.exports = new Package('angular-v2-docs', [jsdocPackage, nunjucksPackage,
// Configure file reading
readFilesProcessor.basePath = path.resolve(__dirname, '../..');
readTypeScriptModules.sourceFiles = [
'angular2/angular2.ts',
'angular2/router.ts'
'angular2/angular2.ts'
];
readTypeScriptModules.basePath = path.resolve(path.resolve(__dirname, '../../modules'));

createTypeDefinitionFile.typeDefinitions = [
{
id: 'angular2/angular2',
modules: {
'angular2/angular2': 'angular2/angular2',
}
},
{
id: 'angular2/router',
modules: {
'angular2/router': 'angular2/router'
}
}
}
];
})

Expand Down
1 change: 1 addition & 0 deletions scripts/karma/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ module.exports = function(config) {
'dist/bundles/ionic.system.js',
{ pattern: 'node_modules/@angular/**/*.js', included: false},
{ pattern: 'dist/tests/**/*.spec.js', included: false },
// { pattern: 'dist/tests/components/nav/**/*.spec.js', included: false },
{ pattern: 'src/**/*.js', included: false },
'scripts/karma/test-main.js'
],
Expand Down
8 changes: 0 additions & 8 deletions scripts/karma/system.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,13 @@ System.config({
main: 'index.js',
defaultExtension: 'js'
},
'@angular/upgrade': {
main: 'index.js',
defaultExtension: 'js'
},
'@angular/platform-browser': {
main: 'index.js',
defaultExtension: 'js'
},
'@angular/platform-browser-dynamic': {
main: 'index.js',
defaultExtension: 'js'
},
'@angular/platform-server': {
main: 'index.js',
defaultExtension: 'js'
}
}
});
3 changes: 0 additions & 3 deletions scripts/npm/ionic.min.webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ module.exports = {
'angular2/common': {
commonjs2: ['angular2', 'common']
},
'angular2/router' : {
commonjs2: ['angular2', 'router']
},
'angular2/http': {
commonjs2: ['angular2', 'http']
},
Expand Down
3 changes: 0 additions & 3 deletions src/config/directives.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ import { Searchbar } from '../components/searchbar/searchbar';
import { Nav } from '../components/nav/nav';
import { NavPop } from '../components/nav/nav-pop';
import { NavPush } from '../components/nav/nav-push';
import { NavRouter } from '../components/nav/nav-router';
import { NavbarTemplate, Navbar } from '../components/navbar/navbar';
import { ShowWhen, HideWhen } from '../components/show-hide-when/show-hide-when';

Expand Down Expand Up @@ -113,7 +112,6 @@ import { ShowWhen, HideWhen } from '../components/show-hide-when/show-hide-when'
* - Navbar
* - NavPush
* - NavPop
* - NavRouter
* - IdRef
* - ShowWhen
* - HideWhen
Expand Down Expand Up @@ -195,7 +193,6 @@ export const IONIC_DIRECTIVES: any[] = [

NavPush,
NavPop,
NavRouter,

ShowWhen,
HideWhen
Expand Down

0 comments on commit 91f66d8

Please sign in to comment.