forked from taiga-family/maskito
-
Notifications
You must be signed in to change notification settings - Fork 0
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 2522382
Showing
78 changed files
with
60,530 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,4 @@ | ||
# we only want es2015 compliant browsers https://caniuse.com/#feat=es6 | ||
# just use one as representative for all | ||
|
||
supports es6-module |
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,13 @@ | ||
# Editor configuration, see https://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 4 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.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,18 @@ | ||
/** | ||
* @type {import('eslint').Linter.Config} | ||
*/ | ||
module.exports = { | ||
root: true, | ||
extends: [ | ||
'@tinkoff/eslint-config-angular', | ||
'@tinkoff/eslint-config-angular/html', | ||
'@tinkoff/eslint-config-angular/rxjs', | ||
], | ||
ignorePatterns: ['projects/**/test.ts', '*.json', '*.less', '*.md', '*.js'], | ||
parser: '@typescript-eslint/parser', | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
sourceType: 'module', | ||
project: [require.resolve('./tsconfig.eslint.json')], | ||
}, | ||
}; |
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,32 @@ | ||
--- | ||
name: 🐞 Bug report | ||
about: Create a report to help us improve | ||
title: '[BUG] ' | ||
labels: '' | ||
--- | ||
|
||
# 🐞 Bug report | ||
|
||
### Description | ||
|
||
<!-- A clear and concise description of what the bug is --> | ||
|
||
### Reproduction | ||
|
||
<!-- Steps to reproduce or, preferably, a demo on StackBlitz or similar service --> | ||
|
||
http://www.stackblitz.com/... | ||
|
||
### Expected behavior | ||
|
||
<!-- A clear and concise description of what you expected to happen --> | ||
|
||
### Versions | ||
|
||
- OS: [e.g. iOS] | ||
- Browser [e.g. chrome, safari] | ||
- Angular [e.g. 8] | ||
|
||
### Additional context | ||
|
||
<!-- Add any other context about the problem here --> |
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,28 @@ | ||
--- | ||
name: 🚀 Feature request | ||
about: Suggest an idea for this project | ||
title: '[FEATURE]' | ||
labels: '' | ||
--- | ||
|
||
# 🚀 Feature request | ||
|
||
### Is your feature request related to a problem? | ||
|
||
<!-- A clear and concise description of what the problem is. Ex. --> | ||
<!-- ✍️edit: --> I'm always frustrated when... | ||
|
||
### Describe the solution you'd like | ||
|
||
<!-- A clear and concise description of what you want to happen --> | ||
<!-- ✍️edit: --> | ||
|
||
### Describe alternatives you've considered | ||
|
||
<!-- A clear and concise description of any alternative solutions or features you've considered --> | ||
<!-- ✍️edit: --> | ||
|
||
### Additional context | ||
|
||
<!-- Add any other context or screenshots about the feature request here --> | ||
<!-- ✍️edit: --> |
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,29 @@ | ||
## PR Checklist | ||
|
||
Please check if your PR fulfills the following requirements: | ||
|
||
- [ ] The commit message follows [Conventional Commits](https://www.conventionalcommits.org/en/) | ||
- [ ] Tests for the changes have been added (for bug fixes / features) | ||
- [ ] Docs have been added / updated (for bug fixes / features) | ||
|
||
## PR Type | ||
|
||
What kind of change does this PR introduce? | ||
|
||
- [ ] Bugfix | ||
- [ ] Feature | ||
- [ ] Refactoring | ||
- [ ] Code style update | ||
- [ ] Build or CI related changes | ||
- [ ] Documentation content changes | ||
|
||
## What is the current behavior? | ||
|
||
Closes # <!-- link to a relevant issue. --> | ||
|
||
## What is the new behavior? | ||
|
||
## Does this PR introduce a breaking change? | ||
|
||
- [ ] Yes | ||
- [ ] No |
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 @@ | ||
name: Action for Node.js | ||
description: Node.js setup cache | ||
|
||
inputs: | ||
node-version: | ||
description: Node.js version | ||
required: false | ||
default: 16.x | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Use Node.js ${{ inputs.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ inputs.node-version }} | ||
registry-url: 'https://registry.npmjs.org' | ||
|
||
- name: Restore node_modules from cache | ||
id: cache-node-modules | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
**/node_modules | ||
!**/node_modules/.cache | ||
key: modules-cache__nodejs-${{ inputs.node-version }}__${{ hashfiles('**/package-lock.json') }} | ||
|
||
- name: Restore from cache of builds | ||
id: build-cache | ||
if: steps.cache-node-modules.outputs.cache-hit == 'true' | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
**/node_modules/.cache | ||
key: builds-cache-hash__${{ hashFiles('**/package-lock.json') }}-${{ github.ref }} | ||
restore-keys: builds-cache__nodejs-${{ inputs.node-version }}__${{ hashFiles('**/package-lock.json') }} | ||
|
||
- name: Restore from global NPM cache | ||
if: steps.cache-node-modules.outputs.cache-hit != 'true' | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.npm | ||
key: npm-cache__nodejs-${{ inputs.node-version }}__${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: npm-cache-hash__ | ||
|
||
- run: npm ci | ||
env: | ||
CYPRESS_CACHE_FOLDER: ./node_modules/cache-cypress | ||
if: steps.cache-node-modules.outputs.cache-hit != 'true' | ||
shell: bash | ||
|
||
- name: environment | ||
shell: bash | ||
run: | | ||
node -v | ||
npm -v |
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,17 @@ | ||
name: Build | ||
on: [pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Node.js and Cache | ||
uses: ./.github/actions/nodejs | ||
|
||
- name: Build demo | ||
run: npm run build | ||
|
||
concurrency: | ||
group: build-${{ github.head_ref }} | ||
cancel-in-progress: true |
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,28 @@ | ||
name: Deploy | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Node.js and Cache | ||
uses: ./.github/actions/nodejs | ||
|
||
- name: Build demo | ||
run: npm run build | ||
|
||
- name: Deploy | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages | ||
folder: dist/demo/browser | ||
silent: false | ||
clean: true | ||
|
||
concurrency: | ||
group: deploy-${{ github.head_ref }} | ||
cancel-in-progress: true |
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,43 @@ | ||
name: E2E | ||
on: [pull_request] | ||
|
||
jobs: | ||
e2e: | ||
runs-on: ubuntu-latest | ||
env: | ||
CYPRESS_CACHE_FOLDER: ./node_modules/cache-cypress | ||
UNIVERSAL_SERVER: http://localhost:4000 | ||
STATIC_SERVER: http://localhost:8080 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Node.js and Cache | ||
uses: ./.github/actions/nodejs | ||
|
||
- name: Build demo | ||
run: npm run build | ||
|
||
- name: Prerender demo | ||
run: npm run build:prerender | ||
|
||
- name: Serving static files | ||
run: | | ||
npm run serve:prerender & sleep 5 | ||
curl -X GET -I -f "${{ env.STATIC_SERVER }}" | ||
- name: Run cypress / ssr / prerender | ||
run: npm run cy:run -- --spec "**/ssr/*.cy.ts" --config baseUrl="${{ env.STATIC_SERVER }}" | ||
|
||
- name: Build ssr server | ||
run: npm run build:ssr | ||
|
||
- name: Serving ssr server | ||
run: | | ||
npm run serve:ssr & sleep 5 | ||
curl -X GET -I -f "${{ env.UNIVERSAL_SERVER }}" | ||
- name: Run cypress / ssr / universal | ||
run: npm run cy:run -- --spec "**/ssr/*.cy.ts" --config baseUrl="${{ env.UNIVERSAL_SERVER }}" | ||
|
||
concurrency: | ||
group: integration-e2e-${{ github.head_ref }} | ||
cancel-in-progress: true |
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,21 @@ | ||
name: Lint | ||
on: [pull_request] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Node.js and Cache | ||
uses: ./.github/actions/nodejs | ||
|
||
- name: Lint check | ||
run: | | ||
npm run typecheck | ||
npm run format -- --check | ||
npm run stylelint | ||
npm run lint | ||
concurrency: | ||
group: lint-${{ github.head_ref }} | ||
cancel-in-progress: true |
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 @@ | ||
name: Tests | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Node.js and Cache | ||
uses: ./.github/actions/nodejs | ||
|
||
- name: Run tests | ||
run: npm run test -- --coverage | ||
|
||
- uses: codecov/codecov-action@v2 | ||
with: | ||
directory: ./coverage | ||
flags: summary | ||
name: demo | ||
|
||
concurrency: | ||
group: test-${{ github.head_ref }} | ||
cancel-in-progress: true |
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,47 @@ | ||
# compiled output | ||
/dist | ||
/tmp | ||
/out-tsc | ||
# Only exists if Bazel was run | ||
/bazel-out | ||
|
||
# dependencies | ||
/node_modules | ||
|
||
# profiling files | ||
chrome-profiler-events.json | ||
speed-measure-plugin.json | ||
|
||
# IDEs and editors | ||
/.idea | ||
.project | ||
.classpath | ||
.c9/ | ||
*.launch | ||
.settings/ | ||
*.sublime-workspace | ||
|
||
# IDE - VSCode | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
.history/* | ||
|
||
# misc | ||
/.sass-cache | ||
/connect.lock | ||
/coverage | ||
/libpeerconnection.log | ||
npm-debug.log | ||
yarn-error.log | ||
testem.log | ||
/typings | ||
|
||
# System Files | ||
.DS_Store | ||
Thumbs.db | ||
|
||
# cypress | ||
**/cypress/**/screenshots/** |
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 @@ | ||
_ |
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,5 @@ | ||
#!/bin/sh | ||
# shellcheck disable=SC1090 | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx commitlint --edit $1 |
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,6 @@ | ||
#!/bin/sh | ||
# shellcheck disable=SC1090 | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx lint-staged | ||
npm run typecheck |
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,5 @@ | ||
legacy-peer-deps=true | ||
engine-strict=false | ||
lockfileVersion=2 | ||
ignore-engines=true | ||
loglevel=error |
Oops, something went wrong.