[Theme] Base theme setup#8030
Conversation
cd61810 to
d19f6c1
Compare
ab1ae64 to
1596ae7
Compare
b81a336 to
7486e9a
Compare
- externally created, compiled and imported themes don't pass the class check anymore we can check for the shape additionally
- theme contains only cloned values from current theme
- ensures current state EUI
-removes circle dependency on main eui
build: ensure sass files are added to packed sub packages
62ad98d to
2532104
Compare
| "peerDependencies": { | ||
| "@elastic/datemath": "^5.0.2", | ||
| "@elastic/eui-theme-borealis": "0.0.1", | ||
| "@elastic/eui-theme-common": "0.0.1", |
There was a problem hiding this comment.
ℹ️ The theme-common package is added as peerDependency for now while it's not actually released yet. Once released we should add it as actual dependency.
| ], | ||
| "scripts": { | ||
| "start": "cross-env BABEL_MODULES=false webpack serve --config=src-docs/webpack.config.js", | ||
| "build:workspaces": "yarn workspaces foreach -Rti --from @elastic/eui-theme-common run build && yarn workspaces foreach -Rti --from @elastic/eui --exclude @elastic/eui --exclude @elastic/eui-theme-common run build", |
There was a problem hiding this comment.
❓ I'm wondering if we want to move this also to the root of our monorepo to have a global script to run initially similar to yarn, Wdyt?
| "license": "SEE LICENSE IN LICENSE.txt", | ||
| "scripts": { | ||
| "build:clean": "rimraf lib/", | ||
| "build": "yarn build:clean && yarn build:compile && yarn build:compile:cjs && yarn build:types", |
There was a problem hiding this comment.
ℹ️ Currently there are no watchers setup yet to listen to changes in these standalone packages. That means that - for now - we need to manually update when e.g. running Storybook or docs.
This should be added for devX but is likely going to happen as a follow-up task.
💔 Build Failed
Failed CI StepsHistory
|
tkajtoch
left a comment
There was a problem hiding this comment.
I reviewed the code again and ran all common scripts locally to ensure they're all working.
As we already discussed, the changes look great! I don't have any objections, especially considering this is going to be merged to a feature branch.
Summary
closes #124
Important
This PR is currently still in
Draftmode, as it needs alignment on some package/dependency specific setups/architectural choices.📖 See additional information here.
QA
/eui: runbuild:workspacesto build workspace dependencies then check that our common development tools/scripts work as expectedyarn storybookandyarn build-storybookyarn startandyarn build-docs/website: runbuild:workspacesand then test that EUI+ docs works as expected viayarn startandyarn buildDeployments & theme switcher testing
By default the theme switcher is only enabled for
developmentenvironments.Storybook: https://eui.elastic.co/pr_8030/storybook/?path=/story/navigation-euibutton--playground
EUI docs: https://eui.elastic.co/pr_8030/
EUI+: https://eui.elastic.co/pr_8030/new-docs/