Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ju-Skinner committed Oct 9, 2023
0 parents commit c3c6704
Show file tree
Hide file tree
Showing 324 changed files with 23,314 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .commitlintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"extends": [
"@commitlint/config-conventional"
]
}
15 changes: 15 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# http://editorconfig.org

root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
insert_final_newline = false
trim_trailing_whitespace = false
6 changes: 6 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
src/components.d.ts
**/*.spec.ts
**/*.spec.tsx
**/*.e2e.ts
**/*.d.ts
stencil.config.ts
10 changes: 10 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": ["plugin:@typescript-eslint/recommended", "prettier"],
"parserOptions": {
"project": ["./tsconfig.json"]
},
"plugins": ["@typescript-eslint"],
"rules": {
"@typescript-eslint/no-explicit-any": "warn"
}
}
7 changes: 7 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# read more about codeowners file here

# https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners

# Global owners

- @Kajabi/dss-devs
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/accessibility.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Accessibility Issue
about: Report an accessibility or usability issue
title: '[a11y] '
labels: 'a11y'
assignees: ''

---

## Environment

- OS:
- Browser:
- Testing tool used:
- Assistive technology used to verify:

## Detailed description

- What did you expect to happen?
- What happened instead?
- What WCAG 2.1 success criteria does the issue violate?

## Steps to reproduce the issue

1. Go to '...'
2. Click on '...'
3. Scroll down to '...

## Additional Information

- Screenshots or code
- Notes
42 changes: 42 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
name: Bug Report 🐛
about: Something isn't working as expected? Here is the right place to report.
title: "[BUG] "
labels: "bug"
assignees: ""
---

## Detailed description

A clear and concise description of what the bug is

## Steps to reproduce

Describe the steps to reproduce the behavior:

1. Go to '...'
2. Click on '...'
3. Scroll down to '...

## Expected behavior

A clear and concise description of what you expected to happen.

## Actual behavior

A clear and concise description of what actually happens.

## Screenshots

If applicable, provide screenshots, videos, or gifs of issue.

## Details about device, OS, browser (including versions)

- Device:
- OS:
- Browser:
- Version:

## Additional context

Add any other context about the problem here.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blank_issues_enabled: false
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: '[FEATURE]'
labels: 'feature'
assignees: ''

---

## Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

## Describe the solution you'd like
A clear and concise description of what you want to happen.

## Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

## Additional context
Add any other context or screenshots about the feature request here.
50 changes: 50 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Description

Please include a summary of the change and which issue is fixed.
Please also include relevant motivation and context.
List any new dependencies or updates that are required for this change.

Fixes #(issue)

## Type of change

Please delete options that are not relevant.
If your type of change is not present, add that option.

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
- [ ] This change requires a documentation update

# How Has This Been Tested?

Please describe the tests you've added and run to verify your changes.
Provide instructions so that we can reproduce.
Please also list any relevant details for your test configuration.

- [ ] unit tests
- [ ] e2e tests
- [ ] accessibility tests
- [ ] tested manually
- [ ] other:

**Test Configuration**:

- Pine versions:
- OS:
- Browsers:
- Screen readers:
- Misc:

# Checklist:

If not applicable, leave options unchecked.

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing tests pass locally with my changes
- [ ] Design has QA'ed and approved this PR
66 changes: 66 additions & 0 deletions .github/workflows/actions/build-icons/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: 'Build Pine Icons'
description: 'Build Pine Icon library'

inputs:
node-version:
description: 'The version of node to use'
required: true

runs:
using: 'composite'
steps:
- name: Check out latest
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}

- uses: actions/setup-node@v3
with:
node-version: ${{ inputs.node-version }}

- name: Verify NPM Cache
shell: bash
run: npm cache verify

- name: Get NPM cache directory
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}

- name: Cache node_modules
uses: actions/cache@v3
id: cache-node-modules
env:
cache-name: cache-node-modules
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-
- name: Set SHA
uses: nrwl/nx-set-shas@v3

- name: Install Dependencies
if: steps.cache-node-modules.ouputs.cache-hit != true
run: npm ci
shell: bash

- name: Build Icons
run: npx nx run icons:build
shell: bash

- name: Upload Icons Build Archive
uses: ./.github/workflows/actions/upload-archive
with:
name: icons-build
output: IconsBuild.zip
paths: dist components icons www

- name: Upload Icons Source
uses: ./.github/workflows/actions/upload-archive
with:
name: icons-src
output: IconsSrc.zip
paths: src
22 changes: 22 additions & 0 deletions .github/workflows/actions/download-archive/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: 'Download Archive'
description: 'Downloads and unzips an archive that was uploaded'

inputs:
path:
description: 'Input archive name'
filename:
description: 'Input the name of the file'
name:
description: 'Zip file name'

runs:
using: 'composite'
steps:
- uses: actions/download-artifact@v3
with:
name: ${{ inputs.name }}
path: ${{ inputs. path }}

- name: Extract the Archive
run: unzip -q -o ${{ inputs.path }}/${{ inputs.filename }}
shel: bash
59 changes: 59 additions & 0 deletions .github/workflows/actions/publish-npm/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Publish
description: Publishes a package

inputs:
folder:
default: './'
description: 'A folder containing a package.json file.'

preid:
default: ''
description: 'The prerelease id used when doing a prerelease.'

project:
description: 'The name of the project based on Nx naming.'

tag:
description: 'The tag to publish on NPM.'

token:
description: The NPM authentication token required to publish.

version:
description: The type of version to release.

working-directory:
description: 'The directory of the package.'

runs:
using: 'composite'
steps:
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 20.x
registry-url: 'https://registry.npmjs.org'

- name: Install Dependencies
run: npm ci --ignore-scripts
shell: bash

- name: Update Version
run: npm version ${{ inputs.version }} --git-tag-version false --preid=${{ inputs.preid }}
shell: bash
working-directory: ${{ inputs.working-directory }}

- name: Run Build
run: npx nx run ${{ inputs.project }}:build
shell: bash

- name: Prepare NPM Token
run: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} >> .npmrc
shell: bash
env:
NPM_TOKEN: ${{ inputs.token }}

- name: Publish to NPM
run: npm publish ${{ inputs.folder }} --tag ${{ inputs.tag }} --provenance --access public
shell: bash
working-directory: ${{ inputs.working-directory }}
40 changes: 40 additions & 0 deletions .github/workflows/actions/test-lint/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: 'Test Lint'
descriptions: 'Runs lint for affected projects'

inputs:
node-version:
description: 'The version of node to use'
required: true

runs:
using: 'composite'
steps:
- name: Check out latest
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}

- uses: actions/setup-node@v3
with:
node-version: ${{ inputs.node-version }}

- name: Cache node_modules
uses: actions/cache@v3
id: cache-node-modules
env:
cache-name: cache-node-modules
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-
- name: Install Dependencies
if: steps.cache-node-modules.ouputs.cache-hit != true
run: npm ci
shell: bash

- name: Lint
run : npx nx affected --target=lint --parallel=3
shell: bash
Loading

0 comments on commit c3c6704

Please sign in to comment.