Skip to content

Commit

Permalink
feat(package): update uirouter angular dependency to support angular …
Browse files Browse the repository at this point in the history
…9 and bundle with ng-packagr (#379)

* replace with ng-packager
* chore(ng-packagr): add dist to gitignore, change angular peer deps to allow ng8, 9 and 9-next

BREAKING CHANGE:  This package drops support for Angular versions 7 and below.  You must now upgrade to Angular 8 or higher to use this package.  UIRouter dependencies have been moved to peerDependencies.  You must now install peer dependencies manually using `npx check-peer-dependencies --install`.
  • Loading branch information
wawyed authored and christopherthielen committed Nov 25, 2019
1 parent 6d97d49 commit 384e428
Show file tree
Hide file tree
Showing 4 changed files with 2,041 additions and 326 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ lib
**/_bundles
_bundles
yarn-error.log
dist

# artifacts
*.d.ts
Expand Down
7 changes: 6 additions & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,17 @@
"@types/angular": "^1.6.39",
"@types/jquery": "^3.2.16",
"@uirouter/angular-hybrid": "latest",
"@uirouter/core": "^6.0.1",
"@uirouter/angular": "^6.0.0",
"@uirouter/angularjs": "^1.0.23",
"@uirouter/rx": "^0.6.0",
"angular": "1.6.6",
"rxjs": "^6.5.3",
"ts-loader": "3.2.0",
"typescript": "~3.4.0",
"webpack": "3.10.0",
"webpack-dev-server": "2.9.6"
"webpack-dev-server": "2.9.6",
"zone.js": "^0.9.1"
},
"devDependencies": {
"@uirouter/cypress-runner": "^1.0.7"
Expand Down
45 changes: 25 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "9.0.0",
"scripts": {
"example": "cd example && npm i && npm start",
"clean": "shx rm -rf lib _bundles",
"clean": "shx rm -rf lib _bundles dist",
"compile": "npm run clean && ngc",
"build": "run-s clean compile bundle fixmaps:*",
"build": "ng-packagr -p package.json",
"bundle": "rollup -c && rollup -c --environment MINIFY",
"fixmaps:lib": "tweak_sourcemap_paths -a --include 'lib/**/*.js.map' 'lib-esm/**/*.js.map'",
"fixmaps:bundle": "tweak_sourcemap_paths -p ../src --include '_bundles/**/*.js.map'",
Expand All @@ -15,28 +15,30 @@
"prepublishOnly": "npm run build"
},
"license": "MIT",
"dependencies": {
"@uirouter/angular": "5.0.0",
"@uirouter/angularjs": "1.0.23",
"@uirouter/core": "6.0.1"
},
"peerDependencies": {
"@angular/core": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0",
"@angular/upgrade": "^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0",
"@angular/core": "^8.0.0 || ^9.0.0 || ^9.0.0-next",
"@angular/upgrade": "^8.0.0 || ^9.0.0 || ^9.0.0-next",
"@uirouter/angular": "^6.0.0",
"@uirouter/angularjs": "^1.0.23",
"angular": "^1.5.0"
},
"devDependencies": {
"@angular/common": "^5.2.11",
"@angular/compiler": "^5.2.11",
"@angular/compiler-cli": "^5.2.11",
"@angular/core": "^5.2.11",
"@angular/platform-browser": "^5.2.11",
"@angular/platform-browser-dynamic": "^5.2.11",
"@angular/upgrade": "^5.2.11",
"@angular/common": "^8.2.13",
"@angular/compiler": "^8.2.13",
"@angular/compiler-cli": "^8.2.13",
"@angular/core": "^8.2.13",
"@angular/platform-browser": "^8.2.13",
"@angular/platform-browser-dynamic": "^8.2.13",
"@angular/upgrade": "^8.2.13",
"@types/angular": "^1.6.51",
"@types/jquery": "^3.3.17",
"@uirouter/publish-scripts": "^2.3.40",
"@uirouter/core": "^6.0.1",
"@uirouter/angular": "^6.0.0",
"@uirouter/angularjs": "^1.0.23",
"@uirouter/rx": "^0.6.4",
"angular": "^1.7.9",
"ng-packagr": "^5.3.0",
"husky": "^3.1.0",
"prettier": "^1.19.1",
"pretty-quick": "^2.0.1",
Expand All @@ -48,12 +50,15 @@
"rxjs": "^6.5.3",
"rxjs-compat": "^6.5.3",
"shx": "^0.3.2",
"typescript": "^3.7.2",
"typescript": "~3.5.3",
"zone.js": "^0.10.2"
},
"main": "_bundles/ui-router-angular-hybrid.js",
"module": "lib/index.js",
"typings": "lib/index.d.ts",
"distDir": "dist",
"ngPackage": {
"lib": {
"entryFile": "src/index.ts"
}
},
"repository": {
"type": "git",
"url": "https://github.com/ui-router/angular-hybrid.git"
Expand Down
Loading

0 comments on commit 384e428

Please sign in to comment.