-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 7be2b68
Showing
54 changed files
with
15,232 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"projectName": "control-value-transformer", | ||
"projectOwner": "@ngze", | ||
"repoType": "github", | ||
"repoHost": "https://github.com", | ||
"files": [ | ||
"README.md" | ||
], | ||
"imageSize": 100, | ||
"commit": true, | ||
"commitConvention": "angular", | ||
"contributors": [ | ||
{ | ||
"login": "ZeevKatz", | ||
"name": "Zeev Katz", | ||
"avatar_url": "https://avatars0.githubusercontent.com/u/21024245?v=4", | ||
"profile": "https://il.linkedin.com/in/zeev-katz", | ||
"contributions": [ | ||
"code", | ||
"doc", | ||
"ideas", | ||
"maintenance" | ||
] | ||
} | ||
], | ||
"contributorsPerLine": 7 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# This file is used by the build system to adjust CSS and JS output to support the specified browsers below. | ||
# For additional information regarding the format and rule options, please see: | ||
# https://github.com/browserslist/browserslist#queries | ||
|
||
# For the full list of supported browsers by the Angular framework, please see: | ||
# https://angular.io/guide/browser-support | ||
|
||
# You can see what browsers were selected by your queries by running: | ||
# npx browserslist | ||
|
||
last 1 Chrome version | ||
last 1 Firefox version | ||
last 2 Edge major versions | ||
last 2 Safari major versions | ||
last 2 iOS major versions | ||
Firefox ESR | ||
not IE 9-10 # Angular support for IE 9-10 has been deprecated and will be removed as of Angular v11. To opt-in, remove the 'not' prefix on this line. | ||
not IE 11 # Angular supports IE 11 only as an opt-in. To opt-in, remove the 'not' prefix on this line. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Editor configuration, see https://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.ts] | ||
quote_type = single | ||
|
||
[*.md] | ||
max_line_length = off | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
{ | ||
"overrides": [ | ||
{ | ||
"files": [ | ||
"*.ts" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 2020, | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"@typescript-eslint", | ||
"@angular-eslint" | ||
], | ||
"rules": { | ||
"@typescript-eslint/array-type": "off", | ||
"arrow-parens": "off", | ||
"@angular-eslint/component-class-suffix": "error", | ||
"@angular-eslint/contextual-lifecycle": "error", | ||
"@angular-eslint/directive-class-suffix": "error", | ||
"no-restricted-imports": [ | ||
"error", | ||
{ | ||
"paths": [ | ||
{ | ||
"name": "rxjs/Rx", | ||
"message": "Please import directly from 'rxjs' instead" | ||
} | ||
] | ||
} | ||
], | ||
"@typescript-eslint/interface-name-prefix": "off", | ||
"max-classes-per-file": "off", | ||
"max-len": [ | ||
"error", | ||
{ | ||
"code": 140 | ||
} | ||
], | ||
"@typescript-eslint/explicit-member-accessibility": "off", | ||
"@typescript-eslint/member-ordering": [ | ||
"error", | ||
{ | ||
"default": [ | ||
"static-field", | ||
"instance-field", | ||
"static-method", | ||
"instance-method" | ||
] | ||
} | ||
], | ||
"no-multiple-empty-lines": "off", | ||
"no-restricted-syntax": [ | ||
"error", | ||
{ | ||
"selector": "CallExpression[callee.object.name=\"console\"][callee.property.name=/^(debug|info|time|timeEnd|trace)$/]", | ||
"message": "Unexpected property on console object was called" | ||
} | ||
], | ||
"no-empty": "off", | ||
"@typescript-eslint/no-inferrable-types": [ | ||
"error", | ||
{ | ||
"ignoreParameters": true | ||
} | ||
], | ||
"@typescript-eslint/no-non-null-assertion": "error", | ||
"no-fallthrough": "error", | ||
"@typescript-eslint/no-var-requires": "off", | ||
"quote-props": [ | ||
"error", | ||
"as-needed" | ||
], | ||
"quotes": [ | ||
"error", | ||
"single" | ||
], | ||
"comma-dangle": "off", | ||
"@angular-eslint/no-conflicting-lifecycle": "error", | ||
"@angular-eslint/no-host-metadata-property": "error", | ||
"@angular-eslint/no-input-rename": "error", | ||
"@angular-eslint/no-inputs-metadata-property": "error", | ||
"@angular-eslint/no-output-native": "error", | ||
"@angular-eslint/no-output-on-prefix": "error", | ||
"@angular-eslint/no-output-rename": "error", | ||
"@angular-eslint/no-outputs-metadata-property": "error", | ||
"@angular-eslint/use-lifecycle-interface": "warn", | ||
"@angular-eslint/use-pipe-transform-interface": "error", | ||
"@angular-eslint/directive-selector": [ | ||
"error", | ||
{ "type": "attribute", "prefix": "", "style": "camelCase" } | ||
], | ||
"@angular-eslint/component-selector": [ | ||
"error", | ||
{ "type": "element", "prefix": "", "style": "kebab-case" } | ||
] | ||
} | ||
}, | ||
{ | ||
"files": [ | ||
"*.component.html" | ||
], | ||
"parser": "@angular-eslint/template-parser", | ||
"plugins": [ | ||
"@angular-eslint/template" | ||
], | ||
"rules": { | ||
"@angular-eslint/template/banana-in-a-box": "error", | ||
"@angular-eslint/template/no-negated-async": "error" | ||
} | ||
}, | ||
{ | ||
"files": [ | ||
"*.component.ts" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaVersion": 2020, | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"@angular-eslint/template" | ||
], | ||
"processor": "@angular-eslint/template/extract-inline-html" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Contributor Covenant Code of Conduct | ||
|
||
## Our Pledge | ||
|
||
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. | ||
|
||
## Our Standards | ||
|
||
Examples of behavior that contributes to creating a positive environment include: | ||
|
||
* Using welcoming and inclusive language | ||
* Being respectful of differing viewpoints and experiences | ||
* Gracefully accepting constructive criticism | ||
* Focusing on what is best for the community | ||
* Showing empathy towards other community members | ||
|
||
Examples of unacceptable behavior by participants include: | ||
|
||
* The use of sexualized language or imagery and unwelcome sexual attention or advances | ||
* Trolling, insulting/derogatory comments, and personal or political attacks | ||
* Public or private harassment | ||
* Publishing others' private information, such as a physical or electronic address, without explicit permission | ||
* Other conduct which could reasonably be considered inappropriate in a professional setting | ||
|
||
## Our Responsibilities | ||
|
||
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. | ||
|
||
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. | ||
|
||
## Scope | ||
|
||
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. | ||
|
||
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. | ||
|
||
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. | ||
|
||
## Attribution | ||
|
||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version] | ||
|
||
[homepage]: http://contributor-covenant.org | ||
[version]: http://contributor-covenant.org/version/1/4/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# Contributing to Control Value Transformer | ||
|
||
🙏 We would ❤️ for you to contribute to Control Value Transformer and help make it even better than it is today! | ||
|
||
# Developing | ||
|
||
Start by installing all dependencies: | ||
|
||
```bash | ||
npm i | ||
``` | ||
|
||
Run the tests: | ||
|
||
```bash | ||
npm test | ||
npm run e2e | ||
``` | ||
|
||
Run the playground app: | ||
|
||
```bash | ||
npm start | ||
``` | ||
|
||
## Building | ||
|
||
```bash | ||
npm run build | ||
``` | ||
|
||
## <a name="rules"></a> Coding Rules | ||
|
||
To ensure consistency throughout the source code, keep these rules in mind as you are working: | ||
|
||
- All features or bug fixes **must be tested** by one or more specs (unit-tests). | ||
- All public API methods **must be documented**. | ||
|
||
## <a name="commit"></a> Commit Message Guidelines | ||
|
||
We have very precise rules over how our git commit messages can be formatted. This leads to **more | ||
readable messages** that are easy to follow when looking through the **project history**. But also, | ||
we use the git commit messages to **generate the Control Value Transformer changelog**. | ||
|
||
### Commit Message Format | ||
|
||
Each commit message consists of a **header**, a **body** and a **footer**. The header has a special | ||
format that includes a **type**, a **scope** and a **subject**: | ||
|
||
``` | ||
<type>(<scope>): <subject> | ||
<BLANK LINE> | ||
<body> | ||
<BLANK LINE> | ||
<footer> | ||
``` | ||
|
||
The **header** is mandatory and the **scope** of the header is optional. | ||
|
||
Any line of the commit message cannot be longer 100 characters! This allows the message to be easier | ||
to read on GitHub as well as in various git tools. | ||
|
||
The footer should contain a [closing reference to an issue](https://help.github.com/articles/closing-issues-via-commit-messages/) if any. | ||
|
||
Samples: (even more [samples](https://github.com/angular/angular/commits/master)) | ||
|
||
``` | ||
docs(changelog): update changelog to beta.5 | ||
``` | ||
|
||
``` | ||
fix(release): need to depend on latest rxjs and zone.js | ||
The version in our package.json gets copied to the one we publish, and users need the latest of these. | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<!-- | ||
PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION. | ||
ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION. | ||
--> | ||
|
||
## I'm submitting a... | ||
|
||
<!-- Check one of the following options with "x" --> | ||
<pre><code> | ||
[ ] Regression (a behavior that used to work and stopped working in a new release) | ||
[ ] Bug report <!-- Please search GitHub for a similar issue or PR before submitting --> | ||
[ ] Performance issue | ||
[ ] Feature request | ||
[ ] Documentation issue or request | ||
[ ] Support request | ||
[ ] Other... Please describe: | ||
</code></pre> | ||
|
||
## Current behavior | ||
|
||
<!-- Describe how the issue manifests. --> | ||
|
||
## Expected behavior | ||
|
||
<!-- Describe what the desired behavior would be. --> | ||
|
||
## Minimal reproduction of the problem with instructions | ||
|
||
## What is the motivation / use case for changing the behavior? | ||
|
||
<!-- Describe the motivation or the concrete use case. --> | ||
|
||
## Environment | ||
|
||
<pre><code> | ||
Angular version: X.Y.Z | ||
<!-- Check whether this is still an issue in the most recent Angular version --> | ||
|
||
Browser: | ||
- [ ] Chrome (desktop) version XX | ||
- [ ] Chrome (Android) version XX | ||
- [ ] Chrome (iOS) version XX | ||
- [ ] Firefox version XX | ||
- [ ] Safari (desktop) version XX | ||
- [ ] Safari (iOS) version XX | ||
- [ ] IE version XX | ||
- [ ] Edge version XX | ||
|
||
For Tooling issues: | ||
- Node version: XX <!-- run `node --version` --> | ||
- Platform: <!-- Mac, Linux, Windows --> | ||
|
||
Others: | ||
<!-- Anything else relevant? Operating system version, IDE, package manager, HTTP server, ... --> | ||
</code></pre> |
Oops, something went wrong.