-
Notifications
You must be signed in to change notification settings - Fork 908
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
Support to Framer X project's environment #1662
Comments
We'd love to have the designers and developers that use Framer share their components via Bit! As for the project setup - it seems that Framer uses a React and Typescript as a boilerplate, but has a different directory structure. Can you share a link to an open source project that uses that structure so I can have a look and see how Bit can be used in Framer's config? |
It's great to hear that you are open to this idea! Here is a Framer X Folder Example. |
Thanks for sharing that example! I would like to get your opinion on the value of such flow for a designer that uses Bit? (internally we work with other tools, so I'm not fluent in the Framer community and eco-system). |
@davo That looks very interesting! |
@itaymendel that's a really good question and honestly I do not have a straight answer for you, because this is a new territory. What I know is, there is a large group of curious designers –designers who code, or learning how-to– coming together as a community, they are getting a solid design tool experience to create and share components. Currently, Framer X have a solution for private components but it's locked into Team accounts, not for individual accounts. Another pricing tier for individual accounts with private components publishing capabilities might be in the pipeline, I do not know, honestly. But I can see how valuable might be for these type of users to have an alternative outlet. |
I like the fact that there is a new group of designers that care more about their tooling and integrating into the r&d workflows. I think that using Bit can close some of the gaps that are still present, even for designers that fully adopted the framer-x workflow and methodology. The only caveat is that it seems that framer uses a proprietary rendering engine for their components. This means that framer-x components will not render on bit.dev. I think that designers will want to see the components, not only the implementation. Do you think Bit is viable for designers, even though it does not support their rendering? (given time we will get there, but right now I don't have an understanding of the scope of the task). |
Not sure if I follow, what do you mean by proprietary rendering engine? All the native components that Framer X uses are open source and React based. I guess it would be a matter of getting the right paths for the Framer dependencies. |
Ok, so it seems I was wrong. The link you shared clarified a few things for me. Edit As for the steps to reproduce it: First, clone the project you shared, and install all dependencies. Note, make sure to install the git clone git@github.com:framer/FramerXFolderExample.git
cd FramerXFolderExample
yarn Now initialize Bit, set the compiler and track the Framer components: $ bit init
successfully initialized a bit workspace.
$ bit import bit.envs/compilers/react-typescript --compiler
the following component environments were installed
- bit.envs/compilers/react-typescript@3.0.1
$ bit add MyProject.framerfx/code/Button.tsx --id framer/button
tracking component framer/button:
added MyProject.framerfx/code/Button.tsx
$ bit add MyProject.framerfx/code/canvas.tsx --id framer/canvas
tracking component framer/canvas:
added MyProject.framerfx/code/canvas.tsx Run $ bit status
new components
(use "bit tag --all [version]" to lock a version with all your changes)
> framer/canvas ... ok
> framer/button ... issues found
untracked file dependencies (use "bit add <file>" to track untracked files as components):
MyProject.framerfx/code/Button.tsx -> src/components/Button.tsx So we need to track that file as well. $ bit add src/components/Button.tsx --id components/button
tracking component components/button:
added src/components/Button.tsx Now all that is left is to $ bit tag --all
3 component(s) tagged | 3 added, 0 changed, 0 auto-tagged
added components: framer/button@0.0.1, framer/canvas@0.0.1, components/button@0.0.1
$ bit export <owner>.<collection>
exported 3 components to scope <owner>.<collection> Head over to the web app and open import React from 'react';
import { Button } from "@bit/itaymendel.framer-demo.framer.button";
export default (
<Button/>
) Done :) |
Will you consider adding support Framer X projects to your Choose your project's environment list?
The compiler configuration is similar to the React with TypeScript one, but the folder structure is totally different.
React with TypeScript
Framer X (React with TypeScript)
The text was updated successfully, but these errors were encountered: