Skip to content

Commit 9956321

Browse files
committed
Merge branch 'release/1.0.0'
2 parents 388a424 + 7ed3477 commit 9956321

File tree

156 files changed

+3805
-1276
lines changed

Some content is hidden

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

156 files changed

+3805
-1276
lines changed

.commitlintrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": [
3+
"@commitlint/config-conventional"
4+
]
5+
}

.eslintrc

+9-14
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,19 @@
1010
{
1111
"files": ["*.ts"],
1212
"parserOptions": {
13-
"project": [
14-
"tsconfig.*?.json",
15-
"e2e/tsconfig.json"
16-
],
13+
"project": ["tsconfig.*?.json", "cypress/tsconfig.json"],
1714
"createDefaultProgram": true
1815
},
1916
"extends": [
2017
"plugin:@angular-eslint/recommended",
2118
"plugin:@typescript-eslint/recommended",
22-
"prettier/@typescript-eslint",
23-
"plugin:prettier/recommended",
24-
"prettier/@typescript-eslint"
19+
"prettier"
2520
],
2621
"rules": {
27-
"@angular-eslint/component-class-suffix": [
22+
"@angular-eslint/component-class-suffix": [
2823
"error",
2924
{
30-
"suffixes": [
31-
"Component",
32-
"Page"
33-
]
25+
"suffixes": ["Component", "Page"]
3426
}
3527
],
3628
"@angular-eslint/directive-selector": [
@@ -41,9 +33,12 @@
4133
"error",
4234
{ "type": "element", "prefix": "app", "style": "kebab-case" }
4335
],
44-
"@angular-eslint/no-empty-lifecycle-method": "off",
36+
// "@typescript-eslint/no-empty-function": [
37+
// "error",
38+
// { "allow": ["constructors"] }
39+
// ],
4540
"@typescript-eslint/no-empty-function": "off",
46-
"@typescript-eslint/no-unused-vars": "off"
41+
"@angular-eslint/no-empty-lifecycle-method": "off"
4742
}
4843
},
4944
{

.github/workflows/test.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [main, develop]
6+
pull_request:
7+
branches: [main, develop]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [10.x]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
- run: npm ci
24+
- run: npm run test:coverage
25+
- run: npm run lint

.husky/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/commit-msg

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx commitlint --edit $1

.husky/pre-commit

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm run test

.husky/pre-push

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm run build:prod

.vscode/settings.json

+5-12
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,25 @@
11
{
22
"editor.codeActionsOnSave": {
3-
"source.organizeImports": false,
4-
"source.fixAll": true,
3+
"source.organizeImports": true
54
},
65
"css.validate": false,
7-
"eslint.validate": [
8-
"javascript",
9-
"javascriptreact",
10-
"typescript",
11-
"typescriptreact",
12-
"html"
13-
],
6+
"eslint.validate": ["javascript", "typescript", "html"],
147
"[javascript]": {
15-
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
8+
"editor.defaultFormatter": "esbenp.prettier-vscode",
169
"editor.codeActionsOnSave": {
1710
"source.fixAll.eslint": true
1811
},
1912
"editor.formatOnSave": true
2013
},
2114
"[typescript]": {
22-
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
15+
"editor.defaultFormatter": "esbenp.prettier-vscode",
2316
"editor.codeActionsOnSave": {
2417
"source.fixAll.eslint": true
2518
},
2619
"editor.formatOnSave": true
2720
},
2821
"[json]": {
29-
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
22+
"editor.defaultFormatter": "esbenp.prettier-vscode",
3023
"editor.codeActionsOnSave": {
3124
"source.fixAll.eslint": true
3225
},

CONTRIBUTING.md

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Contributing to Angular Boilerplate
2+
3+
We want to make contributing to this project as easy and transparent as possible, whether it's:
4+
5+
- Reporting a bug
6+
- Discussing the current state of the code
7+
- Submitting a fix
8+
- Proposing new features
9+
- Becoming a maintainer
10+
11+
## We Develop with Github
12+
13+
We use github to host code, to track issues and feature requests, as well as accept pull requests.
14+
15+
## We Use [Github Flow](https://guides.github.com/introduction/flow/index.html), So All Code Changes Happen Through Pull Requests
16+
17+
Pull requests are the best way to propose changes to the codebase (we use [Github Flow](https://guides.github.com/introduction/flow/index.html)). We actively welcome your pull requests:
18+
19+
1. Fork the repo and create your branch from `develop`.
20+
2. If you've added code that should be tested, add tests.
21+
3. If you've changed APIs, update the documentation.
22+
4. Ensure the test suite passes.
23+
5. Make sure your code lints.
24+
6. Submit the pull request picking "develop" as the base branch.
25+
26+
## Any contributions you make will be under the MIT Software License
27+
28+
In short, when you submit code changes, your submissions are understood to be under the same [MIT License](http://choosealicense.com/licenses/mit/) that covers the project. Feel free to contact the maintainers if that's a concern.
29+
30+
## Report bugs using Github's [issues](https://github.com/briandk/transcriptase-atom/issues)
31+
32+
We use GitHub issues to track public bugs. Report a bug by [opening a new issue]()
33+
34+
## Write bug reports with detail, background, and sample code
35+
36+
**Great Bug Reports** tend to have:
37+
38+
- A quick summary and/or background
39+
- Steps to reproduce
40+
- Be specific!
41+
- Give sample code if you can.
42+
- What you expected would happen
43+
- What actually happens
44+
- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)
45+
46+
## Use a Consistent Coding Style
47+
48+
- 2 spaces for indentation rather than tabs
49+
- You can try running `npm run lint` for style unification
50+
51+
## License
52+
53+
By contributing, you agree that your contributions will be licensed under its MIT License.
54+
55+
## References
56+
57+
This document was adapted from the open-source contribution guidelines for [Facebook's Draft](https://github.com/facebook/draft-js/blob/a9316a723f9e918afde44dea68b5f9f39b7d9b00/CONTRIBUTING.md)

LICENSE.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2021 Juan Mesa
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.

0 commit comments

Comments
 (0)