Skip to content

Commit

Permalink
feat: added button component
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergej Tschigraj committed Dec 29, 2018
1 parent 776d86a commit dce2684
Show file tree
Hide file tree
Showing 22 changed files with 1,272 additions and 127 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true

Expand Down
31 changes: 9 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,14 @@
# MyLib
# ArtsLib

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.0.6.
Simple component library with only one button component created in tutorial for [artslab.info](http://artslab.info)

## Development server

Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
## Usage

## Code scaffolding
### Button component

Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.

## Build

Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.

## Running unit tests

Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).

## Running end-to-end tests

Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).

## Further help

To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
```
<al-button type="success" (buttonClick)="myClickFn($event)">Hello world</al-button>
<al-button type="warn" (buttonClick)="myClickFn($event)">Hello world</al-button>
<al-button type="info" (buttonClick)="myClickFn($event)">Hello world</al-button>
```
35 changes: 35 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,41 @@
}
}
}
},
"arts-lib": {
"root": "projects/arts-lib",
"sourceRoot": "projects/arts-lib/src",
"projectType": "library",
"prefix": "al",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/arts-lib/tsconfig.lib.json",
"project": "projects/arts-lib/ng-package.json"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/arts-lib/src/test.ts",
"tsConfig": "projects/arts-lib/tsconfig.spec.json",
"karmaConfig": "projects/arts-lib/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/arts-lib/tsconfig.lib.json",
"projects/arts-lib/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
}
},
"defaultProject": "my-lib"
Expand Down
Loading

0 comments on commit dce2684

Please sign in to comment.