Skip to content

Commit

Permalink
feat: angular package format (#1474)
Browse files Browse the repository at this point in the history
  • Loading branch information
yggg committed Jun 6, 2019
1 parent a9120cf commit 647089e
Show file tree
Hide file tree
Showing 155 changed files with 985 additions and 964 deletions.
1 change: 1 addition & 0 deletions DEV_DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
- add the package into bump-version.ts which bumps package version and its dependencies
- add the package external dependencies into rollup-config.ts which gives rollup capability build package correctly
- add the package into bundle.ts which build umd modules for our packages
- add the package into `JS_PACKAGES` in `scripts/gulp/tasks/config.ts` which used to add es2015 bundles for our packages
- add the package into packages-smoke application dependencies to verify it works properly in isolation.

# New Package Dependency Checklist
Expand Down
12 changes: 4 additions & 8 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
"src/favicon.ico"
],
"styles": [
"node_modules/nebular-icons/scss/nebular-icons.scss",
"src/styles.scss"
"node_modules/nebular-icons/scss/nebular-icons.scss"
],
"scripts": []
},
Expand Down Expand Up @@ -77,8 +76,7 @@
"tsConfig": "src/tsconfig.spec.json",
"scripts": [],
"styles": [
"node_modules/nebular-icons/scss/nebular-icons.scss",
"src/styles.scss"
"node_modules/nebular-icons/scss/nebular-icons.scss"
],
"assets": [
"src/assets",
Expand Down Expand Up @@ -147,8 +145,7 @@
"src/favicon.ico"
],
"styles": [
"node_modules/nebular-icons/scss/nebular-icons.scss",
"src/styles.scss"
"node_modules/nebular-icons/scss/nebular-icons.scss"
],
"scripts": []
},
Expand Down Expand Up @@ -198,8 +195,7 @@
"tsConfig": "src/tsconfig.spec.json",
"scripts": [],
"styles": [
"node_modules/nebular-icons/scss/nebular-icons.scss",
"src/styles.scss"
"node_modules/nebular-icons/scss/nebular-icons.scss"
],
"assets": [
"src/assets",
Expand Down
2 changes: 1 addition & 1 deletion docs/app/documentation/page/page.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*/

import { Component, Inject, NgZone, OnDestroy, OnInit, PLATFORM_ID } from '@angular/core';
import { Component, Inject, NgZone, OnDestroy, OnInit } from '@angular/core';
import { Title } from '@angular/platform-browser';
import { ActivatedRoute, Router } from '@angular/router';
import { filter, map, publishReplay, refCount, tap, takeWhile } from 'rxjs/operators';
Expand Down
7 changes: 3 additions & 4 deletions docs/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,9 @@
"baseUrl": ".",
"types": [],
"paths": {
"@nebular/theme": ["../src/framework/theme"],
"@nebular/theme/*": ["../src/framework/theme/*"],
"@nebular/auth": ["../src/framework/auth"],
"@nebular/security": ["../src/framework/security"]
"@nebular/theme": ["../src/framework/theme/public_api.ts"],
"@nebular/auth": ["../src/framework/auth/public_api.ts"],
"@nebular/security": ["../src/framework/security/public_api.ts"]
}
},
"exclude": [
Expand Down
Loading

0 comments on commit 647089e

Please sign in to comment.