Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modernize repo #4

Merged
merged 11 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ repository:
# See https://github.com/apps/settings for app settings

# A short description of the repository that will show up on GitHub
description: Custom element that ....
description: Custom element that displays additional information over page content

# A URL with more information about the repository
homepage: https://auro.alaskaair.com/
homepage: https://auro.alaskaair.com/components/auro/dialog

# A comma-separated list of topics to set on the repository
topics: auro, design-system, custom-element
topics: auro, design-system, custom-element, generator-v4-3-2

# Either `true` to enable issues for this repository, `false` to disable them.
has_issues: true
Expand Down Expand Up @@ -60,7 +60,7 @@ branches:
# Required. Require branches to be up to date before merging.
strict: true
# Required. The list of status checks to require in order to merge into this branch
contexts: ["license/cla"]
contexts: ["test (18.x)", "test (20.x)", "license/cla"]
# Required. Enforce all configured restrictions for administrators. Set to true to enforce required status checks for repository administrators. Set to null to disable.
enforce_admins: false
# Required. Restrict who can push to this branch. Team and user restrictions are only available for organization-owned repositories. Set to null to disable.
Expand All @@ -70,6 +70,10 @@ branches:

# Labels: define labels for Issues and Pull Requests
labels:
- name: auro-dialog
color: 'fa23e4'
description:
process: Key filter for this repo
- name: duplicate
color: '156fad'
description: This Issue or Pull Request already exists
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/testPublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
node-version: [ [abstractNodeVersion] ]
node-version: [ 18.x, 20.x ]

steps:
- uses: actions/checkout@v3
Expand All @@ -37,7 +37,7 @@ jobs:
persist-credentials: false
- uses: actions/setup-node@v3
with:
node-version: [abstractNodeVersion]
node-version: 20.x
- run: npm ci
- run: npm run build
- uses: cycjimmy/semantic-release-action@v3
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.DS_Store
node_modules/
docTemplates/
.cache/

## Demo support files
Expand All @@ -17,5 +18,5 @@ src/*.css.map
dist/
build/

## Karma code coverage reports
## Code coverage reports
coverage/
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit "$1"
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

./node_modules/.bin/npm-run-all preCommit test linters postinstall
11 changes: 9 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# standard ignore
*config*
*conf*
LICENSE
NOTICE

.github/
.gitignore
Expand All @@ -11,13 +13,18 @@ coverage/
docs/
scripts/
test/
apiExamples/
docTemplates/
demo/**/*.css
demo/**/*.scss
demo/**/*.html

dist/es5.js
dist/auro-*.js
!dist/auro-*__bundled.js
dist/style-css.js

index.html

# ignore src
src/**/*
src/**/*.scss
src/**/*.css
23 changes: 6 additions & 17 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": ["stylelint-config-recommended", "stylelint-config-idiomatic-order"],
"extends": ["stylelint-config-recommended", "stylelint-config-idiomatic-order", "stylelint-config-standard-scss"],
"plugins": [
"stylelint-scss"
],
Expand All @@ -9,39 +9,30 @@
"except": [
"after-same-name",
"blockless-after-same-name-blockless",
"first-nested",
"first-nested"
],
"ignore": [
"after-comment",
"blockless-after-blockless"
]
} ],
"at-rule-name-newline-after": "always-multi-line",
"at-rule-no-unknown": null,
"at-rule-semicolon-space-before": "never",
"block-closing-brace-space-after": "always-single-line",
"block-opening-brace-newline-before": "never-single-line",
"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-block-semicolon-newline-before": "never-multi-line",
"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",
"linebreaks": "unix",
"max-nesting-depth": 2,
"media-query-list-comma-newline-before": "never-multi-line",
"named-grid-areas-no-invalid": true,
"no-empty-first-line": true,
"no-empty-source": null,
"no-unknown-animations": true,
"no-invalid-position-at-import-rule": null,
"number-leading-zero": "never",
"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",
Expand Down Expand Up @@ -93,14 +84,14 @@
"scss/selector-nest-combinators": "always",
"scss/selector-no-redundant-nesting-selector": true,
"selector-attribute-quotes": "always",
"selector-list-comma-newline-before": "never-multi-line",
"selector-list-comma-space-after": "always-single-line",
"selector-class-pattern": "^[a-z][a-zA-Z0-9]+$",
"selector-id-pattern": "^[a-z][a-zA-Z0-9]+$",
"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": 1,
"selector-max-pseudo-class": 2,
"selector-max-type": 1,
"selector-max-universal": 1,
"selector-no-qualifying-type": true,
Expand All @@ -113,8 +104,6 @@
]
}
],
"shorthand-property-no-redundant-values": true,
"string-quotes": "single",
"value-list-comma-newline-before": "never-multi-line"
"shorthand-property-no-redundant-values": true
}
}
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Alaska Airlines Auro Design System
Copyright 2021 Alaska Airlines, Inc. or its affiliates. All Rights Reserved.
Copyright 2024 Alaska Airlines, Inc. or its affiliates. All Rights Reserved.
Loading
Loading