Skip to content

Commit

Permalink
chore: merged with main
Browse files Browse the repository at this point in the history
  • Loading branch information
James Taylor committed Mar 12, 2024
2 parents d732528 + 23924c3 commit dc95d74
Show file tree
Hide file tree
Showing 402 changed files with 57,382 additions and 59,547 deletions.
136 changes: 68 additions & 68 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,70 +1,70 @@
{
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nrwl/nx", "ban", "unused-imports"],
"overrides": [
{
"files": ["*.spec.ts", "ui.test.ts"],
"rules": {
"ban/ban": [
2,
{
"name": ["describe", "only"],
"message": "don't focus tests"
},
{
"name": "fdescribe",
"message": "don't focus tests"
},
{
"name": ["it", "only"],
"message": "don't focus tests"
},
{
"name": "fit",
"message": "don't focus tests"
},
{
"name": ["test", "only"],
"message": "don't focus tests"
},
{
"name": "ftest",
"message": "don't focus tests"
}
]
}
},
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nrwl/nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nrwl/nx/typescript"],
"rules": {
"no-console": 2,
"unused-imports/no-unused-imports": "error"
}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nrwl/nx/javascript"],
"rules": {}
}
]
"root": true,
"ignorePatterns": ["**/*"],
"plugins": ["@nrwl/nx", "ban", "unused-imports"],
"overrides": [
{
"files": ["*.spec.ts", "ui.test.ts"],
"rules": {
"ban/ban": [
2,
{
"name": ["describe", "only"],
"message": "don't focus tests"
},
{
"name": "fdescribe",
"message": "don't focus tests"
},
{
"name": ["it", "only"],
"message": "don't focus tests"
},
{
"name": "fit",
"message": "don't focus tests"
},
{
"name": ["test", "only"],
"message": "don't focus tests"
},
{
"name": "ftest",
"message": "don't focus tests"
}
]
}
},
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@nrwl/nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": ["*"]
}
]
}
]
}
},
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nrwl/nx/typescript"],
"rules": {
"no-console": 2,
"unused-imports/no-unused-imports": "error"
}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nrwl/nx/javascript"],
"rules": {}
}
]
}
26 changes: 11 additions & 15 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Bug report 🐛
description:
Something isn't working as expected? Here is the right place to report.
description: Something isn't working as expected? Here is the right place to report.
title: '[YOUR TITLE]: Brief description'
assignees:
- yonatankra, rachelbt, rinaok, yinonov, olaf-k
Expand All @@ -16,21 +15,21 @@ body:
id: description
attributes:
label: Description
description: "What did you expect to happen? What happened instead?"
description: 'What did you expect to happen? What happened instead?'
validations:
required: true
- type: textarea
id: components
attributes:
label: Component(s) impacted
description: "Component(s) impacted? Please include screenshots, or code and relevant URLs."
description: 'Component(s) impacted? Please include screenshots, or code and relevant URLs.'
validations:
required: true
- type: dropdown
id: browser
attributes:
label: Browser
description: "What browser(s) are you working in?"
description: 'What browser(s) are you working in?'
multiple: true
options:
- Chrome
Expand All @@ -41,7 +40,7 @@ body:
id: version
attributes:
label: Vivid Web Components version
description: "What version of Vivid Web Components are you using?"
description: 'What version of Vivid Web Components are you using?'
placeholder: e.g. v2.2.8
validations:
required: true
Expand All @@ -60,27 +59,26 @@ body:
id: application
attributes:
label: Application/website
description: "What application/website do you work on?"
description: 'What application/website do you work on?'
validations:
required: true
- type: input
id: example-url
attributes:
label: CodeSandbox example
description:
'Use the
description: 'Use the
[codesandbox examples](https://codesandbox.io/s/amazing-haslett-tnzsn)
to help re-create the issue.'
validations:
required: true
- type: textarea
id: reproduce
attributes:
label: "Steps to reproduce the issue (if applicable)"
label: 'Steps to reproduce the issue (if applicable)'
- type: textarea
id: release-date
attributes:
label: "Release date (if applicable)"
label: 'Release date (if applicable)'
validations:
required: false
- type: checkboxes
Expand All @@ -89,11 +87,9 @@ body:
label: Code of Conduct
description: Please confirm the following
options:
- label:
I agree to follow this project's [Code of
- label: I agree to follow this project's [Code of
Conduct](https://github.com/vonage/vivid-3/blob/main/.github/CODE_OF_CONDUCT.md)
required: true
- label:
I checked the [current
- label: I checked the [current
issues](https://github.com/vonage/vivid-3/issues) for
duplicate issues
11 changes: 5 additions & 6 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Feature Request 💡
description:
Suggest a new idea for the project.
description: Suggest a new idea for the project.
title: '[YOUR TITLE]: Brief description'
assignees:
- yonatankra, rachelbt, rinaok, yinonov, olaf-k
Expand All @@ -13,21 +12,21 @@ body:
id: problem
attributes:
label: The problem
description: "Provide a clear and concise description of what the problem this new feature is trying to solve. (For example, I find it frustrating when...)"
description: 'Provide a clear and concise description of what the problem this new feature is trying to solve. (For example, I find it frustrating when...)'
validations:
required: true
- type: textarea
id: solution
attributes:
label: The solution
description: "Provide a clear and concise description of what you would like to happen instead."
description: 'Provide a clear and concise description of what you would like to happen instead.'
validations:
required: true
- type: input
id: application
attributes:
label: Application/website
description: "What application/website do you work on?"
description: 'What application/website do you work on?'
validations:
required: true
- type: dropdown
Expand All @@ -43,7 +42,7 @@ body:
- type: textarea
id: time-frame
attributes:
label: "What time frame would this ideally be needed by (if applicable)"
label: 'What time frame would this ideally be needed by (if applicable)'
validations:
required: false
- type: textarea
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/_deploy-deno.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
node-version: 20
cache: 'npm'

- uses: actions/cache@v3
Expand All @@ -39,4 +39,4 @@ jobs:
with:
project: vivid
root: dist/apps/docs
entrypoint: https://deno.land/std@0.135.0/http/file_server.ts
entrypoint: https://deno.land/std@0.217.0/http/file_server.ts
6 changes: 3 additions & 3 deletions .github/workflows/_lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16"
cache: "npm"
node-version: 20
cache: 'npm'

- name: Install Dependencies
run: npm ci
Expand All @@ -22,6 +22,6 @@ jobs:
- uses: treosh/lighthouse-ci-action@v9
with:
# no urls needed, since it uses local folder to scan .html files
configPath: "./lighthouserc.json"
configPath: './lighthouserc.json'
uploadArtifacts: true # save results as an action artifacts
temporaryPublicStorage: true # upload lighthouse report to the temporary storage
8 changes: 6 additions & 2 deletions .github/workflows/_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16'
node-version: 20
cache: 'npm'
- uses: actions/cache@v3
id: cache
Expand All @@ -21,4 +21,8 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci --only=dev

- run: npm run nx run-many -- --target=stylelint --all && npm run nx run-many -- --target=lint --all
- name: Lint
run: npm run nx run-many -- --target=stylelint --all && npm run nx run-many -- --target=lint --all

- name: Check Formatting
run: npm run nx format:check -- --all
66 changes: 33 additions & 33 deletions .github/workflows/_unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,36 @@ on:

jobs:
test:
name: "Unit Tests"
runs-on: ${{ inputs.os }}
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'npm'

- uses: actions/cache@v3
id: cache
with:
path: node_modules/
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }}

- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci --only=dev

- run: npm run nx run-many -- --target=test --all --coverage --coverageReporters=lcov
id: test

- run: node ./tools/coverageMerger.js

- uses: actions/upload-artifact@v2
if: ${{ inputs.report_coverage }}
with:
name: coverage
path: ./coverage

- run: exit 0
if: ${{ steps.test.outcome == 'success' }}
name: 'Unit Tests'
runs-on: ${{ inputs.os }}
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'

- uses: actions/cache@v3
id: cache
with:
path: node_modules/
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }}

- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci --only=dev

- run: npm run nx run-many -- --target=test --all --coverage --coverageReporters=lcov
id: test

- run: node ./tools/coverageMerger.js

- uses: actions/upload-artifact@v2
if: ${{ inputs.report_coverage }}
with:
name: coverage
path: ./coverage

- run: exit 0
if: ${{ steps.test.outcome == 'success' }}
Loading

0 comments on commit dc95d74

Please sign in to comment.