Skip to content

Commit

Permalink
feat: merge version 3 to main
Browse files Browse the repository at this point in the history
BREAKING CHANGE: everything...
  • Loading branch information
SimeonC authored May 27, 2024
2 parents a508b71 + e0080dd commit 1d6f18e
Show file tree
Hide file tree
Showing 909 changed files with 190,621 additions and 137,318 deletions.
3 changes: 3 additions & 0 deletions [email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"independentLernaPackages": ["website", "system/stories"]
}
40 changes: 8 additions & 32 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"projectOwner": "tablecheck",
"repoType": "github",
"repoHost": "https://github.com",
"files": [
"README.md"
],
"files": ["README.md"],
"imageSize": 100,
"commit": false,
"commitConvention": "angular",
Expand All @@ -15,71 +13,49 @@
"name": "Wahid Magdy",
"avatar_url": "https://avatars.githubusercontent.com/u/3442546?v=4",
"profile": "https://github.com/wahidmagdy",
"contributions": [
"doc",
"example"
]
"contributions": ["doc", "example"]
},
{
"login": "SimeonC",
"name": "Simeon Cheeseman",
"avatar_url": "https://avatars.githubusercontent.com/u/1085899?v=4",
"profile": "https://github.com/SimeonC",
"contributions": [
"infra",
"example",
"code",
"test",
"doc"
]
"contributions": ["infra", "example", "code", "test", "doc"]
},
{
"login": "irmir",
"name": "irmir",
"avatar_url": "https://avatars.githubusercontent.com/u/59263605?v=4",
"profile": "https://github.com/irmir",
"contributions": [
"example",
"code"
]
"contributions": ["example", "code"]
},
{
"login": "gazpachu",
"name": "Joan Mira",
"avatar_url": "https://avatars.githubusercontent.com/u/1721288?v=4",
"profile": "http://joanmira.com/",
"contributions": [
"doc",
"code"
]
"contributions": ["doc", "code"]
},
{
"login": "johnnyshields",
"name": "Johnny Shields",
"avatar_url": "https://avatars.githubusercontent.com/u/27655?v=4",
"profile": "https://github.com/johnnyshields",
"contributions": [
"doc"
]
"contributions": ["doc"]
},
{
"login": "Findmitrey",
"name": "Dmitriy",
"avatar_url": "https://avatars.githubusercontent.com/u/19979106?v=4",
"profile": "https://github.com/Findmitrey",
"contributions": [
"example",
"code"
]
"contributions": ["example", "code"]
},
{
"login": "daniellizik",
"name": "Daniel Lizik",
"avatar_url": "https://avatars.githubusercontent.com/u/10506366?v=4",
"profile": "https://github.com/daniellizik",
"contributions": [
"code"
]
"contributions": ["code"]
}
],
"contributorsPerLine": 6,
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ jobs:

- name: Install and Build 🔧
run: |
npm ci --legacy-peer-deps
npm ci
npm run build:storybook
env:
NODE_OPTIONS: --max-old-space-size=16384

- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: docs
folder: docs
folder: system/stories/storybook-static
72 changes: 60 additions & 12 deletions .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
name: Pull Request Workflow

on: [pull_request]
on:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review

concurrency:
# Here the group is defined by the head_ref of the PR
Expand All @@ -16,8 +22,10 @@ jobs:
nvmrc: ${{ steps.nvm.outputs.nvmrc }}
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 0

- name: Read .nvmrc
Expand All @@ -31,15 +39,17 @@ jobs:
cache: npm

- name: Install 🔧
run: npm ci --legacy-peer-deps
run: npm ci --ignore-scripts

lint:
needs: [setup]
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 0

- name: Setup Node.js
Expand All @@ -49,7 +59,7 @@ jobs:
cache: npm

- name: Restore npm installs and Lerna setup
run: npm ci --legacy-peer-deps
run: npm ci

- name: Validate all commits from PR
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
Expand All @@ -62,8 +72,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 0

- name: Setup Node.js
Expand All @@ -73,7 +85,7 @@ jobs:
cache: npm

- name: Restore npm installs and Lerna setup
run: npm ci --legacy-peer-deps
run: npm ci --ignore-scripts

- name: Audit Dependencies
run: npm run audit:ci
Expand All @@ -86,8 +98,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 0

- name: Setup Node.js
Expand All @@ -97,7 +111,7 @@ jobs:
cache: npm

- name: Restore npm installs and Lerna setup
run: npm ci --legacy-peer-deps
run: npm ci

- name: Run Tests
run: npm test
Expand All @@ -111,12 +125,13 @@ jobs:
release:
runs-on: ubuntu-latest
needs: [test, lint]
if: github.ref != 'refs/heads/next'
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- name: Read .nvmrc
id: nvm
Expand All @@ -128,11 +143,44 @@ jobs:
node-version: ${{ steps.nvm.outputs.nvmrc }}

- name: Install 🔧
run: npm ci --legacy-peer-deps
run: npm ci

- name: Create Canary Release ✨
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
run: npx auto shipit

chromatic:
runs-on: ubuntu-latest
needs: [test, lint]
if: github.event.pull_request.draft == false
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
fetch-depth: 0

- name: Read .nvmrc
id: nvm
run: echo ::set-output name=nvmrc::$(cat .nvmrc)

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ steps.nvm.outputs.nvmrc }}

- name: Install 🔧
run: npm ci

- name: Build and Publish to Chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
buildScriptName: 'build'
workingDir: system/stories
env:
NODE_OPTIONS: --max-old-space-size=16384
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ on:
push:
branches:
- main
- next

jobs:
release:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
Expand All @@ -31,14 +31,14 @@ jobs:
cache: npm

- name: Install 🔧
run: npm ci --legacy-peer-deps
run: npm ci

- name: Run Tests
run: npm test

- name: Create Release ✨
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_BOT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
run: npx auto shipit
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ public/static
lib
junit
docs
storybook-static
tsconfig.json
tsconfig.*.json
*.tsbuildinfo
Expand All @@ -19,3 +20,6 @@ tsconfig.*.json
.env.production.local
.@tablecheck-react-system
.@tablecheck
.rollup.cache
/cache
/.nx
7 changes: 7 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lerna run precommit
git update-index --refresh
if [ -e "git diff-index --quiet HEAD system/react/src/index.ts" ]
then
echo "Unstaged changes in the react index file, file has been updated please review and add the changes"
exit 1
fi
npx tablecheck-scripts precommit
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy-peer-deps=true
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v16.4.2
v16.18.1
7 changes: 7 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,10 @@ build
coverage
assets
CHANGELOG.md
system/css/*.css
website/src/static/css/fonts.css
.nx
.gritmodules
storybook-static
tmp
.@tablecheck
17 changes: 0 additions & 17 deletions .storybook/DocContainer.tsx

This file was deleted.

1 change: 0 additions & 1 deletion .storybook/decorators/index.ts

This file was deleted.

Loading

0 comments on commit 1d6f18e

Please sign in to comment.