-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added systemjs build system for the example app
- Loading branch information
Showing
12 changed files
with
283 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module.exports = { | ||
server: { | ||
baseDir: './', | ||
middleware: { | ||
1: require('connect-history-api-fallback')({index: '/src/devel.html'}) | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
(function (global) { | ||
System.config({ | ||
transpiler: 'ts', | ||
typescriptOptions: { | ||
tsconfig: "src/tsconfig.json", | ||
types: [] | ||
}, | ||
meta: { | ||
'typescript': { | ||
exports: "ts" | ||
} | ||
}, | ||
paths: { | ||
'npm:': 'https://unpkg.com/' | ||
}, | ||
map: { | ||
'app': 'src', | ||
'@angular/core': 'npm:@angular/core/bundles/core.umd.js', | ||
'@angular/common': 'npm:@angular/common/bundles/common.umd.js', | ||
'@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js', | ||
'@angular/flex-layout': 'npm:@angular/flex-layout/bundles/flex-layout.umd.js', | ||
'@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js', | ||
'@angular/http': 'npm:@angular/http/bundles/http.umd.js', | ||
'@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js', | ||
'@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js', | ||
'@angular/router': 'npm:@angular/router/bundles/router.umd.js', | ||
'rxjs': 'npm:rxjs', | ||
'ts': 'npm:plugin-typescript/lib/plugin.js', | ||
'typescript': 'npm:typescript/lib/typescript.js', | ||
'angular2-dropzone-wrapper': 'node_modules/angular2-dropzone-wrapper' | ||
}, | ||
packages: { | ||
'app': { | ||
main: './main.ts', | ||
defaultExtension: 'ts', | ||
meta: { | ||
'*.ts': { | ||
loader: "ts" | ||
} | ||
} | ||
}, | ||
'rxjs': { | ||
defaultExtension: 'js' | ||
}, | ||
'angular2-dropzone-wrapper': { | ||
main: 'bundles/angular2-dropzone-wrapper.umd.js', | ||
defaultExtension: 'js' | ||
} | ||
} | ||
}); | ||
})(this); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
(function (global) { | ||
System.config({ | ||
transpiler: 'ts', | ||
typescriptOptions: { | ||
tsconfig: "src/tsconfig.json", | ||
types: [] | ||
}, | ||
meta: { | ||
'typescript': { | ||
exports: "ts" | ||
} | ||
}, | ||
paths: { | ||
'npm:': 'node_modules/' | ||
}, | ||
map: { | ||
'app': 'src', | ||
'@angular/core': 'npm:@angular/core/bundles/core.umd.js', | ||
'@angular/common': 'npm:@angular/common/bundles/common.umd.js', | ||
'@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js', | ||
'@angular/flex-layout': 'npm:@angular/flex-layout/bundles/flex-layout.umd.js', | ||
'@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js', | ||
'@angular/http': 'npm:@angular/http/bundles/http.umd.js', | ||
'@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js', | ||
'@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js', | ||
'@angular/router': 'npm:@angular/router/bundles/router.umd.js', | ||
'rxjs': 'npm:rxjs', | ||
'ts': 'npm:plugin-typescript/lib/plugin.js', | ||
'typescript': 'npm:typescript/lib/typescript.js', | ||
'angular2-dropzone-wrapper': 'node_modules/angular2-dropzone-wrapper' | ||
}, | ||
packages: { | ||
'app': { | ||
main: './main.ts', | ||
defaultExtension: 'ts', | ||
meta: { | ||
'*.ts': { | ||
loader: "ts" | ||
} | ||
} | ||
}, | ||
'rxjs': { | ||
defaultExtension: 'js' | ||
}, | ||
'angular2-dropzone-wrapper': { | ||
main: 'bundles/angular2-dropzone-wrapper.umd.js', | ||
defaultExtension: 'js' | ||
} | ||
} | ||
}); | ||
})(this); | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
<html> | ||
<head> | ||
<base href="/"> | ||
|
||
<meta charset="UTF-8"> | ||
|
||
<title>Example app</title> | ||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> | ||
|
||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/dropzone/4.3.0/min/dropzone.min.css" /> | ||
|
||
<style> | ||
.loading, | ||
.loading:after, | ||
.loading:before { | ||
content: ' '; | ||
top: 0; | ||
width: 24px; | ||
height: 24px; | ||
border-radius: 50%; | ||
animation: spinner 1600ms infinite ease-in-out; | ||
} | ||
|
||
.loading { | ||
color: #555; | ||
margin: 64px auto; | ||
position: relative; | ||
animation-delay: -160ms; | ||
} | ||
|
||
.loading:after { | ||
left: 64px; | ||
} | ||
|
||
.loading:before { | ||
left: -64px; | ||
animation-delay: -320ms; | ||
} | ||
|
||
.loading:after, | ||
.loading:before { | ||
position: absolute; | ||
} | ||
|
||
@keyframes spinner { | ||
40% { | ||
box-shadow: 0 40px 0 0; | ||
} | ||
|
||
0%, | ||
80%, | ||
100% { | ||
box-shadow: 0 40px 0 -20px; | ||
} | ||
} | ||
</style> | ||
|
||
<script src="https://unpkg.com/core-js/client/shim.min.js"></script> | ||
<script src="https://unpkg.com/zone.js@0.7.7/dist/zone.js"></script> | ||
<script src="https://unpkg.com/systemjs@0.20.7/dist/system.src.js"></script> | ||
|
||
<script src="config/systemjs-server.config.js"></script> | ||
|
||
<script> | ||
System.import('app').catch(function(err) { console.error(err); }); | ||
</script> | ||
</head> | ||
|
||
<body> | ||
<my-app><div class="loading"></div></my-app> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<html> | ||
<head> | ||
<base href="/"> | ||
|
||
<meta charset="UTF-8"> | ||
|
||
<title>Example app</title> | ||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> | ||
|
||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/dropzone/4.3.0/min/dropzone.min.css" /> | ||
|
||
<style> | ||
.loading, | ||
.loading:after, | ||
.loading:before { | ||
content: ' '; | ||
top: 0; | ||
width: 24px; | ||
height: 24px; | ||
border-radius: 50%; | ||
animation: spinner 1600ms infinite ease-in-out; | ||
} | ||
|
||
.loading { | ||
color: #555; | ||
margin: 64px auto; | ||
position: relative; | ||
animation-delay: -160ms; | ||
} | ||
|
||
.loading:after { | ||
left: 64px; | ||
} | ||
|
||
.loading:before { | ||
left: -64px; | ||
animation-delay: -320ms; | ||
} | ||
|
||
.loading:after, | ||
.loading:before { | ||
position: absolute; | ||
} | ||
|
||
@keyframes spinner { | ||
40% { | ||
box-shadow: 0 40px 0 0; | ||
} | ||
|
||
0%, | ||
80%, | ||
100% { | ||
box-shadow: 0 40px 0 -20px; | ||
} | ||
} | ||
</style> | ||
|
||
<!-- Should be used for build | ||
<script src="https://unpkg.com/core-js/client/shim.min.js"></script> | ||
<script src="https://unpkg.com/zone.js@0.7.7/dist/zone.js"></script> | ||
<script src="https://unpkg.com/systemjs@0.19.46/dist/system.src.js"></script> | ||
--> | ||
|
||
<script src="node_modules/core-js/client/shim.min.js"></script> | ||
<script src="node_modules/zone.js/dist/zone.js"></script> | ||
<script src="node_modules/systemjs/dist/system.src.js"></script> | ||
|
||
<script src="config/systemjs-server.config.js"></script> | ||
|
||
<script> | ||
System.import('app').catch(function(err) { console.error(err); }); | ||
</script> | ||
</head> | ||
|
||
<body> | ||
<my-app><div class="loading"></div></my-app> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,8 @@ | |
} | ||
} | ||
</style> | ||
|
||
<script>window.module = 'aot';</script> | ||
</head> | ||
|
||
<body> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters