Skip to content

Commit

Permalink
Merge pull request #12 from South-Paw/2.0.0-beta.1
Browse files Browse the repository at this point in the history
Remove styled-components dependency
  • Loading branch information
South-Paw authored Aug 4, 2023
2 parents 6c88e1c + 5e85b29 commit bf42ae9
Show file tree
Hide file tree
Showing 23 changed files with 19,861 additions and 19,423 deletions.
9 changes: 9 additions & 0 deletions .babelrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"sourceType": "unambiguous",
"presets": [
["@babel/preset-env", { "targets": { "chrome": 100 } }],
"@babel/preset-typescript",
"@babel/preset-react"
],
"plugins": []
}
36 changes: 19 additions & 17 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,38 +1,40 @@
{
"extends": [
"airbnb",
"airbnb-typescript",
"airbnb/hooks",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"prettier/react",
"prettier/@typescript-eslint",
"plugin:jest/recommended"
"plugin:jest/recommended",
"plugin:storybook/recommended"
],
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "off",
"react/jsx-props-no-spreading": "off"
"@typescript-eslint/no-non-null-assertion": "off",
"class-methods-use-this": "off",
"import/prefer-default-export": "off",
"no-underscore-dangle": "off",
"react/jsx-props-no-spreading": "off",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"react/require-default-props": "off"
},
"overrides": [
{
"files": ["**/*.tsx"],
"rules": {
"react/prop-types": "off"
}
"files": ["tsup.config.ts"],
"rules": { "import/no-extraneous-dependencies": "off" }
},
{
"files": ["**/*.stories.tsx"],
"files": ["**/*.stories.*"],
"rules": {
"import/no-extraneous-dependencies": "off"
"import/no-extraneous-dependencies": "off",
"react-hooks/rules-of-hooks": "off",
"react/function-component-definition": "off"
}
}
],
"settings": {
"react": {
"version": "detect"
}
}
]
}
81 changes: 81 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
name: CI

on:
push:
branches-ignore:
- "main"
tags-ignore:
- "*.*.*"

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Cancel previous runs
uses: styfle/[email protected]

- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint

test:
name: Test
runs-on: ubuntu-latest
needs:
- lint
steps:
- name: Cancel previous runs
uses: styfle/[email protected]

- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Test
run: npm run test
env:
CI: true

build:
name: Build
runs-on: ubuntu-latest
needs:
- test
steps:
- name: Cancel previous runs
uses: styfle/[email protected]

- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build
59 changes: 59 additions & 0 deletions .github/workflows/draft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Draft Release

on:
push:
branches:
- "main"
tags-ignore:
- "*.*.*"
workflow_dispatch:

jobs:
deploy-draft:
name: Deploy draft
runs-on: ubuntu-latest
steps:
- name: Cancel previous runs
uses: styfle/[email protected]

- name: Start deployment
uses: bobheadxi/deployments@v1
id: deployment
with:
env: staging
step: start

- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"

- name: Install dependencies
run: npm ci

- name: Build Storybook
run: npm run storybook:build

- name: Deploy to Netlify
uses: South-Paw/action-netlify-cli@v1
id: netlify
with:
args: 'deploy --json --dir \"./storybook-static\" --message \"draft [${{ github.sha }}]\"'
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}

- name: Finish deployment
uses: bobheadxi/deployments@v1
if: always()
with:
env: ${{ steps.deployment.outputs.env }}
step: finish
status: ${{ job.status }}
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
env_url: ${{ steps.netlify.outputs.NETLIFY_DRAFT_URL }}
override: false
32 changes: 0 additions & 32 deletions .github/workflows/pull_request.yaml

This file was deleted.

72 changes: 0 additions & 72 deletions .github/workflows/push.yaml

This file was deleted.

Loading

0 comments on commit bf42ae9

Please sign in to comment.