Skip to content

Commit 1146a21

Browse files
author
Danil Moroz
committed
Udpdate structure, gitignore and scripts in package
1 parent 221d49a commit 1146a21

File tree

8 files changed

+236
-17
lines changed

8 files changed

+236
-17
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### Directories
22
node_modules
3-
/lib
3+
dist
44
build
55
/develop
66

angular.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,41 @@
171171
}
172172
}
173173
}
174+
},
175+
"AngularBreadcrumbsLight": {
176+
"root": "projects/angular-breadcrumbs-light",
177+
"sourceRoot": "projects/angular-breadcrumbs-light/src",
178+
"projectType": "library",
179+
"prefix": "lib",
180+
"architect": {
181+
"build": {
182+
"builder": "@angular-devkit/build-ng-packagr:build",
183+
"options": {
184+
"tsConfig": "projects/angular-breadcrumbs-light/tsconfig.lib.json",
185+
"project": "projects/angular-breadcrumbs-light/ng-package.json"
186+
}
187+
},
188+
"test": {
189+
"builder": "@angular-devkit/build-angular:karma",
190+
"options": {
191+
"main": "projects/angular-breadcrumbs-light/src/test.ts",
192+
"tsConfig": "projects/angular-breadcrumbs-light/tsconfig.spec.json",
193+
"karmaConfig": "projects/angular-breadcrumbs-light/karma.conf.js"
194+
}
195+
},
196+
"lint": {
197+
"builder": "@angular-devkit/build-angular:tslint",
198+
"options": {
199+
"tsConfig": [
200+
"projects/angular-breadcrumbs-light/tsconfig.lib.json",
201+
"projects/angular-breadcrumbs-light/tsconfig.spec.json"
202+
],
203+
"exclude": [
204+
"**/node_modules/**"
205+
]
206+
}
207+
}
208+
}
174209
}
175210
},
176211
"defaultProject": "client"

package-lock.json

Lines changed: 164 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
{
2-
"name": "client",
3-
"version": "0.0.0",
2+
"name": "ngs-breadcrumbs-light",
3+
"version": "1.0.0",
4+
"description": "Angular Breadcrumbs customizable and easy to use component & service",
45
"scripts": {
56
"ng": "ng",
67
"start": "ng serve",
7-
"build": "ng build --prod=true",
8+
"build": "ng build AngularBreadcrumbsLight",
89
"test": "ng test",
9-
"lint": "ng lint",
10-
"e2e": "ng e2e",
1110
"lint": "tslint -p tsconfig.json",
12-
"release": "npm run build && npm publish"
11+
"e2e": "ng e2e",
12+
"deploy": "ng build --prod --base-href \"https://mopcweb.github.io/angular-breadcrumbs-light\"",
13+
"release": "npm run build && cd dist/angular-breadcrumbs-light && npm publish"
1314
},
1415
"private": true,
1516
"dependencies": {
@@ -37,9 +38,10 @@
3738
"@angular/cli": "~7.3.9",
3839
"@angular/compiler-cli": "~7.2.0",
3940
"@angular/language-service": "~7.2.0",
40-
"@types/node": "~8.9.4",
4141
"@types/jasmine": "~2.8.8",
4242
"@types/jasminewd2": "~2.0.3",
43+
"@types/node": "~8.9.4",
44+
"angular-cli-ghpages": "^0.5.3",
4345
"codelyzer": "~4.5.0",
4446
"jasmine-core": "~2.99.1",
4547
"jasmine-spec-reporter": "~4.2.1",
@@ -55,5 +57,17 @@
5557
"tslib": "^1.9.0",
5658
"tslint": "~5.11.0",
5759
"typescript": "~3.2.2"
58-
}
60+
},
61+
"keywords": [
62+
"Angular",
63+
"Breadcrumbs",
64+
"angular-breadcrumbs"
65+
],
66+
"author": "Daniil Moroz",
67+
"license": "MIT",
68+
"repository": {
69+
"type": "git",
70+
"url": "https://github.com/mopcweb/angular-breadcrumbs-light"
71+
},
72+
"homepage": "https://mopcweb.github.io/angular-breadcrumbs-light"
5973
}

projects/angular-breadcrumbs-light/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ This library was generated with [Angular CLI](https://github.com/angular/angular
44

55
## Code scaffolding
66

7-
Run `ng generate component component-name --project angular-breadcrumbs-light` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project angular-breadcrumbs-light`.
8-
> Note: Don't forget to add `--project angular-breadcrumbs-light` or else it will be added to the default project in your `angular.json` file.
7+
Run `ng generate component component-name --project AngularBreadcrumbsLight` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project AngularBreadcrumbsLight`.
8+
> Note: Don't forget to add `--project AngularBreadcrumbsLight` or else it will be added to the default project in your `angular.json` file.
99
1010
## Build
1111

12-
Run `ng build angular-breadcrumbs-light` to build the project. The build artifacts will be stored in the `dist/` directory.
12+
Run `ng build AngularBreadcrumbsLight` to build the project. The build artifacts will be stored in the `dist/` directory.
1313

1414
## Publishing
1515

16-
After building your library with `ng build angular-breadcrumbs-light`, go to the dist folder `cd dist/angular-breadcrumbs-light` and run `npm publish`.
16+
After building your library with `ng build AngularBreadcrumbsLight`, go to the dist folder `cd dist/angular-breadcrumbs-light` and run `npm publish`.
1717

1818
## Running unit tests
1919

20-
Run `ng test angular-breadcrumbs-light` to execute the unit tests via [Karma](https://karma-runner.github.io).
20+
Run `ng test AngularBreadcrumbsLight` to execute the unit tests via [Karma](https://karma-runner.github.io).
2121

2222
## Further help
2323

projects/angular-breadcrumbs-light/src/lib/angular-breadcrumbs-light.module.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1+
import { BrowserModule } from '@angular/platform-browser';
12
import { NgModule } from '@angular/core';
3+
import { RouterModule } from '@angular/router';
24
import { BreadcrumbsComponent } from './components';
35

46
@NgModule({
57
declarations: [BreadcrumbsComponent],
68
imports: [
9+
BrowserModule,
10+
RouterModule
711
],
812
exports: [BreadcrumbsComponent]
913
})

src/app/pages/login/login.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ export class LoginComponent implements OnInit {
3434
/* Vars
3535
/* ------------------------------------------------------------------- */
3636

37-
private show = true;
38-
private login: string;
39-
private pwd: string;
37+
public show = true;
38+
public login: string;
39+
public pwd: string;
4040

4141
/* ------------------------------------------------------------------- */
4242
/* Constructor

tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@
2020
],
2121
"paths": {
2222
"angular-breadcrumbs-light": [
23+
"dist/angular-breadcrumbs-light",
2324
"dist/angular-breadcrumbs-light"
2425
],
2526
"angular-breadcrumbs-light/*": [
27+
"dist/angular-breadcrumbs-light/*",
2628
"dist/angular-breadcrumbs-light/*"
2729
]
2830
}

0 commit comments

Comments
 (0)