Skip to content
This repository has been archived by the owner on May 8, 2020. It is now read-only.

Commit

Permalink
feat(infrastructure): refactored to use new toolchain structure
Browse files Browse the repository at this point in the history
  • Loading branch information
zakhenry committed May 26, 2016
1 parent 370e4cd commit 43d4c09
Show file tree
Hide file tree
Showing 14 changed files with 40 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# compiled output
/dist
/build
/lib
/tmp

# dependencies
Expand Down
1 change: 1 addition & 0 deletions common.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './lib/common';
5 changes: 5 additions & 0 deletions common.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
__export(require('./lib/common'));
1 change: 1 addition & 0 deletions common.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './lib/common';
2 changes: 0 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
export * from './build/server/server/index';
export * from './build/server/common/index';
6 changes: 0 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +0,0 @@
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
__export(require('./build/server/server/index'));
__export(require('./build/server/common/index'));
2 changes: 0 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +0,0 @@
export * from './build/server/server/index';
export * from './build/server/common/index';
1 change: 1 addition & 0 deletions server.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './lib/server';
5 changes: 5 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
__export(require('./lib/server'));
1 change: 1 addition & 0 deletions server.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './lib/server';
3 changes: 1 addition & 2 deletions src/browser/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Component } from '@angular/core';
import '../public/css/styles.css';
import { Cat } from '../../../_demo/common/models/cat.model';
@Component({
selector: 'my-app',
template: require('./app.component.html'),
Expand All @@ -9,7 +8,7 @@ import { Cat } from '../../../_demo/common/models/cat.model';
export class AppComponent {

public handleClick() {
console.log('click!', new Cat());
console.log('click!');
}

}
18 changes: 13 additions & 5 deletions tsconfig.browser.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es5",
"target": "es2015",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
Expand All @@ -12,9 +12,17 @@
},
"exclude": [
"node_modules",
"build",
"server",
"_demo/server",
"index.d.ts"
"lib",
"dist",
"index.ts",
"index.d.ts",
"server.ts",
"server.d.ts",
"browser.ts",
"browser.d.ts",
"common.ts",
"common.d.ts",
"browser.d.ts"

]
}
16 changes: 11 additions & 5 deletions tsconfig.server.json → tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es6",
"target": "es2015",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
Expand All @@ -13,9 +13,15 @@
},
"exclude": [
"node_modules",
"browser",
"build",
"_demo/browser",
"index.d.ts"
"lib",
"dist",
"index.ts",
"index.d.ts",
"server.ts",
"server.d.ts",
"browser.ts",
"browser.d.ts",
"common.ts",
"common.d.ts"
]
}
1 change: 0 additions & 1 deletion typings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160524134847",
"dotenv": "registry:dt/dotenv#2.0.0+20160327131627",
"hapi": "registry:dt/hapi#13.0.0+20160423150146",
"jasmine": "registry:dt/jasmine#2.2.0+20160505161446",
Expand Down

0 comments on commit 43d4c09

Please sign in to comment.