Skip to content

Commit

Permalink
[#181956670] Story dev design system figma integration (#5)
Browse files Browse the repository at this point in the history
* Generate component information from Figma
* Generate scaffolding for components from this info
* Jest configuration
* Fixes some tsc issues with the project
  • Loading branch information
iz-podpolja authored May 25, 2022
1 parent 9cbaa1c commit 876839e
Show file tree
Hide file tree
Showing 48 changed files with 7,017 additions and 184 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ module.exports = {
extends: ['eslint:recommended', 'plugin:mdx/recommended', 'plugin:prettier/recommended'],
parser: 'eslint-mdx',
},
{ files: ['figma/**/*', 'generator/**/*'], parserOptions: { project: './tsconfig.tsnode.json' } },
],
settings: {
react: {
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ lerna-debug.log*

node_modules
dist
build
storybook-static
dist-ssr
*.local
Expand Down
5 changes: 2 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/sh
#!/bin/zsh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
yarn lint-staged
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ coverage
.history
app/javascript/gql/generated.ts
app/javascript/shared/i18n.ts
build
*.ejs
build
6 changes: 6 additions & 0 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ blocks:
- cache clear
- yarn
- cache store
- yarn build-tokens
- cache store tokens build
prologue:
commands:
- checkout
Expand All @@ -35,6 +37,7 @@ blocks:
commands:
- "sem-version node $(awk '/^nodejs/ { print $2 }' .tool-versions)"
- cache restore
- cache restore tokens
- yarn
- yarn test
- name: Lint
Expand All @@ -49,6 +52,7 @@ blocks:
commands:
- "sem-version node $(awk '/^nodejs/ { print $2 }' .tool-versions)"
- cache restore
- cache restore tokens
- yarn
- yarn lint
- name: 'Build '
Expand All @@ -66,6 +70,7 @@ blocks:
commands:
- "sem-version node $(awk '/^nodejs/ { print $2 }' .tool-versions)"
- cache restore
- cache restore tokens
- yarn
- yarn build
- cache store npm-package dist
Expand All @@ -74,6 +79,7 @@ blocks:
commands:
- "sem-version node $(awk '/^nodejs/ { print $2 }' .tool-versions)"
- cache restore
- cache restore tokens
- yarn
- yarn build-storybook
- cache store storybook storybook-static
Expand Down
3 changes: 2 additions & 1 deletion .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { withDesign } from 'storybook-addon-designs'
import { withThemeProvider, AVAILABLE_THEMES } from '../src/helpers/ThemeProvider'
import { withThemeProvider } from '../src/helpers'
import AVAILABLE_THEMES from '../src/lib/shared/themes'
import order from './order.json'
export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
Expand Down
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
yarn 1.22.10
nodejs 16.1.0
nodejs 16.10.0
ruby 3.0.4
2 changes: 1 addition & 1 deletion build/css/globals.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Thu, 12 May 2022 16:07:15 GMT
* Generated on Wed, 25 May 2022 16:40:17 GMT
*/

:root {
Expand Down
2 changes: 1 addition & 1 deletion build/css/themes/at.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Thu, 12 May 2022 16:07:15 GMT
* Generated on Wed, 25 May 2022 16:40:17 GMT
*/

:root {
Expand Down
2 changes: 1 addition & 1 deletion build/css/themes/me.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Thu, 12 May 2022 16:07:15 GMT
* Generated on Wed, 25 May 2022 16:40:17 GMT
*/

:root {
Expand Down
2 changes: 1 addition & 1 deletion build/css/themes/org.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Do not edit directly
* Generated on Thu, 12 May 2022 16:07:15 GMT
* Generated on Wed, 25 May 2022 16:40:17 GMT
*/

:root {
Expand Down
Loading

0 comments on commit 876839e

Please sign in to comment.