Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: hello, monorepo! #7736

Merged
merged 22 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
bd249bd
build: reorganize .gitignore files
tkajtoch Apr 25, 2024
1622b59
chore: move `@elastic/eui` files to `packages/eui`
tkajtoch Apr 25, 2024
0be81bb
chore: setup `pre-push` in root-level private package
tkajtoch Apr 25, 2024
a6ea926
build: update buildkite pipelines to use correct working directories …
tkajtoch Apr 25, 2024
733ec74
chore: add monorepo note to README
tkajtoch Apr 25, 2024
c424f90
build: enable yarn workspaces and move `yarn.lock` back to the root d…
tkajtoch May 6, 2024
ed8e856
feat: update enzyme-to-json serializer path
tkajtoch May 6, 2024
44d5634
feat: add root `node_modules/@types` to tsconfig's `typeRoots`
tkajtoch May 6, 2024
8d0b254
fix: apply `resolutions` field on the workspace level instead of inac…
tkajtoch May 6, 2024
dacc19e
fix: add `eslint-plugin-local` to `workspaces.nohoist` due to its har…
tkajtoch May 6, 2024
a7c5def
fix: add `stylelint` to `nohoist` so that `postcss-styled-syntax` cus…
tkajtoch May 6, 2024
094d31d
docs: update docs with new paths
tkajtoch May 6, 2024
5dd4aac
build: update deploy pipeline scripts to use correct paths
tkajtoch May 6, 2024
90024f5
feat: add monorepo warning messages when running `yarn install`, `yar…
tkajtoch May 8, 2024
71974b3
docs: add monorepo note to running-eui-locally.md
tkajtoch May 8, 2024
b817ed2
fix: more strict react-focus-lock version resolution
tkajtoch May 8, 2024
9e89ea2
Merge branch 'main' into feat/hello-monorepo
tkajtoch May 9, 2024
f185622
Merge remote-tracking branch 'upstream/main' into feat/hello-monorepo
tkajtoch May 10, 2024
7b54b74
fix: improve preinstall cleanup command
tkajtoch May 10, 2024
334ffe3
fix: revert sub-dependency updates introduced in another PR to work w…
tkajtoch May 10, 2024
334f250
fix: update `@storybook/test` alias resolution to work with monorepo …
tkajtoch May 13, 2024
208e430
chore: add jsdoc explaining the need for `getAbsoluteDependencyPath`
tkajtoch May 13, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
3 changes: 1 addition & 2 deletions .buildkite/scripts/pipelines/pipeline_deploy_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ fi

# Run EUI build/deploy script, set in the template parameter
# Expects env: GPROJECT, GCE_ACCOUNT, GIT_BRANCH, GITHUB_TOKEN from pre_command.sh
./scripts/deploy/deploy_docs

./packages/eui/scripts/deploy/deploy_docs
22 changes: 11 additions & 11 deletions .buildkite/scripts/pipelines/pipeline_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,47 +16,47 @@ DOCKER_OPTIONS=(
case $TEST_TYPE in
lint)
echo "[TASK]: Running linters"
DOCKER_OPTIONS+=(bash -c "/opt/yarn*/bin/yarn && yarn lint")
DOCKER_OPTIONS+=(bash -c "/opt/yarn*/bin/yarn --cwd packages/eui && yarn --cwd packages/eui lint")
;;

unit:ts)
echo "[TASK]: Running .ts and .js unit tests"
DOCKER_OPTIONS+=(bash -c "/opt/yarn*/bin/yarn && yarn test-unit --node-options=--max_old_space_size=2048 --testMatch=non-react")
DOCKER_OPTIONS+=(bash -c "/opt/yarn*/bin/yarn --cwd packages/eui && yarn --cwd packages/eui test-unit --node-options=--max_old_space_size=2048 --testMatch=non-react")
;;

unit:tsx:16)
echo "[TASK]: Running Jest .tsx tests against React 16"
DOCKER_OPTIONS+=(bash -c "/opt/yarn*/bin/yarn && yarn test-unit --node-options=--max_old_space_size=2048 --react-version=16 --testMatch=react")
DOCKER_OPTIONS+=(bash -c "/opt/yarn*/bin/yarn --cwd packages/eui && yarn --cwd packages/eui test-unit --node-options=--max_old_space_size=2048 --react-version=16 --testMatch=react")
;;

unit:tsx:17)
echo "[TASK]: Running Jest .tsx tests against React 17"
DOCKER_OPTIONS+=(bash -c "/opt/yarn*/bin/yarn && yarn test-unit --node-options=--max_old_space_size=2048 --react-version=17 --testMatch=react")
DOCKER_OPTIONS+=(bash -c "/opt/yarn*/bin/yarn --cwd packages/eui && yarn --cwd packages/eui test-unit --node-options=--max_old_space_size=2048 --react-version=17 --testMatch=react")
;;

unit:tsx)
echo "[TASK]: Running Jest .tsx tests against React 18"
DOCKER_OPTIONS+=(bash -c "/opt/yarn*/bin/yarn && yarn test-unit --node-options=--max_old_space_size=2048 --testMatch=react")
DOCKER_OPTIONS+=(bash -c "/opt/yarn*/bin/yarn --cwd packages/eui && yarn --cwd packages/eui test-unit --node-options=--max_old_space_size=2048 --testMatch=react")
;;

cypress:16)
echo "[TASK]: Running Cypress tests against React 16"
DOCKER_OPTIONS+=(bash -c "/opt/yarn*/bin/yarn && yarn cypress install && yarn test-cypress --node-options=--max_old_space_size=2048 --react-version=16")
DOCKER_OPTIONS+=(bash -c "/opt/yarn*/bin/yarn --cwd packages/eui && yarn --cwd packages/eui cypress install && yarn --cwd packages/eui test-cypress --node-options=--max_old_space_size=2048 --react-version=16")
;;

cypress:17)
echo "[TASK]: Running Cypress tests against React 17"
DOCKER_OPTIONS+=(bash -c "/opt/yarn*/bin/yarn && yarn cypress install && yarn test-cypress --node-options=--max_old_space_size=2048 --react-version=17")
DOCKER_OPTIONS+=(bash -c "/opt/yarn*/bin/yarn --cwd packages/eui && yarn --cwd packages/eui cypress install && yarn --cwd packages/eui test-cypress --node-options=--max_old_space_size=2048 --react-version=17")
;;

cypress:18)
echo "[TASK]: Running Cypress tests against React 18"
DOCKER_OPTIONS+=(bash -c "/opt/yarn*/bin/yarn && yarn cypress install && yarn test-cypress --node-options=--max_old_space_size=2048")
DOCKER_OPTIONS+=(bash -c "/opt/yarn*/bin/yarn --cwd packages/eui && yarn --cwd packages/eui cypress install && yarn --cwd packages/eui test-cypress --node-options=--max_old_space_size=2048")
;;

cypress:a11y)
echo "[TASK]: Running Cypress accessibility tests against React 18"
DOCKER_OPTIONS+=(bash -c "/opt/yarn*/bin/yarn && yarn cypress install && yarn run test-cypress-a11y --node-options=--max_old_space_size=2048")
DOCKER_OPTIONS+=(bash -c "/opt/yarn*/bin/yarn --cwd packages/eui && yarn --cwd packages/eui cypress install && yarn --cwd packages/eui run test-cypress-a11y --node-options=--max_old_space_size=2048")
;;

*)
Expand Down
51 changes: 22 additions & 29 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,33 +1,26 @@
.idea
node_modules/
test/spec/screenshots/baseline/**/*.png
test/spec/screenshots/diff/**/*.png
test/spec/screenshots/screen/**/*.png
test/failure-screenshots/**/*.png
cypress/screenshots
cypress/videos
# node_modules directory at any level deep
node_modules

storybook-static/
coverage/
reports/
.nyc_output/
tmp/
docs/
dist/
lib/
es/
optimize/
test-env/
.idea
.vscode/
.DS_Store
.eslintcache
.yo-rc.json
# Global log files
npm-debug.log
yarn-error.log
.cache-loader
**/*.out

# typescript output
types/
eui.d.ts
# IDE-specific files
.idea
.vscode

# OS-specific files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
*.stackdump
[Dd]esktop.ini
Icon
.DS_Store

# Logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

Check out our [full documentation site][docs] which contains many examples of components in the EUI framework aesthetic, and how to use them in your products. Our FAQ below covers common usage questions — for other general questions regarding EUI, check out the [Discussions tab](https://github.com/elastic/eui/discussions).

> ![NOTE]
> We're in the process of migrating this repository to a monorepo structure. You can find `@elastic/eui` files in the [packages/eui](https://github.com/elastic/eui/tree/main/packages/eui) directory.

## Frequently Asked Questions

### What is the Elastic UI Framework?
Expand Down