@klippa/ngx-enhancy-forms 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.editorconfig ADDED
@@ -0,0 +1,16 @@
1
+ # Editor configuration, see https://editorconfig.org
2
+ root = true
3
+
4
+ [*]
5
+ charset = utf-8
6
+ indent_style = space
7
+ indent_size = 2
8
+ insert_final_newline = true
9
+ trim_trailing_whitespace = true
10
+
11
+ [*.ts]
12
+ quote_type = single
13
+
14
+ [*.md]
15
+ max_line_length = off
16
+ trim_trailing_whitespace = false
@@ -0,0 +1,18 @@
1
+ name: Node.js CI
2
+
3
+ on:
4
+ pull_request:
5
+ branches:
6
+ - main
7
+ - develop
8
+ jobs:
9
+ setup:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v2
13
+ - name: Use Node.js
14
+ uses: actions/setup-node@v1
15
+ with:
16
+ node-version: 14.x
17
+ - run: yarn install
18
+ - run: yarn run build
@@ -0,0 +1,22 @@
1
+ name: NPM Publish
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ jobs:
9
+ publish:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v1
13
+ - uses: actions/setup-node@v1
14
+ with:
15
+ registry-url: 'https://registry.npmjs.org'
16
+ node-version: 14.x
17
+ always-auth: true
18
+ - run: yarn install
19
+ - run: yarn run build
20
+ - run: yarn publish --access public
21
+ env:
22
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 Klippa
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # NgxEnhancyForms
2
+
3
+ TODO: Description
4
+
5
+ # Install guide
6
+
7
+ ### yarn
8
+ `yarn add @klippa/ngx-enhancy-forms`
9
+
10
+ ### npm
11
+ `npm install @klippa/ngx-enhancy-forms`
12
+
13
+ ## Import
14
+
15
+ TODO
16
+
17
+ EXAMPLE:
18
+
19
+ ```
20
+ I recommend importing the module in a generic ui module and then export it from there, so you can use the ngx-async-template everywhere in your app.
21
+
22
+ \`\`\`js
23
+ import { NgxAsyncTemplateModule } from '@klippa/ngx-async-template';
24
+
25
+ @NgModule({
26
+ imports: [
27
+ NgxAsyncTemplateModule,
28
+ ],
29
+ exports: [
30
+ NgxAsyncTemplateModule,
31
+ ],
32
+ })
33
+ export class UiModule {}
34
+ \`\`\`
35
+ ```
36
+
37
+ # Example
38
+
39
+ TODO
40
+
41
+ # Usage
42
+
43
+ TODO
package/angular.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3
+ "version": 1,
4
+ "newProjectRoot": "projects",
5
+ "projects": {
6
+ "ngx-enhancy-forms": {
7
+ "projectType": "library",
8
+ "root": "./",
9
+ "sourceRoot": "./src",
10
+ "prefix": "lib",
11
+ "architect": {
12
+ "build": {
13
+ "builder": "@angular-devkit/build-angular:ng-packagr",
14
+ "options": {
15
+ "tsConfig": "./tsconfig.lib.json",
16
+ "project": "./ng-package.json"
17
+ },
18
+ "configurations": {
19
+ "production": {
20
+ "tsConfig": "./tsconfig.lib.prod.json"
21
+ }
22
+ }
23
+ }
24
+ }
25
+ }
26
+ },
27
+ "defaultProject": "ngx-enhancy-forms"
28
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "./node_modules/ng-packagr/ng-package.schema.json",
3
+ "dest": "./dist",
4
+ "lib": {
5
+ "entryFile": "src/public-api.ts"
6
+ }
7
+ }
package/package.json ADDED
@@ -0,0 +1,30 @@
1
+ {
2
+ "name": "@klippa/ngx-enhancy-forms",
3
+ "version": "0.0.1",
4
+ "private": false,
5
+ "scripts": {
6
+ "ng": "ng",
7
+ "start": "ng serve",
8
+ "build": "ng build --prod",
9
+ "test": "ng test",
10
+ "lint": "ng lint"
11
+ },
12
+ "dependencies": {
13
+ "tslib": "^2.0.0"
14
+ },
15
+ "devDependencies": {
16
+ "@angular-devkit/build-angular": "~0.1001.7",
17
+ "@angular/cli": "~10.1.6",
18
+ "@angular/compiler-cli": "~10.1.6",
19
+ "@angular/common": "~10.1.6",
20
+ "@angular/compiler": "~10.1.6",
21
+ "@angular/core": "~10.1.6",
22
+ "@angular/localize": "~10.1.6",
23
+ "@angular/platform-browser": "~10.1.6",
24
+ "@angular/platform-browser-dynamic": "~10.1.6",
25
+ "@types/node": "^12.11.1",
26
+ "ng-packagr": "~10.0.0",
27
+ "ts-node": "~8.3.0",
28
+ "typescript": "~3.9.7"
29
+ }
30
+ }
@@ -0,0 +1 @@
1
+ it works!
@@ -0,0 +1,13 @@
1
+ import { Component } from "@angular/core";
2
+
3
+ @Component({
4
+ selector: 'ngx-enhancy-forms',
5
+ templateUrl: './ngx-enhancy-forms.component.html',
6
+ styles: [':host { display: block; }'],
7
+ })
8
+ export class NgxEnhancyFormsComponent {
9
+
10
+ constructor() {}
11
+
12
+ ngOnChanges(): void {}
13
+ }
@@ -0,0 +1,19 @@
1
+ import {NgModule} from '@angular/core';
2
+ import {
3
+ NgxEnhancyFormsComponent,
4
+ } from './ngx-enhancy-forms.component';
5
+ import {CommonModule} from "@angular/common";
6
+
7
+ @NgModule({
8
+ imports: [
9
+ CommonModule
10
+ ],
11
+ declarations: [
12
+ NgxEnhancyFormsComponent
13
+ ],
14
+ exports: [
15
+ NgxEnhancyFormsComponent
16
+ ]
17
+ })
18
+ export class NgxEnhancyFormsModule {
19
+ }
@@ -0,0 +1,6 @@
1
+ /*
2
+ * Public API Surface of ngx-enhancy-forms
3
+ */
4
+
5
+ export * from './lib/ngx-enhancy-forms.component';
6
+ export * from './lib/ngx-enhancy-forms.module';
package/tsconfig.json ADDED
@@ -0,0 +1,37 @@
1
+ /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
+ {
3
+ "strictNullChecks": false,
4
+ "compileOnSave": false,
5
+ "compilerOptions": {
6
+ "baseUrl": "./",
7
+ "outDir": "./dist/out-tsc",
8
+ "forceConsistentCasingInFileNames": true,
9
+ "strict": false,
10
+ "noImplicitReturns": true,
11
+ "noFallthroughCasesInSwitch": true,
12
+ "sourceMap": true,
13
+ "declaration": false,
14
+ "downlevelIteration": true,
15
+ "paths": {
16
+ "ngx-enhancy-forms": [
17
+ "dist/ngx-enhancy-forms/ngx-enhancy-forms",
18
+ "dist/ngx-enhancy-forms"
19
+ ]
20
+ },
21
+ "experimentalDecorators": true,
22
+ "moduleResolution": "node",
23
+ "importHelpers": true,
24
+ "target": "es2015",
25
+ "module": "es2020",
26
+ "lib": [
27
+ "es2018",
28
+ "dom"
29
+ ]
30
+ },
31
+ "angularCompilerOptions": {
32
+ "enableI18nLegacyMessageIdFormat": false,
33
+ "strictInjectionParameters": false,
34
+ "strictInputAccessModifiers": false,
35
+ "strictTemplates": false
36
+ }
37
+ }
@@ -0,0 +1,25 @@
1
+ /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
+ {
3
+ "extends": "./tsconfig.json",
4
+ "compilerOptions": {
5
+ "outDir": "./out-tsc/lib",
6
+ "target": "es2015",
7
+ "declaration": true,
8
+ "declarationMap": true,
9
+ "inlineSources": true,
10
+ "types": [],
11
+ "lib": [
12
+ "dom",
13
+ "es2018"
14
+ ]
15
+ },
16
+ "angularCompilerOptions": {
17
+ "skipTemplateCodegen": true,
18
+ "strictMetadataEmit": true,
19
+ "enableResourceInlining": true
20
+ },
21
+ "exclude": [
22
+ "src/test.ts",
23
+ "**/*.spec.ts"
24
+ ]
25
+ }
@@ -0,0 +1,10 @@
1
+ /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
+ {
3
+ "extends": "./tsconfig.lib.json",
4
+ "compilerOptions": {
5
+ "declarationMap": false
6
+ },
7
+ "angularCompilerOptions": {
8
+ "enableIvy": false
9
+ }
10
+ }
package/tslint.json ADDED
@@ -0,0 +1,140 @@
1
+ {
2
+ "extends": "tslint:recommended",
3
+ "rulesDirectory": [
4
+ "codelyzer"
5
+ ],
6
+ "rules": {
7
+ "align": {
8
+ "options": [
9
+ "parameters",
10
+ "statements"
11
+ ]
12
+ },
13
+ "array-type": false,
14
+ "arrow-return-shorthand": true,
15
+ "curly": true,
16
+ "deprecation": {
17
+ "severity": "warning"
18
+ },
19
+ "eofline": true,
20
+ "import-blacklist": [
21
+ true,
22
+ "rxjs/Rx"
23
+ ],
24
+ "import-spacing": true,
25
+ "indent": {
26
+ "options": [
27
+ "spaces"
28
+ ]
29
+ },
30
+ "max-classes-per-file": false,
31
+ "max-line-length": [
32
+ true,
33
+ 140
34
+ ],
35
+ "member-ordering": [
36
+ true,
37
+ {
38
+ "order": [
39
+ "static-field",
40
+ "instance-field",
41
+ "static-method",
42
+ "instance-method"
43
+ ]
44
+ }
45
+ ],
46
+ "no-console": [
47
+ true,
48
+ "debug",
49
+ "info",
50
+ "time",
51
+ "timeEnd",
52
+ "trace"
53
+ ],
54
+ "no-empty": false,
55
+ "no-inferrable-types": [
56
+ true,
57
+ "ignore-params"
58
+ ],
59
+ "no-non-null-assertion": true,
60
+ "no-redundant-jsdoc": true,
61
+ "no-switch-case-fall-through": true,
62
+ "no-var-requires": false,
63
+ "object-literal-key-quotes": [
64
+ true,
65
+ "as-needed"
66
+ ],
67
+ "quotemark": [
68
+ true,
69
+ "single"
70
+ ],
71
+ "semicolon": {
72
+ "options": [
73
+ "always"
74
+ ]
75
+ },
76
+ "space-before-function-paren": {
77
+ "options": {
78
+ "anonymous": "never",
79
+ "asyncArrow": "always",
80
+ "constructor": "never",
81
+ "method": "never",
82
+ "named": "never"
83
+ }
84
+ },
85
+ "typedef": [
86
+ true,
87
+ "call-signature"
88
+ ],
89
+ "typedef-whitespace": {
90
+ "options": [
91
+ {
92
+ "call-signature": "nospace",
93
+ "index-signature": "nospace",
94
+ "parameter": "nospace",
95
+ "property-declaration": "nospace",
96
+ "variable-declaration": "nospace"
97
+ },
98
+ {
99
+ "call-signature": "onespace",
100
+ "index-signature": "onespace",
101
+ "parameter": "onespace",
102
+ "property-declaration": "onespace",
103
+ "variable-declaration": "onespace"
104
+ }
105
+ ]
106
+ },
107
+ "variable-name": {
108
+ "options": [
109
+ "ban-keywords",
110
+ "check-format",
111
+ "allow-pascal-case"
112
+ ]
113
+ },
114
+ "whitespace": {
115
+ "options": [
116
+ "check-branch",
117
+ "check-decl",
118
+ "check-operator",
119
+ "check-separator",
120
+ "check-type",
121
+ "check-typecast"
122
+ ]
123
+ },
124
+ "component-class-suffix": true,
125
+ "contextual-lifecycle": true,
126
+ "directive-class-suffix": true,
127
+ "no-conflicting-lifecycle": true,
128
+ "no-host-metadata-property": true,
129
+ "no-input-rename": true,
130
+ "no-inputs-metadata-property": true,
131
+ "no-output-native": true,
132
+ "no-output-on-prefix": true,
133
+ "no-output-rename": true,
134
+ "no-outputs-metadata-property": true,
135
+ "template-banana-in-box": true,
136
+ "template-no-negated-async": true,
137
+ "use-lifecycle-interface": true,
138
+ "use-pipe-transform-interface": true
139
+ }
140
+ }