-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
353 changed files
with
28,182 additions
and
34,902 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
defaults | ||
not ie 11 | ||
not ie_mob 11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"withoutPublish": true, | ||
"tempDir": "package" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"extends": ["@commitlint/config-conventional"], | ||
"rules": { | ||
"body-max-line-length": [0] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"path": "@commitlint/cz-commitlint" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
* text=auto | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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__/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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__/ |
Oops, something went wrong.