-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rollup sourcemaps and es2015 modules (#120)
* rollup sourcemaps and es2015 modules * fix codecov settings * paths always failing * _component -> instance
- Loading branch information
Showing
24 changed files
with
246 additions
and
167 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 |
---|---|---|
@@ -1,10 +1,7 @@ | ||
coverage: | ||
status: | ||
default: | ||
threshold: null | ||
patch: | ||
default: | ||
threshold: null | ||
changes: | ||
default: | ||
threshold: null | ||
project: | ||
default: | ||
target: auto | ||
threshold: 10 | ||
base: auto |
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 |
---|---|---|
|
@@ -34,6 +34,7 @@ testem.log | |
/typings | ||
/deploy | ||
/waste | ||
/build | ||
|
||
# e2e | ||
/e2e/*.js | ||
|
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,26 @@ | ||
const sourcemaps = require('rollup-plugin-sourcemaps'); | ||
|
||
export default { | ||
entry: './build/toastr.js', | ||
dest: './deploy/toastr.js', | ||
format: 'es', | ||
moduleName: 'ngxtoastr', | ||
sourceMap: true, | ||
globals: { | ||
'@angular/core': 'ng.core', | ||
'@angular/common': 'ng.common', | ||
'@angular/platform-browser': 'ng.platformBrowser', | ||
'rxjs/Observable': 'Rx', | ||
'rxjs/Subject': 'Rx' | ||
}, | ||
external: [ | ||
'@angular/core', | ||
'@angular/common', | ||
'@angular/platform-browser', | ||
'rxjs/Observable', | ||
'rxjs/Subject' | ||
], | ||
plugins: [ | ||
sourcemaps() | ||
] | ||
}; |
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 |
---|---|---|
@@ -1,13 +1,26 @@ | ||
const sourcemaps = require('rollup-plugin-sourcemaps'); | ||
|
||
export default { | ||
entry: './deploy/toastr.js', | ||
entry: './build/toastr.js', | ||
dest: './deploy/toastr.umd.js', | ||
format: 'umd', | ||
moduleName: 'ngxtoastr', | ||
sourceMap: true, | ||
globals: { | ||
'@angular/core': 'ng.core', | ||
'@angular/common': 'ng.common', | ||
'@angular/platform-browser': 'ng.platformBrowser', | ||
'rxjs/Observable': 'Rx', | ||
'rxjs/Subject': 'Rx' | ||
} | ||
}, | ||
external: [ | ||
'@angular/core', | ||
'@angular/common', | ||
'@angular/platform-browser', | ||
'rxjs/Observable', | ||
'rxjs/Subject' | ||
], | ||
plugins: [ | ||
sourcemaps() | ||
] | ||
}; |
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,10 @@ | ||
export { BasePortalHost, ComponentPortal } from './portal/portal'; | ||
export { Overlay } from './overlay/overlay'; | ||
export { OverlayContainer } from './overlay/overlay-container'; | ||
export { OverlayRef } from './overlay/overlay-ref'; | ||
export { ToastContainerModule, ToastContainerDirective } from './toastr/toast-directive' | ||
export { Toast } from './toastr/toast-component'; | ||
export { ToastrService, ActiveToast } from './toastr/toastr-service'; | ||
export { ToastrConfig, ToastConfig, ToastData } from './toastr/toastr-config'; | ||
export { ToastrModule } from './toastr/toastr-module'; | ||
export { ToastRef } from './toastr/toast-injector'; |
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 was deleted.
Oops, something went wrong.
File renamed without changes.
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
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 @@ | ||
{ | ||
"compilerOptions": { | ||
"declaration": true, | ||
"module": "es2015", | ||
"target": "es2015", | ||
"baseUrl": ".", | ||
"stripInternal": true, | ||
"emitDecoratorMetadata": true, | ||
"experimentalDecorators": true, | ||
"moduleResolution": "node", | ||
"outDir": "../../build", | ||
"rootDir": ".", | ||
"lib": ["es2015", "dom"], | ||
"skipLibCheck": true, | ||
// don't auto-discover @types/node, it results in a ///<reference in the .d.ts output | ||
"types": [] | ||
}, | ||
"files": [ | ||
"./index.ts" | ||
], | ||
"angularCompilerOptions": { | ||
"annotateForClosureCompiler": true, | ||
"strictMetadataEmit": true, | ||
"skipTemplateCodegen": true, | ||
"flatModuleOutFile": "toastr.js", | ||
"flatModuleId": "toastr" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -15,9 +15,6 @@ | |
"lib": [ | ||
"es2016", | ||
"dom" | ||
], | ||
"paths": { | ||
"ngx-toastr": ["./lib/toastr"] | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.