-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from wittlock/angular_8_fix
Angular 8 fix
- Loading branch information
Showing
8 changed files
with
53 additions
and
60 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,6 +1,8 @@ | ||
# Angular | ||
/compiled | ||
*.metadata.json | ||
*.ngsummary.json | ||
package-lock.json | ||
|
||
# Node | ||
node_modules/* | ||
|
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 |
---|---|---|
@@ -1 +1,29 @@ | ||
export * from './public_api'; | ||
import {NgModule, ModuleWithProviders} from '@angular/core'; | ||
import {CommonModule} from '@angular/common'; | ||
import {HotkeysDirective} from './src/hotkeys.directive'; | ||
import {CheatSheetComponent} from './src/cheatsheet.component'; | ||
import {IHotkeyOptions, HotkeyOptions} from './src/hotkey.options'; | ||
import {HotkeysService} from './src/hotkeys.service'; | ||
|
||
export * from './src/cheatsheet.component'; | ||
export * from './src/hotkey.model'; | ||
export * from './src/hotkey.options'; | ||
export * from './src/hotkeys.directive'; | ||
export * from './src/hotkeys.service'; | ||
|
||
@NgModule({ | ||
imports : [CommonModule], | ||
exports : [HotkeysDirective, CheatSheetComponent], | ||
declarations : [HotkeysDirective, CheatSheetComponent] | ||
}) | ||
export class HotkeyModule { | ||
static forRoot(options: IHotkeyOptions = {}): ModuleWithProviders { | ||
return { | ||
ngModule : HotkeyModule, | ||
providers : [ | ||
HotkeysService, | ||
{provide : HotkeyOptions, useValue : options} | ||
] | ||
}; | ||
} | ||
} |
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,13 @@ | ||
{ | ||
"name": "angular2-hotkeys", | ||
"version": "2.1.4", | ||
"version": "2.1.5", | ||
"scripts": { | ||
"lint": "tslint src/**/*.ts", | ||
"test": "tsc && karma start", | ||
"prepare": "tsc && ngc", | ||
"tsc": "tsc", | ||
"tsc:watch": "tsc --watch", | ||
"ngc": "ngc -p tsconfig.json" | ||
"ngc": "./node_modules/.bin/ngc -p tsconfig.json" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
|
@@ -28,23 +28,21 @@ | |
"bugs": { | ||
"url": "[email protected]:brtnshrdr/angular2-hotkeys.git/issues" | ||
}, | ||
"module": "./angular2-hotkeys.js", | ||
"typings":"./angular2-hotkeys.d.ts", | ||
"main": "./index.js", | ||
"dependencies": { | ||
"mousetrap": "^1.6.0", | ||
"@types/mousetrap": "^1.6.0" | ||
}, | ||
"devDependencies": { | ||
"@angular/common": "8.0.0", | ||
"@angular/compiler": "8.0.0", | ||
"@angular/compiler-cli": "8.0.0", | ||
"@angular/core": "8.0.0", | ||
"tsickle": "0.35.0", | ||
"@angular/common": "8.2.4", | ||
"@angular/compiler": "8.2.4", | ||
"@angular/compiler-cli": "8.2.4", | ||
"@angular/core": "8.2.4", | ||
"@types/core-js": "0.9.41", | ||
"codelyzer": "~3.0.1", | ||
"rxjs": "^6.5.0", | ||
"tslint": "^3.15.1", | ||
"typescript": "~3.4.5", | ||
"codelyzer": "^5.0.0", | ||
"rxjs": "^6.5.2", | ||
"tslint": "^5.0.0", | ||
"typescript": "~3.5.3", | ||
"zone.js": "^0.9.1" | ||
}, | ||
"peerDependencies": { | ||
|
This file was deleted.
Oops, something went wrong.
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.
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