Skip to content

Commit

Permalink
Make the module compatible with offline compilation (AoT)
Browse files Browse the repository at this point in the history
Rearranged the dependencies to be a lot more flexible for the application that uses it on the precise angular version
  • Loading branch information
taguan committed Nov 15, 2016
1 parent a6c4182 commit 8bca2f3
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# compiled output
/dist
/tmp
/aot
# module dist
/mention

Expand Down
35 changes: 21 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,32 @@
"test": "ng test",
"pree2e": "webdriver-manager update",
"e2e": "protractor",
"dist": "tsc -p src/mention"
"dist": "ngc -p src/mention"
},
"private": false,
"dependencies": {
"@angular/common": "~2.1.0",
"@angular/compiler": "~2.1.0",
"@angular/core": "~2.1.0",
"@angular/forms": "~2.1.0",
"@angular/http": "~2.1.0",
"@angular/platform-browser": "~2.1.0",
"@angular/platform-browser-dynamic": "~2.1.0",
"@angular/router": "~3.1.0",
"core-js": "^2.4.1",
"rxjs": "5.0.0-beta.12",
"ts-helpers": "^1.1.1",
"zone.js": "^0.6.23"
"peerDependencies": {
"@angular/common": "^2.0.0",
"@angular/core": "^2.0.0",
"@angular/forms": "^2.0.0",
"@angular/platform-browser": "^2.0.0",
"@angular/platform-browser-dynamic": "^2.0.0"
},
"devDependencies": {
"@types/jasmine": "^2.2.30",
"@types/node": "^6.0.42",
"@angular/compiler-cli": "2.1.2",
"@angular/compiler": "2.1.2",
"@angular/common": "2.1.2",
"@angular/core": "2.1.2",
"@angular/forms": "2.1.2",
"@angular/platform-browser": "2.1.2",
"@angular/platform-server": "2.1.2",
"@angular/platform-browser-dynamic": "2.1.2",
"@angular/http": "2.1.2",
"@angular/router": "3.1.2",
"core-js": "^2.4.1",
"rxjs": "5.0.0-beta.12",
"zone.js": "^0.6.23",
"angular-cli": "^1.0.0-beta.17",
"codelyzer": "~0.0.26",
"jasmine-core": "2.4.1",
Expand All @@ -52,6 +58,7 @@
"karma-remap-istanbul": "^0.2.1",
"protractor": "4.0.9",
"ts-node": "1.2.1",
"ts-helpers": "^1.1.1",
"tslint": "3.13.0",
"typescript": "2.0.2"
},
Expand Down
3 changes: 3 additions & 0 deletions src/mention/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,8 @@
"typeRoots": [
"../../node_modules/@types"
]
},
"angularCompilerOptions": {
"genDir": "../../aot"
}
}

0 comments on commit 8bca2f3

Please sign in to comment.