forked from contentful/forma-36
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/entity_list_selected_style
- Loading branch information
Showing
479 changed files
with
87,007 additions
and
27,863 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
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 |
---|---|---|
|
@@ -2,8 +2,11 @@ | |
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": [ | ||
"@changesets/changelog-github", | ||
{ "repo": "contentful/forma-36" } | ||
{ | ||
"repo": "contentful/forma-36" | ||
} | ||
], | ||
"ignore": ["@contentful/f36-website"], | ||
"commit": false, | ||
"fixed": [ | ||
[ | ||
|
@@ -15,6 +18,7 @@ | |
"@contentful/f36-card", | ||
"@contentful/f36-collapse", | ||
"@contentful/f36-copybutton", | ||
"@contentful/f36-datepicker", | ||
"@contentful/f36-datetime", | ||
"@contentful/f36-drag-handle", | ||
"@contentful/f36-entity-list", | ||
|
@@ -37,7 +41,6 @@ | |
"@contentful/f36-tooltip", | ||
"@contentful/f36-typography", | ||
"@contentful/f36-utils", | ||
"@contentful/f36-workbench", | ||
"@contentful/f36-core", | ||
"@contentful/f36-components" | ||
] | ||
|
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,42 +1,23 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
docker: circleci/[email protected] | ||
|
||
cache-key: &cache-key | ||
key: dependency-cache-primary-{{ arch }}-yarn-packages-{{ checksum ".nvmrc" }}-{{ checksum "yarn.lock" }} | ||
|
||
commands: | ||
yarn_install: | ||
steps: | ||
- restore_cache: *cache-key | ||
- run: 'echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc' | ||
- run: yarn install --frozen-lockfile --cache-folder ~/.cache/yarn | ||
- save_cache: | ||
<<: *cache-key | ||
paths: | ||
- ~/.cache/yarn | ||
check-changed-files-or-halt: | ||
parameters: | ||
pattern: | ||
type: string | ||
steps: | ||
- run: git show -m HEAD --name-only --pretty="" | egrep -q '<< parameters.pattern >>' || circleci step halt | ||
docker: circleci/[email protected] | ||
node: circleci/[email protected] | ||
|
||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/node:14.15.0-browsers | ||
- image: cimg/node:lts-browsers | ||
resource_class: xlarge | ||
working_directory: ~/circleci-f36-build | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: ~/circleci-f36-build | ||
- yarn_install | ||
- node/install-packages | ||
- run: | ||
name: Build packages | ||
command: yarn build | ||
command: npm run-script build | ||
- persist_to_workspace: | ||
root: . | ||
paths: | ||
|
@@ -48,126 +29,128 @@ jobs: | |
|
||
analyze_code: | ||
docker: | ||
- image: circleci/node:14.15.0-browsers | ||
- image: cimg/node:lts | ||
resource_class: xlarge | ||
working_directory: ~/circleci-f36-build | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: ~/circleci-f36-build | ||
- yarn_install | ||
- node/install-packages | ||
- run: | ||
name: Prettier | ||
command: yarn prettier:check | ||
command: npm run-script prettier:check | ||
- run: | ||
name: Lint | ||
command: yarn lint | ||
command: npm run-script lint | ||
- run: | ||
name: Check types | ||
command: yarn tsc | ||
command: npm run-script tsc | ||
|
||
test: | ||
docker: | ||
- image: circleci/node:14.15.0-browsers | ||
- image: cimg/node:lts | ||
resource_class: xlarge | ||
working_directory: ~/circleci-f36-build | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: ~/circleci-f36-build | ||
- yarn_install | ||
- node/install-packages | ||
- run: | ||
name: Test | ||
command: yarn test | ||
command: npm run-script test | ||
|
||
check-links: | ||
docker: | ||
- image: circleci/node:14.15.0-browsers | ||
- image: cimg/node:lts-browsers | ||
resource_class: xlarge | ||
working_directory: ~/circleci-f36-build | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: ~/circleci-f36-build | ||
- yarn_install | ||
- node/install-packages | ||
- run: | ||
name: Build Next.js website | ||
command: yarn docs:next:build | ||
command: npm run-script docs:next:build | ||
- run: | ||
name: Run production version of the website locally | ||
command: yarn docs:next:start-prod | ||
command: npm run-script docs:next:start-prod | ||
background: true | ||
- run: | ||
name: Wait for localhost:3000 to be ready | ||
command: yarn wait-on http://localhost:3000 | ||
command: npx wait-on http://localhost:3000 | ||
- run: | ||
name: Run links checker | ||
command: yarn blc http://localhost:3000 -ro --exclude "https://medium.com/contentful-design" --exclude "https://github.com/contentful/forma-36" --exclude "https://www.figma.com/@contentful" | ||
command: npx blc http://localhost:3000 -ro --exclude "https://medium.com/contentful-design" --exclude "https://github.com/contentful/forma-36" --exclude "https://www.figma.com/@contentful" | ||
|
||
deploy_chromatic: | ||
docker: | ||
- image: circleci/node:14.15.0-browsers | ||
- image: cimg/node:lts | ||
resource_class: xlarge | ||
working_directory: ~/circleci-f36-build | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: ~/circleci-f36-build | ||
- yarn_install | ||
- node/install-packages | ||
- run: | ||
name: Storybook | ||
command: yarn storybook:build | ||
command: npm run-script storybook:build | ||
- run: | ||
name: Chromatic | ||
command: yarn chromatic | ||
command: npm run-script chromatic | ||
|
||
release: | ||
docker: | ||
- image: circleci/node:14.15.0-browsers | ||
- image: cimg/node:lts | ||
working_directory: ~/circleci-f36-build | ||
resource_class: xlarge | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: ~/circleci-f36-build | ||
- yarn_install | ||
- node/install-packages | ||
- add_ssh_keys: | ||
fingerprints: | ||
- '2b:9f:13:79:d8:7b:f5:38:43:8f:3d:a8:7d:53:22:b2' | ||
- run: git config --global user.email ${GITHUB_EMAIL} | ||
- run: git config --global user.name ${GITHUB_USER} | ||
- run: | ||
name: Generate changelogrc | ||
command: yarn changelog:gen | ||
command: npm run-script changelog:gen | ||
- run: | ||
name: Generate packages changelogs | ||
command: yarn changeset version | ||
command: npx changeset version | ||
- run: | ||
name: Publish packages and create releases | ||
command: yarn run changeset:publish | ||
command: | | ||
npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN | ||
npm run-script changeset:publish | ||
changelog: | ||
docker: | ||
- image: circleci/node:14.15.0-browsers | ||
- image: cimg/node:lts | ||
resource_class: xlarge | ||
working_directory: ~/circleci-f36-build | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: ~/circleci-f36-build | ||
- yarn_install | ||
- node/install-packages | ||
- add_ssh_keys: | ||
fingerprints: | ||
- '2b:9f:13:79:d8:7b:f5:38:43:8f:3d:a8:7d:53:22:b2' | ||
- run: git config --global user.email ${GITHUB_EMAIL} | ||
- run: git config --global user.name ${GITHUB_USER} | ||
- run: | ||
name: Generate changelog files | ||
command: yarn changelog:write | ||
command: npm run-script changelog:write | ||
- run: | ||
name: Commit changelog files | ||
command: | | ||
git add . && yarn run pretty:quick | ||
git add . && npm run-script pretty:quick | ||
git diff --staged --quiet || git commit -am "docs: update changelog on repository and website" && git push origin ${CIRCLE_BRANCH} | ||
workflows: | ||
|
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 |
---|---|---|
|
@@ -5,7 +5,8 @@ esm | |
*.css.d.ts | ||
public | ||
.cache | ||
tsup.config.ts | ||
|
||
# next.js | ||
**/.next/ | ||
**/out/ | ||
**/out/ |
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
Validating CODEOWNERS rules …
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 @@ | ||
* @contentful/team-bauhaus @mshaaban0 @Lelith | ||
* @contentful/team-bauhaus @Lelith @fabe |
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
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
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
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,23 @@ | ||
# This workflow removes the stale label from PRs and issues when a new comment is created | ||
# | ||
name: Remove stale label | ||
|
||
on: | ||
issue_comment: | ||
types: [created] | ||
|
||
jobs: | ||
remove_stale: | ||
if: contains(github.event.issue.labels.*.name, 'stale') | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
|
||
steps: | ||
- name: Remove stale label | ||
run: gh issue edit $ISSUE --remove-label $LABEL | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
ISSUE: ${{ github.event.issue.number }} | ||
LABEL: 'stale' |
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,17 @@ | ||
name: 'size' | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
size: | ||
runs-on: ubuntu-latest | ||
env: | ||
CI_JOB_NUMBER: 1 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: andresz1/size-limit-action@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_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,30 @@ | ||
# This workflow warns issues and PRs that have had no activity for a specified amount of time. | ||
# | ||
# You can adjust the behavior by modifying this file. | ||
# For more information, see: | ||
# https://github.com/actions/stale | ||
name: Mark stale issues and pull requests | ||
|
||
on: | ||
schedule: | ||
- cron: '30 7 * * *' | ||
|
||
jobs: | ||
stale: | ||
|
||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
|
||
steps: | ||
- uses: actions/stale@v5 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
days-before-stale: 30 | ||
days-before-close: -1 | ||
operations-per-run: 300 | ||
stale-issue-message: 'Marking issue as stale since there was no activity for 30 days' | ||
stale-pr-message: 'Marking pull request as stale since there was no activity for 30 days' | ||
stale-issue-label: 'stale' | ||
stale-pr-label: 'stale' |
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
Oops, something went wrong.