Skip to content

Commit

Permalink
perf: update to Lit2.0, TS support, issue templates, component regist…
Browse files Browse the repository at this point in the history
…ration extension #167

Change to be committed:
modified: .npmignore
modified: .stylelintrc
modified: package-lock.json
modified: package.json
modified: README.md
new file: tsconfig.json
modified: .github/settings.yml
deleted: .github/ISSUE_TEMPLATE/bug_report.md
new file: .github/ISSUE_TEMPLATE/bug_report.yml
deleted: .github/ISSUE_TEMPLATE/feature_request.md
new file: .github/ISSUE_TEMPLATE/feature_request.yml
deleted: .github/ISSUE_TEMPLATE/general-support.md
new file: .github/ISSUE_TEMPLATE/general-support.yml
modified: .husky/pre-commit
modified: demo/index.html
modified: scripts/postCss.js
deleted: scripts/removeNonRemPlugin.js
modified: src/auro-hyperlink.js
deleted: src/style-fixed.scss
  • Loading branch information
irma-kurnia-phtn authored and blackfalcon committed Aug 18, 2023
1 parent 8e8b3bb commit ca387bc
Show file tree
Hide file tree
Showing 19 changed files with 226 additions and 687 deletions.
57 changes: 0 additions & 57 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

56 changes: 56 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Feature request
description: Create a report to help us improve
title: '[issue summary] Please verify version before submitting new issue'
labels:
- 'Type: Bug'
- not-reviewed
- auro-hyperlink
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: input
id: version
attributes:
label: Please verify the version of auro-hyperlink you have installed
- type: markdown
attributes:
value: >
[![See it on
NPM!](https://img.shields.io/npm/v/@alaskaairux/auro-hyperlink?style=for-the-hyperlink&color=orange)](https://www.npmjs.com/package/@alaskaairux/auro-hyperlink)
- type: textarea
id: details
attributes:
label: Please describe the bug
description: List out the steps to reproduce the behavior
placeholder: 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. See error
- type: dropdown
id: repro
attributes:
label: Reproducing the error
description: Are you able to reproduce this issue on the [Auro docsite](https://auro.alaskaair.com/)?
options:
- This issue is reproducible on the Auro docsite
- This issue cannot be reproduced on the Auro docsite
- type: textarea
id: expected
attributes:
label: Expected behavior
description: Please add a clear and concise description of what you expected to
happen.
- type: dropdown
id: browsers
attributes:
label: What browsers are you seeing the problem on?
multiple: true
options:
- Firefox
- Chrome
- Safari
- Microsoft Edge
- type: textarea
id: context
attributes:
label: Additional context
description: Add any other context about the problem here.
29 changes: 0 additions & 29 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

29 changes: 29 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Feature request
description: Suggest an idea for this project
title: 'auro-hyperlink: [feature summary]'
labels:
- 'Type: Feature'
- not-reviewed
- auro-hyperlink
body:
- type: textarea
id: request
attributes:
label: Is your feature request related to a problem? Please describe.
description: A clear and concise description of what the problem is.
placeholder: Ex. I'm always frustrated when [...]
- type: textarea
id: solution
attributes:
label: Describe the solution you'd like
description: A clear and concise description of what you want to happen.
- type: textarea
id: alternative
attributes:
label: Describe alternatives you've considered
description: A clear and concise description of any alternative solutions or features you've considered.
- type: textarea
id: context
attributes:
label: Additional context
description: Add any other context or screenshots about the feature request here.
33 changes: 0 additions & 33 deletions .github/ISSUE_TEMPLATE/general-support.md

This file was deleted.

24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/general-support.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: General support
description: Suggestions that are not related to bugs or new features
title: 'auro-hyperlink: [issue]'
labels:
- 'Type: Question'
- 'Type: Feature'
- not-reviewed
- auro-hyperlink
body:
- type: textarea
id: request
attributes:
label: General Support Request
description: A clear and concise description of what you are interested in seeing.
- type: textarea
id: solution
attributes:
label: Possible Solution
description: Not obligatory, but suggest an idea of how to implement the requested update.
- type: textarea
id: context
attributes:
label: Additional context
description: Add any other context or screenshots about the feature request here.
2 changes: 1 addition & 1 deletion .github/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ branches:
dismiss_stale_reviews: true
# Blocks merge until code owners have reviewed.
require_code_owner_reviews: true
# Specify which users and teams can dismiss pull request reviews. Pass an empty dismissal_restrictions object to disable. User and team dismissal_restrictions are only available for organization-owned repositories. Omit this parameter for personal repositories.
# Required. Require status checks to pass before merging. Set to null to disable
dismissal_restrictions:
users: ["blackfalcon"]
# Required. Require status checks to pass before merging. Set to null to disable
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

./node_modules/.bin/npm-run-all preCommit test linters postinstall
./node_modules/.bin/npm-run-all linters test
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ demo/**/*.scss
demo/**/*.html
demo/**/*.md

dist/es5.js

index.html

# ignore src
Expand Down
109 changes: 7 additions & 102 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -1,107 +1,12 @@
{
"extends": ["stylelint-config-recommended", "stylelint-config-idiomatic-order", "stylelint-config-standard-scss"],
"plugins": [
"stylelint-scss"
"extends": [
"stylelint-config-recommended"
],
"rules": {
"alpha-value-notation": "number",
"at-rule-empty-line-before": [ "always", {
"except": [
"after-same-name",
"blockless-after-same-name-blockless",
"first-nested",
],
"ignore": [
"after-comment",
"blockless-after-blockless"
]
} ],
"at-rule-no-unknown": null,
"color-function-notation": "modern",
"color-named": "never",
"declaration-block-no-duplicate-custom-properties": true,
"declaration-block-no-duplicate-properties": true,
"declaration-block-no-redundant-longhand-properties": true,
"declaration-no-important": true,
"font-family-name-quotes": "always-where-recommended",
"font-weight-notation": "numeric",
"function-url-no-scheme-relative": true,
"function-url-quotes": "always",
"hue-degree-notation": "angle",
"max-nesting-depth": 5,
"named-grid-areas-no-invalid": true,
"no-empty-source": null,
"no-unknown-animations": true,
"no-invalid-position-at-import-rule": null,
"scss/at-else-closing-brace-newline-after": "always-last-in-chain",
"scss/at-else-closing-brace-space-after": "always-intermediate",
"scss/at-else-empty-line-before": "never",
"scss/at-else-if-parentheses-space-before": "always",
"scss/at-function-parentheses-space-before": "never",
"scss/at-if-closing-brace-newline-after": "always-last-in-chain",
"scss/at-if-closing-brace-space-after": "always-intermediate",
"scss/at-if-no-null": true,
"scss/at-import-partial-extension": null,
"scss/at-mixin-parentheses-space-before": "never",
"scss/at-rule-conditional-no-parentheses": true,
"scss/at-rule-no-unknown": true,
"scss/comment-no-empty": true,
"scss/declaration-nested-properties-no-divided-groups": true,
"scss/dollar-variable-colon-newline-after": "always-multi-line",
"scss/dollar-variable-colon-space-after": "always-single-line",
"scss/dollar-variable-colon-space-before": "never",
"scss/dollar-variable-empty-line-before": [
"always",
{
"except": [
"first-nested",
"after-dollar-variable"
],
"ignore": [
"after-comment",
"inside-single-line-block"
]
}
],
"scss/dollar-variable-first-in-block": [
true,
{
"ignore": [
"comments",
"imports"
]
}
],
"scss/dollar-variable-no-missing-interpolation": true,
"scss/double-slash-comment-whitespace-inside": "always",
"scss/map-keys-quotes": "always",
"scss/no-duplicate-dollar-variables": true,
"scss/no-duplicate-mixins": true,
"scss/no-global-function-names": true,
"scss/operator-no-newline-after": true,
"scss/operator-no-newline-before": true,
"scss/operator-no-unspaced": true,
"scss/selector-nest-combinators": "always",
"scss/selector-no-redundant-nesting-selector": true,
"selector-attribute-quotes": "always",
"selector-max-attribute": 1,
"selector-max-class": 1,
"selector-max-combinators": 1,
"selector-max-compound-selectors": 2,
"selector-max-id": 1,
"selector-max-pseudo-class": 2,
"selector-max-type": 1,
"selector-max-universal": 1,
"selector-no-qualifying-type": true,
"selector-pseudo-element-colon-notation": "single",
"selector-type-no-unknown": [
true,
{
"ignore": [
"custom-elements"
]
}
],
"shorthand-property-no-redundant-values": true
"no-duplicate-selectors": null,
"font-family-no-duplicate-names": null,
"no-descending-specificity": null,
"selector-type-no-unknown": null,
"declaration-block-no-duplicate-properties": null
}
}
Loading

0 comments on commit ca387bc

Please sign in to comment.