Skip to content
This repository was archived by the owner on Jun 19, 2023. It is now read-only.

Commit cc49b91

Browse files
author
Pascal Iske
committed
Initial commit
0 parents  commit cc49b91

File tree

104 files changed

+10210
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+10210
-0
lines changed

.editorconfig

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# top-most editorconfig file
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 4
7+
end_of_line = lf
8+
charset = utf-8
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
[.*rc]
13+
indent_size = 2
14+
15+
[*.{yml,json,lock}]
16+
indent_size = 2

.gitignore

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
8+
# dependencies
9+
/node_modules
10+
11+
# IDEs and editors
12+
/.idea
13+
.project
14+
.classpath
15+
.c9/
16+
*.launch
17+
.settings/
18+
*.sublime-workspace
19+
20+
# IDE - VSCode
21+
.vscode/*
22+
!.vscode/settings.json
23+
!.vscode/tasks.json
24+
!.vscode/launch.json
25+
!.vscode/extensions.json
26+
27+
# misc
28+
/.sass-cache
29+
/connect.lock
30+
/coverage
31+
/libpeerconnection.log
32+
npm-debug.log
33+
yarn-error.log
34+
testem.log
35+
/typings
36+
37+
# System Files
38+
.DS_Store
39+
Thumbs.db

.prettierrc

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"arrowParens": "avoid",
3+
"bracketSpacing": true,
4+
"printWidth": 100,
5+
"semi": false,
6+
"singleQuote": true,
7+
"tabWidth": 4,
8+
"trailingComma": "all"
9+
}

.travis.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
language: node_js
2+
node_js:
3+
- '7'
4+
- '8'
5+
- '9'
6+
before_install: yarn global add greenkeeper-lockfile@1
7+
install:
8+
- yarn install
9+
before_script: greenkeeper-lockfile-update
10+
script:
11+
- yarn run build --prod
12+
- yarn run lint
13+
- yarn run test
14+
after_script: greenkeeper-lockfile-upload
15+
before_deploy:
16+
- cd dist/form-elements
17+
deploy:
18+
provider: npm
19+
20+
api_key:
21+
secure: PZ7AQtol8ty7BjtgG3IhZ26cCcLoZK9tpRrofy6mWupdn3KO+88LCNAf/VYF2XVvAmpMXUb8EbjkLh1qrpumXAv/2COZ0Yi8VofgzAEKpu+Mxm7ixBYvaDR8ohEVEIvq6a9MfbqMXs2Gvx+/BX+OZ6Kwk/OTQi03qIMEdqVMB63++fae6G/eS3PjzLhhxt2oETTQBB7xeWx/1DlsnGWkehLytbBnED1kcSgBE/TZRYrRebFJihX2GDVMejGJHgiT2s6sq3YAkERDJf/LzV5c2qBsFbHn+akgycCQOKwRmWA7qGpvLEZTLlBCylS22mMh6QZXw0ZmpfCeHGui8fBxga3W7v6UwURzT4YCx5t6ebP8Zp1ANUgrt6iQvuyQpkyKkGWjBIQnFoGITPg8lKGRQjCsFQXlcvLKXJv9+q+2scTEmJJSNKyEb2vAfrMVYz20F3hxWWn1fbxNKkGm/7uHC2tlZYlaUGaoFrz4RZp5KkMTgAzqxsIZLMlG0Vd55wopouE3IP+Jz6yC55yfLJCwvTknCodRRr5jHmkj+2I3txVoYdB0/gDASUilyzPNuPZgCTTnvAwcMwy5CbwdHebcyXj/LYmep7HlrFxDTy+YapGbD5PY8Vi1UwIHJ+5DnbtSbjUnU5NyaC2v+d6L1IyTtaPkW9awXRjSg7wPaS0UH/I=
22+
skip_cleanup: true
23+
on:
24+
tags: true
25+
branch: master
26+
node: 9
27+
env:
28+
global:
29+
secure: 2rbz/QpzlCX6ctvKx6/i5CqrBInzksS4t1C4ovkVQOZdWkBbzNR+fe98VYlCiUCsZAZGDvPeg10uwXjQUFz3XeKp8tEHFlxqwpC8UPxJXFIRyjig7aTCKFoQMir+KfwnO5kYNNEP1eFMygXZDx/m+3RvqFb3b5dN2Xdy1wvLQWbfThTV3SDDIVRxATzIdxIkovBPwxoUpi1Wu5nQg8EiMmK87uB/NJ+Qe9+Ah3j25bfaESmVz9Qc2YfAc0bJOVg0BhSlmjpusMRVILGASxYMEZFslHbEbP9APpjtjL+Cy/fHZlaXI6uLWzuFpRiXNl0QjbeiHvbEEqPrqb23+8wl9+Az4cewVKctDl2wrxm9haThf3mU2CCwxboqOYwqZbPa94W+piCMJAEU9ed1Aash5NSQ15t1DuxmcIVDJ2sR1pGMWFQt8hji277X/N/JxSmpiqDMTQjjB4lR4QZQFAE2pFmkF5Z4tUTS2VUPx0nKZ9sHcVRx6bETsERN5f3csbxMq5PYyw6IY+kyOzIMNYuoqh4zwK93CkgsMZu+15HM9p6S71F6aZTU1ET1OiGEbLXnmqxmlXKrvnJbODyfqnGiJlVdwQxrZiQg9QDXLaXFpHbNH3QJzoJLr79G7MvQipYVoEOJv9QUMy6VEXdlKIWlRrLD/YF2vM/Eqe8CMqquvck=

LICENSE.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# The MIT License
2+
3+
Copyright 2018 Pascal Iske, https://pascal-iske.de
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# `@pascaliske/form-elements`
2+
3+
[![Build Status](https://travis-ci.com/pascaliske/form-elements.svg?branch=master)](https://travis-ci.com/pascaliske/form-elements)
4+
5+
## Installation
6+
7+
To install the module use the following command:
8+
9+
```bash
10+
$ yarn add @pascaliske/form-elements
11+
```
12+
13+
## Usage
14+
15+
Import the module in your Angular app:
16+
17+
```typescript
18+
import { NgModule } from '@angular/core'
19+
import { CommonModule } from '@angular/common'
20+
import { BrowserModule } from '@angular/platform-browser'
21+
import { FormElementsModule } from '@pascaliske/form-elements'
22+
import { AppComponent } from './app.component'
23+
24+
@NgModule({
25+
bootstrap: [AppComponent],
26+
declarations: [AppComponent],
27+
imports: [CommonModule, BrowserModule, FormElementsModule],
28+
})
29+
export class AppModule {}
30+
```
31+
32+
Then import the styles in your global scss styles:
33+
34+
```scss
35+
@import '~@pascaliske/form-elements/styles';
36+
```
37+
38+
Now you can use the components in your template:
39+
40+
```html
41+
<cmp-f-row>
42+
<cmp-f-column>
43+
<cmp-f-input label="My text input"></cmp-f-input>
44+
</cmp-f-column>
45+
</cmp-f-row>
46+
```
47+
48+
## License
49+
50+
MIT © [Pascal Iske](https://pascal-iske.de)

angular.json

+163
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,163 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"defaultProject": "form-elements",
6+
"cli": {
7+
"packageManager": "yarn"
8+
},
9+
"schematics": {
10+
"@schematics/angular:component": {
11+
"styleext": "scss"
12+
}
13+
},
14+
"projects": {
15+
"form-elements-demo": {
16+
"root": "",
17+
"sourceRoot": "src",
18+
"projectType": "application",
19+
"prefix": "cmp",
20+
"schematics": {},
21+
"architect": {
22+
"build": {
23+
"builder": "@angular-devkit/build-angular:browser",
24+
"options": {
25+
"outputPath": "dist/form-elements-demo",
26+
"index": "src/index.html",
27+
"main": "src/main.ts",
28+
"polyfills": "src/polyfills.ts",
29+
"tsConfig": "src/tsconfig.app.json",
30+
"assets": [
31+
{
32+
"glob": "favicon.ico",
33+
"input": "src",
34+
"output": "/"
35+
},
36+
{
37+
"glob": "**/*",
38+
"input": "src/assets",
39+
"output": "/assets"
40+
}
41+
],
42+
"styles": [
43+
"src/scss/styles.scss"
44+
],
45+
"scripts": [],
46+
"stylePreprocessorOptions": {
47+
"includePaths": [
48+
"dist/form-elements/"
49+
]
50+
}
51+
},
52+
"configurations": {
53+
"production": {
54+
"fileReplacements": [
55+
{
56+
"replace": "src/environments/environment.ts",
57+
"with": "src/environments/environment.prod.ts"
58+
}
59+
],
60+
"optimization": true,
61+
"outputHashing": "all",
62+
"sourceMap": false,
63+
"extractCss": true,
64+
"namedChunks": false,
65+
"aot": true,
66+
"extractLicenses": true,
67+
"vendorChunk": false,
68+
"buildOptimizer": true
69+
}
70+
}
71+
},
72+
"serve": {
73+
"builder": "@angular-devkit/build-angular:dev-server",
74+
"options": {
75+
"browserTarget": "form-elements-demo:build"
76+
},
77+
"configurations": {
78+
"production": {
79+
"browserTarget": "form-elements-demo:build:production"
80+
}
81+
}
82+
},
83+
"extract-i18n": {
84+
"builder": "@angular-devkit/build-angular:extract-i18n",
85+
"options": {
86+
"browserTarget": "form-elements-demo:build"
87+
}
88+
},
89+
"test": {
90+
"builder": "@angular-devkit/build-angular:karma",
91+
"options": {
92+
"main": "src/test.ts",
93+
"polyfills": "src/polyfills.ts",
94+
"tsConfig": "src/tsconfig.spec.json",
95+
"karmaConfig": "src/karma.conf.js",
96+
"styles": [
97+
"src/scss/styles.css"
98+
],
99+
"scripts": [],
100+
"assets": [
101+
"src/favicon.ico",
102+
"src/assets"
103+
]
104+
}
105+
},
106+
"lint": {
107+
"builder": "@angular-devkit/build-angular:tslint",
108+
"options": {
109+
"fix": true,
110+
"tsConfig": [
111+
"src/tsconfig.app.json",
112+
"src/tsconfig.spec.json"
113+
],
114+
"exclude": [
115+
"**/node_modules/**"
116+
]
117+
}
118+
}
119+
}
120+
},
121+
"form-elements": {
122+
"root": "projects/form-elements",
123+
"sourceRoot": "projects/form-elements/src",
124+
"projectType": "library",
125+
"prefix": "lib",
126+
"architect": {
127+
"build": {
128+
"builder": "@angular-devkit/build-ng-packagr:build",
129+
"options": {
130+
"tsConfig": "projects/form-elements/tsconfig.lib.json",
131+
"project": "projects/form-elements/ng-package.json"
132+
},
133+
"configurations": {
134+
"production": {
135+
"project": "projects/form-elements/ng-package.prod.json"
136+
}
137+
}
138+
},
139+
"test": {
140+
"builder": "@angular-devkit/build-angular:karma",
141+
"options": {
142+
"main": "projects/form-elements/src/test.ts",
143+
"tsConfig": "projects/form-elements/tsconfig.spec.json",
144+
"karmaConfig": "projects/form-elements/karma.conf.js"
145+
}
146+
},
147+
"lint": {
148+
"builder": "@angular-devkit/build-angular:tslint",
149+
"options": {
150+
"fix": true,
151+
"tsConfig": [
152+
"projects/form-elements/tsconfig.lib.json",
153+
"projects/form-elements/tsconfig.spec.json"
154+
],
155+
"exclude": [
156+
"**/node_modules/**"
157+
]
158+
}
159+
}
160+
}
161+
}
162+
}
163+
}

form-elements.code-workspace

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"folders": [
3+
{
4+
"path": "."
5+
},
6+
{
7+
"name": "package",
8+
"path": "./projects/form-elements"
9+
},
10+
{
11+
"name": "testing",
12+
"path": "./src"
13+
}
14+
],
15+
"settings": {
16+
"editor.formatOnSave": true,
17+
"editor.formatOnType": true,
18+
"tslint.autoFixOnSave": true,
19+
"typescript.tsdk": "form-elements/node_modules/typescript/lib",
20+
"[yaml]": {
21+
"editor.formatOnSave": false,
22+
"editor.formatOnType": false
23+
},
24+
"[json]": {
25+
"editor.formatOnSave": false,
26+
"editor.formatOnType": false
27+
},
28+
"[jsonc]": {
29+
"editor.formatOnSave": false,
30+
"editor.formatOnType": false
31+
},
32+
"[html]": {
33+
"editor.formatOnSave": false,
34+
"editor.formatOnType": false
35+
},
36+
"[scss]": {
37+
"editor.formatOnSave": false,
38+
"editor.formatOnType": false
39+
}
40+
}
41+
}

0 commit comments

Comments
 (0)