Open yarinsa opened 1 year ago
Sounds really useful. Go for it if you like.
@Sqrrl I finally got into this contribution.
start
in the addon directoryGot:
ERR! Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './lib/tokenize' is not defined by "exports" in /Users/yarinsasson/Documents/Work/storybook-design-token/node_modules/postcss-safe-parser/node_modules/postcss/package.json
Here is my offer...
(Also would love to get help to be able to contribute)
Hm, not sure what causes this. I just tried with a clean clone of the repo, which worked fine.
yarn install
inside root directorycd addon && yarn start
cd demo && yarn start
I'm running yarn v1.22.19 and node v18.7.0.
I will add the contribution.md soon.
It would be really helpful to have CONTRIBUTION.md
I am sorry for the late response, work is crazy but now I got some free time until March. I followed your instruction precisely (on 2 machines) and I am getting the exact same error. Can we get on a call or try it out together?
Hm, not sure what causes this. I just tried with a clean clone of the repo, which worked fine.
- run
yarn install
inside root directorycd addon && yarn start
- in another terminal tab:
cd demo && yarn start
I'm running yarn v1.22.19 and node v18.7.0.
I will add the contribution.md soon.
Was finally able to reproduce the issue on a Windows VM. Seems like a yarn workspace hoisting issue. I'll try to come up with a solution.
In the meantime you could use the webpack5-demo for developing. This runs outside of yarn workspaces.
cd addon && yarn start
cd ../demo-webpack5 && yarn && yarn start
Done. I would like to open a PR but I can't push a new branch to this repo. @Sqrrl
And now iv'e got another feature request :) Can open a separate issue if you find it useful, WDYT about add the table "rawValue" column? Can be useful for designers, that can see their tokens in one place all the way to the value
@Sqrrl Your help to push my code would be appreciated
@yarinsa You can fork the repo and create a PR with your fork. The raw value could be useful, not sure about giving it its own column though. Maybe as a tooltip?
@yarinsa Could you create a Pull Request? Ping me if you need any assistance
@yarinsa Could you create a Pull Request? Ping me if you need any assistance
Already left that work :( I don't have the source code anymore
@yarinsa it is pity. But, I think I will get it done in a while
Want to begin and say I am willing to contribute this feature :).
The motivation:
Our overrides.less file (overrides antd parsed and replaced using less 'modifyVars' ) looks something like this:
I will wrap the alert variables with @tokens as well and separate it's type. But In the Alert Story I would like to present a table of all the variables containing "--alert-*".
Thought the the most flexible thing will be to add
<DesignTokenDocBlock filter={predicateFn} />;
WDYT? @Sqrrl