forked from valor-software/ng2-file-upload
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Oleksandr Telnov
committed
Sep 15, 2016
1 parent
0e7e397
commit cdc76cc
Showing
29 changed files
with
306 additions
and
429 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
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,29 @@ | ||
'use strict'; | ||
var pkg = require('./package.json'); | ||
|
||
module.exports = { | ||
// metadata | ||
title: pkg.description, | ||
baseUrl: '/', | ||
// root folder name | ||
src: 'demo', | ||
dist: 'demo-build', | ||
htmlIndexes: ['index.html'], | ||
// karma bundle src | ||
spec: './spec-bundle.js', | ||
// webpack entry | ||
entry: { | ||
polyfills: './demo/polyfills.ts', | ||
vendor: './demo/vendor.ts', | ||
main: './demo/index.ts' | ||
}, | ||
commonChunks: { | ||
name: ['polyfills', 'vendor'].reverse() | ||
}, | ||
// webpack alias | ||
alias: {}, | ||
copy: [ | ||
{from: 'demo/favicon.ico', to: 'favicon.ico'}, | ||
{from: 'demo/assets', to: 'assets'} | ||
] | ||
}; |
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
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
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
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
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 @@ | ||
declare const ENV:string; |
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,28 @@ | ||
// Polyfills | ||
// (these modules are what are in 'angular2/bundles/angular2-polyfills' so don't use that here) | ||
|
||
// import 'ie-shim'; // Internet Explorer | ||
// import 'es6-shim'; | ||
// import 'es6-promise'; | ||
// import 'es7-reflect-metadata'; | ||
|
||
// Prefer CoreJS over the polyfills above | ||
import 'core-js/es6'; | ||
import 'core-js/es7/reflect'; | ||
require('zone.js/dist/zone'); | ||
require('reflect-metadata'); | ||
|
||
// Typescript emit helpers polyfill | ||
import 'ts-helpers'; | ||
|
||
if ('production' === ENV) { | ||
// Production | ||
|
||
} else { | ||
// Development | ||
|
||
(Error as any).stackTraceLimit = Infinity; | ||
|
||
require('zone.js/dist/long-stack-trace-zone'); | ||
|
||
} |
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,23 @@ | ||
// For vendors for example jQuery, Lodash, angular2-jwt just import them here unless you plan on | ||
// chunking vendors files for async loading. You would need to import the async loaded vendors | ||
// at the entry point of the async loaded file. Also see custom-typings.d.ts as you also need to | ||
// run `typings install x` where `x` is your module | ||
|
||
// Angular 2 | ||
import '@angular/common'; | ||
import '@angular/core'; | ||
import '@angular/forms'; | ||
import '@angular/platform-browser'; | ||
import '@angular/platform-browser-dynamic'; | ||
|
||
// RxJS | ||
import 'rxjs/add/operator/map'; | ||
import 'rxjs/add/operator/mergeMap'; | ||
|
||
if ('production' === ENV) { | ||
// Production | ||
|
||
} else { | ||
// Development | ||
|
||
} |
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
Oops, something went wrong.