Skip to content

Commit

Permalink
chore: merge new codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
dangreen committed Jul 30, 2022
2 parents e7e7820 + 29f11c0 commit 3173275
Show file tree
Hide file tree
Showing 353 changed files with 28,182 additions and 34,902 deletions.
3 changes: 0 additions & 3 deletions .bowerrc

This file was deleted.

3 changes: 3 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
defaults
not ie 11
not ie_mob 11
4 changes: 4 additions & 0 deletions .clean-publish
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"withoutPublish": true,
"tempDir": "package"
}
6 changes: 6 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": ["@commitlint/config-conventional"],
"rules": {
"body-max-line-length": [0]
}
}
3 changes: 3 additions & 0 deletions .czrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "@commitlint/cz-commitlint"
}
1 change: 0 additions & 1 deletion .doclets.yml

This file was deleted.

68 changes: 68 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"extends": ["eslint:recommended", "plugin:prettier/recommended"],
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": "latest",
"requireConfigFile": false
},
"env": {
"es6": true,
"browser": true,
"node": true
},
"rules": {
"no-console": 2,
"curly": 2,
"dot-notation": 1,
"eqeqeq": 2,
"no-alert": 2,
"no-caller": 2,
"no-eval": 2,
"no-extra-bind": 2,
"no-implied-eval": 2,
"no-multi-spaces": 2,
"no-with": 2,
"no-shadow": 2,
"no-shadow-restricted-names": 2,
"brace-style": ["error", "1tbs"],
"camelcase": 2,
"comma-style": ["error", "last"],
"eol-last": 2,
"key-spacing": 2,
"new-cap": 1,
"no-array-constructor": 2,
"no-mixed-spaces-and-tabs": 2,
"no-multiple-empty-lines": 2,
"semi-spacing": 2,
"no-spaced-func": 2,
"no-trailing-spaces": 2,
"space-before-blocks": 2,
"spaced-comment": 1,
"no-var": 2
},
"overrides": [
{
"files": ["**/*.ts"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": ["plugin:@typescript-eslint/recommended"]
},
{
"files": ["test/**/*.{js,ts}", "*.spec.{js,ts}", "*.stories.{js,ts}"],
"plugins": [
"jest",
"testing-library",
"jest-dom"
],
"extends": ["plugin:jest-dom/recommended"],
"env": {
"jest/globals": true
},
"rules": {
"no-console": 0,
"no-shadow": 0,
"@typescript-eslint/no-explicit-any": 0
}
}
]
}
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1 @@
* text=auto
* text=auto
44 changes: 44 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: "🐛 Bug Report"
description: "If something isn't working as expected."
title: "[Bug]: "
labels: ["bug"]
body:
- type: markdown
attributes:
value: Thanks for taking the time to file a bug report! Please fill out this form as completely as possible.

- type: checkboxes
id: input1
attributes:
label: Would you like to work on a fix?
options:
- label: Check this if you would like to implement a PR, we are more than happy to help you go through the process.

- type: textarea
attributes:
label: Current and expected behavior
description: A clear and concise description of what the library is doing and what you would expect.
validations:
required: true

- type: input
attributes:
label: Reproduction
description: |
Please provide issue reproduction.
You can give a link to a repository with the reproduction or make a [sandbox](https://codesandbox.io/) and reproduce the issue there.
validations:
required: true

- type: input
attributes:
label: Chartist version
description: Which version of Chartist are you using?
placeholder: v0.0.0
validations:
required: true

- type: textarea
attributes:
label: Possible solution
description: If you have suggestions on a fix for the bug.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: 🤔 Have a Question?
url: https://stackoverflow.com/questions/tagged/chartist.js
about: Feel free to ask questions on Stack Overflow.
40 changes: 40 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "🚀 Feature Request"
description: "I have a specific suggestion!"
labels: ["enhancement"]
body:
- type: markdown
attributes:
value: Thanks for taking the time to suggest a new feature! Please fill out this form as completely as possible.

- type: checkboxes
id: input1
attributes:
label: Would you like to work on this feature?
options:
- label: Check this if you would like to implement a PR, we are more than happy to help you go through the process.

- type: textarea
attributes:
label: What problem are you trying to solve?
description: |
A concise description of what the problem is.
placeholder: |
I have an issue when [...]
validations:
required: true

- type: textarea
attributes:
label: Describe the solution you'd like
validations:
required: true

- type: textarea
attributes:
label: Describe alternatives you've considered

- type: textarea
attributes:
label: Documentation, Adoption, Migration Strategy
description: |
If you can, explain how users will be able to use this and how it might be documented. Maybe a mock-up?
53 changes: 53 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Checks
on:
pull_request:
branches:
- master
- develop
jobs:
size:
runs-on: ubuntu-latest
name: size-limit
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7.5.0
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: 16
cache: 'pnpm'
- name: Check size
uses: andresz1/size-limit-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
storybook:
runs-on: ubuntu-latest
name: storybook
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 7
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: 16
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Check storybook
run: pnpm build:storybook
editorconfig:
runs-on: ubuntu-latest
name: editorconfig
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Check editorconfig
uses: editorconfig-checker/action-editorconfig-checker@v1
45 changes: 45 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: CI
on:
pull_request:
push:
branches:
- master
- develop
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
stage:
- unit
- storyshots
fail-fast: false
name: ${{ matrix.stage }} tests
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7.5.0
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Run tests
run: pnpm test:${{ matrix.stage }}
- name: Collect coverage
uses: codecov/codecov-action@v3
if: "success() && matrix.stage == 'unit'"
with:
files: ./coverage/lcov.info
fail_ci_if_error: true
- name: Collect artifacts
uses: actions/upload-artifact@v3
if: "failure() && matrix.stage != 'unit'"
with:
name: Image snapshots (${{ matrix.stage }})
path: test/__image_snapshots__/
14 changes: 14 additions & 0 deletions .github/workflows/commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Commit
on:
push:
jobs:
commitlint:
runs-on: ubuntu-latest
name: commitlint
steps:
- name: Checkout the repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run commitlint
uses: wagoid/commitlint-github-action@v4
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
name: Publish package
steps:
- name: Checkout the repository
uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 7
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: 16
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: pnpm install
- name: Publish
run: pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
55 changes: 55 additions & 0 deletions .github/workflows/update-storyshots.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Update storyshots
on: workflow_dispatch
jobs:
update-storyshots:
runs-on: ubuntu-latest
name: storyshots
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7.5.0
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Update snapshots
run: pnpm test:storyshots -- -u
- name: Collect artifacts
uses: actions/upload-artifact@v3
if: always()
with:
name: Updated storyshots
path: test/__image_snapshots__/
update-legacy-storyshots:
runs-on: ubuntu-latest
name: legacy storyshots
steps:
- name: Checkout the repository
uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 7.5.0
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Update snapshots
run: pnpm test:storyshots -- -u
env:
CHARTIST_COMPAT: true
- name: Collect artifacts
uses: actions/upload-artifact@v3
if: always()
with:
name: Updated legacy storyshots
path: test/__image_snapshots__/
Loading

0 comments on commit 3173275

Please sign in to comment.