Skip to content

2022.9 Jun-Aug release #162

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

Merged
merged 227 commits into from
Aug 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
227 commits
Select commit Hold shift + click to select a range
f82d310
init cli with flag docs & deps
softmarshmallow Sep 27, 2021
c00831b
Merge branch 'staging' of https://github.com/gridaco/designto-code in…
softmarshmallow Mar 3, 2022
ac577ed
add cli docs
softmarshmallow Mar 3, 2022
872f982
add global context menu disable
softmarshmallow Apr 26, 2022
7733903
add canvas context menu
softmarshmallow Apr 26, 2022
644d200
modify: frame title onselect triggered on right click
softmarshmallow Apr 26, 2022
ade7cb3
update styled-components module docs
softmarshmallow Jun 10, 2022
9f8fc04
bump coli with solid keyword reservations
softmarshmallow Jun 10, 2022
c98d282
typo fix
softmarshmallow Jun 10, 2022
e1d518c
refactor `@web-builder/styled` module
softmarshmallow Jun 10, 2022
80344b0
rename modules & add solid framework config (initial)
softmarshmallow Jun 10, 2022
941b83b
update configuration typings - modularize
softmarshmallow Jun 12, 2022
05173fe
add solidjs package specification
softmarshmallow Jun 26, 2022
52dff0e
add solid styled component import specifier coli const
softmarshmallow Jun 26, 2022
4a598b2
add solidjs on framework config
softmarshmallow Jun 26, 2022
50a9574
update solid framework config with export options
softmarshmallow Jun 26, 2022
7b28815
bump coli
softmarshmallow Jun 26, 2022
3966f04
init `@web-builder/module-es`
softmarshmallow Jun 26, 2022
339600f
add solid pre defined import specifications
softmarshmallow Jun 26, 2022
dc8bdaf
add alias to package dec
softmarshmallow Jun 26, 2022
e679e6f
update author
softmarshmallow Jun 26, 2022
fe03594
init `@designto/solid` package
softmarshmallow Jun 26, 2022
e2da6db
bump coli
softmarshmallow Jun 27, 2022
0ddf42f
update next config with new packages
softmarshmallow Jun 27, 2022
0df4842
add scripting config for solid (disabled)
softmarshmallow Jun 27, 2022
c398f66
update solid framework id
softmarshmallow Jun 27, 2022
5732fb5
mv es widget builder reusable codes
softmarshmallow Jun 27, 2022
f756de9
add solid builder
softmarshmallow Jun 27, 2022
dda308e
bump coli
softmarshmallow Jun 27, 2022
d7419f5
add solid-js as a valid option input
softmarshmallow Jun 27, 2022
4d3969f
bump coli
softmarshmallow Jun 27, 2022
37439db
add parameter call style styled component declaration for solid
softmarshmallow Jun 27, 2022
c14a455
rm logs
softmarshmallow Jun 27, 2022
22a44d1
Merge pull request #161 from gridaco/solid
softmarshmallow Jun 28, 2022
01ea604
add solidjs on readme
softmarshmallow Jun 28, 2022
351547f
refactor: made jsx component module builder an abstract class
softmarshmallow Jun 28, 2022
c4103a4
bump coli
softmarshmallow Jun 29, 2022
63e2aae
add inline css for solid js
softmarshmallow Jun 29, 2022
db8abda
Merge branch 'solid' of https://github.com/gridaco/designto-code into…
softmarshmallow Jun 29, 2022
ddf2e45
bump coli
softmarshmallow Jul 12, 2022
62ea077
init with simple blueprints
softmarshmallow Jul 12, 2022
d86629e
add fresh packages
softmarshmallow Jul 14, 2022
23c16aa
update doc package with readme
softmarshmallow Jul 14, 2022
d46708e
add dts support package (empty)
softmarshmallow Jul 14, 2022
5d591fd
refactor
softmarshmallow Jul 14, 2022
e016962
add single file multi widget composition doc
softmarshmallow Jul 18, 2022
d2eeb23
init default props pkg
softmarshmallow Jul 18, 2022
de8a5af
add child props deligation doc
softmarshmallow Jul 18, 2022
99f51a6
cleanup
softmarshmallow Jul 18, 2022
363487b
update declare docs
softmarshmallow Jul 18, 2022
f60c54e
rename default props to builtin props
softmarshmallow Jul 18, 2022
3042d51
add module tokens
softmarshmallow Jul 18, 2022
08d1fd6
update nextjs config with new pkg
softmarshmallow Jul 18, 2022
27d6c14
add module readme gen
softmarshmallow Jul 18, 2022
9c11890
update module support pkg exports
softmarshmallow Jul 18, 2022
ae8eedc
add declare token handling
softmarshmallow Jul 18, 2022
e280d14
update types
softmarshmallow Jul 18, 2022
c1f1e7e
add module tokens to main special token exports
softmarshmallow Jul 18, 2022
2b826b4
update react styled components module builder class name
softmarshmallow Jul 18, 2022
133f3ec
bump subpackages
softmarshmallow Jul 18, 2022
0ba46c3
update class names
softmarshmallow Jul 19, 2022
6246c6c
update pkgs
softmarshmallow Jul 19, 2022
1c1b319
update doc
softmarshmallow Jul 19, 2022
eac7af6
sync
softmarshmallow Jul 19, 2022
6d9436a
reserve
softmarshmallow Jul 19, 2022
46c9e38
reserve
softmarshmallow Jul 19, 2022
ec27b02
reserve
softmarshmallow Jul 19, 2022
1fb9471
add jsx widget tsdoc
softmarshmallow Jul 19, 2022
ed0a396
rename
softmarshmallow Jul 19, 2022
249d181
update widget docs example
softmarshmallow Jul 20, 2022
b4db2e0
add doc meta module
softmarshmallow Jul 20, 2022
d310e43
widget declaration doc builder wip
softmarshmallow Jul 20, 2022
e88e2d3
fix build
softmarshmallow Jul 20, 2022
645384b
Merge branch 'support-module' of https://github.com/gridaco/designto-…
softmarshmallow Jul 20, 2022
918e41a
update coli with comments support
softmarshmallow Jul 21, 2022
49beadc
bump coli with comemnts support
softmarshmallow Jul 21, 2022
74ac267
b config
softmarshmallow Jul 21, 2022
3832c29
bump coli with jsx text nesting
softmarshmallow Jul 21, 2022
4927653
fix meta manager formatting
softmarshmallow Jul 21, 2022
0ce5dab
add widget declaration info type for doc
softmarshmallow Jul 21, 2022
9223234
initial experimental tsdoc support on react styled components widget
softmarshmallow Jul 21, 2022
6664410
add platforms field to meta
softmarshmallow Jul 21, 2022
2e9346d
rename file to tokenizer
softmarshmallow Jul 21, 2022
2162eb9
Merge branch 'staging' of https://github.com/gridaco/designto-code in…
softmarshmallow Jul 21, 2022
5ec4de5
rm log
softmarshmallow Jul 23, 2022
09fd4d3
add dirty package
softmarshmallow Jul 23, 2022
e146bf0
add debugger package
softmarshmallow Jul 23, 2022
e5ac8f3
replace console logs to debugger logs
softmarshmallow Jul 23, 2022
696c87a
add mute, unmute command with postmessage interface to debugger
softmarshmallow Jul 23, 2022
68b4abc
bump packages
softmarshmallow Jul 23, 2022
8ff6a45
format
softmarshmallow Jul 23, 2022
c7fe952
add docs gen with widget meta
softmarshmallow Jul 23, 2022
2d8f60d
add resolutions & fix `@reflect-ui/core`version to 0.0.3
softmarshmallow Jul 23, 2022
6993f00
bump coli with fixed astformatter
softmarshmallow Jul 23, 2022
8da1f10
link version info to doc
softmarshmallow Jul 23, 2022
0de24fd
update prettier config on monaco to use double quote
softmarshmallow Jul 23, 2022
73e93b1
update function formatting
softmarshmallow Jul 23, 2022
986035f
remove explicit filekey extension type for editor - now natively supp…
softmarshmallow Jul 23, 2022
abbef6b
update figma converters to seed filekey (mandatory)
softmarshmallow Jul 23, 2022
3d69aa8
update default indentations
softmarshmallow Jul 23, 2022
2a7ef65
mimic fixes
softmarshmallow Jul 23, 2022
44e2ff0
add FigmaWidgetKey support with filekey info
softmarshmallow Jul 23, 2022
2d85f5d
bump reflect core with update widget key - copyWith, rename
softmarshmallow Jul 23, 2022
02bcd54
remove web widget key, use core widget key. update usage (might have …
softmarshmallow Jul 23, 2022
304b77b
add design origin link building feature to widget declaration docgen
softmarshmallow Jul 23, 2022
8441f1f
fix serializer
softmarshmallow Jul 24, 2022
48a2c80
add preview image & name info to docgen
softmarshmallow Jul 24, 2022
16c6ff3
rm test
softmarshmallow Jul 24, 2022
967ef8c
add example output
softmarshmallow Jul 24, 2022
4133140
add docgen support for react native, solidjs (with some abstraction)
softmarshmallow Jul 25, 2022
dd5a037
bump reflect core with new widget key interface
softmarshmallow Jul 25, 2022
b2279cc
Merge pull request #168 from gridaco/support-docs
softmarshmallow Jul 25, 2022
f6a77d8
init flutter build package
softmarshmallow Jul 25, 2022
91021ef
init tests
softmarshmallow Jul 26, 2022
d2ae959
rm flutter build worker pkg
softmarshmallow Jul 27, 2022
678ec57
add flutter runner component
softmarshmallow Jul 27, 2022
d25ddb3
add flutter build support with dart-services
softmarshmallow Jul 27, 2022
1b37de2
fix build
softmarshmallow Jul 27, 2022
1f3bb48
update console feed styles
softmarshmallow Jul 27, 2022
75c485d
mimic updates
softmarshmallow Jul 27, 2022
e75b9fb
Merge branch 'staging' of https://github.com/gridaco/designto-code in…
softmarshmallow Jul 27, 2022
6b0e535
update readme
softmarshmallow Jul 28, 2022
dece937
add cover
softmarshmallow Jul 28, 2022
b247445
update readme
softmarshmallow Jul 28, 2022
b9b9743
update readme
softmarshmallow Jul 28, 2022
9de21b4
init cli
softmarshmallow Jul 28, 2022
4f70382
update doc
softmarshmallow Jul 28, 2022
ddc84de
remove submodule packages
softmarshmallow Jul 28, 2022
9c761c2
bump editor ui
softmarshmallow Jul 31, 2022
ab3143a
(MAJOR CHANGES) remove submodule packages & going production.
softmarshmallow Jul 31, 2022
ce090b9
rename config package to `@grida/builder-config`
softmarshmallow Jul 31, 2022
cfe3de5
init examples
softmarshmallow Jul 31, 2022
fa4c760
update cli design docs
softmarshmallow Jul 31, 2022
8d018e4
add designsource config
softmarshmallow Jul 31, 2022
990bf31
add builder config
softmarshmallow Jul 31, 2022
22cb0e1
update framework config exporting & more
softmarshmallow Jul 31, 2022
56109e2
add cli grida project finder & testing
softmarshmallow Jul 31, 2022
c943d00
update test
softmarshmallow Aug 1, 2022
2560f5f
add enquirer
softmarshmallow Aug 1, 2022
cbd44a8
init init command
softmarshmallow Aug 1, 2022
fba156e
path utils
softmarshmallow Aug 1, 2022
c61acb2
organize
softmarshmallow Aug 1, 2022
61e4ece
update base project locator
softmarshmallow Aug 1, 2022
a566441
init with grida.config.js gen
softmarshmallow Aug 1, 2022
c05c18d
update type import
softmarshmallow Aug 1, 2022
eaa2269
add grida config
softmarshmallow Aug 1, 2022
b6d04f3
add code command
softmarshmallow Aug 1, 2022
4cc6960
add add command
softmarshmallow Aug 1, 2022
7886006
add logger
softmarshmallow Aug 1, 2022
8d41b46
update bin
softmarshmallow Aug 1, 2022
b0a9b6b
add spinner (ora)
softmarshmallow Aug 1, 2022
559d83c
add update notifier
softmarshmallow Aug 1, 2022
4c0608b
add design source indexer
softmarshmallow Aug 1, 2022
57c1fd0
add example project
softmarshmallow Aug 1, 2022
a3f446b
organize
softmarshmallow Aug 1, 2022
4305593
add base project initializer
softmarshmallow Aug 2, 2022
653fe11
add auth command login & logout
softmarshmallow Aug 2, 2022
17a3795
init turbo & lerna
softmarshmallow Aug 2, 2022
9934586
rm unused flutter builder artifacts & organize
softmarshmallow Aug 2, 2022
29ff35a
fix types & imports (no major impact)
softmarshmallow Aug 2, 2022
a50aa9e
setup turbo & add build scripts to each packages - might have major i…
softmarshmallow Aug 2, 2022
e6c2339
fix types
softmarshmallow Aug 3, 2022
fdb1b48
update package configs
softmarshmallow Aug 3, 2022
92beb29
bump editor ui with peer deps met
softmarshmallow Aug 3, 2022
3e799fa
resolve peer deps
softmarshmallow Aug 3, 2022
dba90d7
use ncc for cli build
softmarshmallow Aug 3, 2022
4171d12
v0.0.2
softmarshmallow Aug 3, 2022
8defd5e
v0.0.4
softmarshmallow Aug 3, 2022
91dfc58
add `#!/usr/bin/env node`
softmarshmallow Aug 3, 2022
543d086
v0.0.5
softmarshmallow Aug 3, 2022
a25d18a
fix envload issues
softmarshmallow Aug 3, 2022
fbe64f8
v0.0.6
softmarshmallow Aug 3, 2022
501aed9
Merge pull request #171 from gridaco/cli
softmarshmallow Aug 3, 2022
c91318c
Merge branch 'staging' of https://github.com/gridaco/designto-code in…
softmarshmallow Aug 3, 2022
45cd43c
yarn
softmarshmallow Aug 3, 2022
3a4f2c6
fix svgs
softmarshmallow Aug 3, 2022
a601f6e
rename composer
softmarshmallow Aug 3, 2022
01dbb10
fix flutter main axis alignmen
softmarshmallow Aug 3, 2022
1f12c18
add white, black named color support
softmarshmallow Aug 3, 2022
d1f173b
organize & extract compose_wrap
softmarshmallow Aug 3, 2022
45a512a
wip
softmarshmallow Aug 3, 2022
6dba111
yarn
softmarshmallow Aug 3, 2022
56344a4
bump flutter builder
softmarshmallow Aug 4, 2022
7d31d71
update flutter builder with material 3 spec buttons
softmarshmallow Aug 4, 2022
15171ab
fix flutter textstyle height handling
softmarshmallow Aug 4, 2022
d9f80fa
add onchange static callback snippets for slider, checkbox, ..
softmarshmallow Aug 5, 2022
48a419c
fix color
softmarshmallow Aug 5, 2022
b534be5
fix nested stack position handling
softmarshmallow Aug 5, 2022
98c97a6
fix typo
softmarshmallow Aug 5, 2022
faf25c1
add snapshot widget extension
softmarshmallow Aug 5, 2022
f8db6e2
update flutter app scaffold file with lint disable line
softmarshmallow Aug 5, 2022
5c37a43
handle biased center positioning
softmarshmallow Aug 5, 2022
d951785
extract Positioned handler
softmarshmallow Aug 5, 2022
7bbc773
add button support
softmarshmallow Aug 5, 2022
06217e9
add checkbox support
softmarshmallow Aug 5, 2022
c1d6c76
add progress indicator support
softmarshmallow Aug 5, 2022
a8cde44
add slider support
softmarshmallow Aug 5, 2022
55b3111
extract textfield composer
softmarshmallow Aug 5, 2022
4b88e7f
add general padding support
softmarshmallow Aug 5, 2022
cfbddc9
flutter layout engine updated
softmarshmallow Aug 5, 2022
6d8ecfd
organize & docs
softmarshmallow Aug 5, 2022
95c053c
bump reflect core
softmarshmallow Aug 5, 2022
bacb15a
update cli asset config
softmarshmallow Aug 5, 2022
75c86e9
add explicit outpath to add, code cmd
softmarshmallow Aug 5, 2022
b217baf
v0.0.7
softmarshmallow Aug 5, 2022
121faf0
add dart formatter (post)
softmarshmallow Aug 5, 2022
e9e501f
v0.0.8
softmarshmallow Aug 5, 2022
5ad751c
yarn
softmarshmallow Aug 6, 2022
f6b678c
Merge branch 'staging' of https://github.com/gridaco/designto-code in…
softmarshmallow Aug 6, 2022
9e11308
update hudsurface
softmarshmallow Aug 6, 2022
a663ba3
qf
softmarshmallow Aug 6, 2022
12a8ee9
Merge pull request #158 from gridaco/support-context-menu
softmarshmallow Aug 6, 2022
ed8eacf
Merge branch 'staging' of https://github.com/gridaco/designto-code in…
softmarshmallow Aug 6, 2022
f112e34
add multi module add support for cli
softmarshmallow Aug 6, 2022
e2cf58b
update fpat input type to password
softmarshmallow Aug 6, 2022
f30b12b
small code improvements
softmarshmallow Aug 6, 2022
ab88d6c
bump `@design-sdk` with figma rest api explicit fontweight specificat…
softmarshmallow Aug 6, 2022
f5448ef
add bin check
softmarshmallow Aug 6, 2022
5a51235
add .gitignore init, .grida init
softmarshmallow Aug 6, 2022
96521db
update cli docs
softmarshmallow Aug 6, 2022
3d25cd6
yarn
softmarshmallow Aug 6, 2022
251e1e4
v0.0.9
softmarshmallow Aug 6, 2022
f48db36
move locater
softmarshmallow Aug 7, 2022
7c9e868
made module uri optional
softmarshmallow Aug 7, 2022
b31f618
bump coli, fix jsx escape
softmarshmallow Aug 7, 2022
869abf8
v0.0.10
softmarshmallow Aug 7, 2022
bdcc00b
.
softmarshmallow Aug 8, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ dist
.DS_Store


# turbo
.turbo

# ------- docs related -------
## Learn more at scripts/docs-copy/flags-api-docs.js
# flags api docs
Expand Down
17 changes: 1 addition & 16 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
[submodule "packages/reflect-detection"]
path = packages/reflect-detection
url = https://github.com/bridgedxyz/reflect-detection
[submodule "ui/editor-ui"]
path = ui/editor-ui
url = https://github.com/bridgedxyz/reflect-editor-ui
[submodule "editor-packages/base-sdk"]
path = editor-packages/base-sdk
url = https://github.com/gridaco/base-sdk
[submodule "externals/coli"]
path = externals/coli
url = https://github.com/gridaco/coli
[submodule "externals/design-sdk"]
path = externals/design-sdk
url = https://github.com/gridaco/design-sdk
[submodule "externals/reflect-core"]
path = externals/reflect-core
url = https://github.com/reflect-ui/reflect-core-ts
url = https://github.com/reflect-ui/reflect-editor-ui
187 changes: 155 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,58 @@
# Design to code
<center>

https://user-images.githubusercontent.com/16307013/145498355-58fb2cf3-a6a0-44a3-8515-3859b048c3a4.mov
</center>

<p align="center">
<a href="https://code.grida.co">
<image src="./branding/gh-artwork.png" />
<h3 align="center">Design to Code</h3>
</a>
</p>

Design to code engine. A design ✌️ code standard.
<p align="center">
Design to code engine. A design ✌️ code standard.
</p>

> Grida's Design to code core library. Convert your figma, sketch and adobe xd design to flutter, react, vue and more.

## Demo
```
npx designto react https://www.figma.com/files/XXX
```

for the demo, please visit [assistant](https://github.com/gridaco/assistant)
**Or.. [👩‍💻 Try designto-code from browser IDE](https://code.grida.co)**

For the fully integrated working demo, visit [grida.co](https://grida.co)
## Usage

### Run it your own
```bash
npm i -g @designto/cli

# react + figma example
designto react https://www.figma.com/files/XXX -o mypage.tsx
```
git clone https://github.com/gridaco/designto-code.git

cd designto-code
yarn
yarn editor
# visit http://localhost:6626
```
Integrated usage

update pulling - `git submodule update --init --recursive`
- Assistant (Figma plugin) - visit [assistant](https://github.com/gridaco/assistant)
- [code.grida.co](https://code.grida.co) (Web IDE for frontend development)
- [grida CLI](https://github.com/gridaco/cli)
- [@designto/cli](./cli)

## Platforms / Frameworks

| **Frameworks** | |
| ------------------ | :---: |
| ReactJS | ✅ |
| Flutter | ✅ |
| React Native | ✅ |
| Vanilla (html/css) | ✅ |
| Vue | (wip) |
| **Frameworks** | | channel | bundler | reflect-ui | material-ui | tailwind | packager |
| ------------------ | :---: | -------- | --------------- | ---------- | ------------ | -------- | ---------------------- |
| ReactJS | ✅ | `stable` | `esbuild` | (wip) | (wip) | (wip) | `npm`, `local`, `git` |
| Flutter | ✅ | `beta` | `dart-services` | (wip) | Yes (native) | No | `pub`, `local`, `git` |
| React Native | ✅ | `beta` | `expo` | (wip) | No | No | `expo`, `local`, `git` |
| SolidJS | ✅ | `beta` | `esbuild` | (wip) | No | (wip) | `npm`, `local`, `git` |
| Vanilla (html/css) | ✅ | `stable` | `vanilla` | (wip) | No | (wip) | `local`, `cdn` |
| Svelte | ✅ | `beta` | `svelte` | (wip) | No | (wip) | `npm`, `local`, `git` |
| Vue | (wip) | `dev` | `vue` | (wip) | No | (wip) | `npm`, `local`, `git` |
| Android (Jetpack) | (wip) | `dev` | Not supported | (wip) | Yes (native) | No | `local`, `git` |
| iOS (SwiftUI) | (wip) | `dev` | Not supported | (wip) | No | No | `local`, `git` |

<details>
<summary>React</summary>

| **ReactJS** | |
| ------------------- | :---: |
Expand All @@ -45,6 +64,11 @@ update pulling - `git submodule update --init --recursive`
| breakpoints | (wip) |
| components | (wip) |

</details>

<details>
<summary>ReactNative</summary>

| **ReactNative** | |
| ------------------------------ | :---: |
| `StyleSheet` | ✅ |
Expand All @@ -54,57 +78,150 @@ update pulling - `git submodule update --init --recursive`
| `react-native-svg` | (wip) |
| `expo` | (wip) |

</details>

<details>
<summary>Vanilla (html/css)</summary>

| **Vanilla** | |
| ----------- | :-----------: |
| reflect-ui | right-aligned |
| css | ✅ |
| scss | are neat |

</details>

<details>
<summary>Flutter</summary>

| **Flutter** | |
| ----------- | :---: |
| material | ✅ |
| cupertino | (wip) |
| reflect-ui | (wip) |

</details>

<details>
<summary>Svelte</summary>

| **Svelte** | |
| ------------------- | :---: |
| `styled-components` | ✅ |
| `@mui/material` | (wip) |

</details>

<details>
<summary>Vue3</summary>

| **Vue** | |
| ------------------- | :---: |
| `styled-components` | ✅ |
| `@mui/material` | (wip) |

</details>

<details>
<summary>SolidJS</summary>

| **Solid** | |
| ------------------------- | :-: |
| `solid-styled-components` | ✅ |
| `inline-css` | ✅ |

</details>

<details>
<summary>iOS Native</summary>

| **iOS** | |
| ------- | :---: |
| SwiftUI | (wip) |

</details>

<details>
<summary>Android Native</summary>

| **Android** | |
| --------------- | :---: |
| Jetpack Compose | (wip) |

## What does it mean?
</details>

## Usage

Linting
Custom Tokenizer
Custom Assets Repository
Custom Cache
Custom Cursor
Plugins

### By "design". What does it mean?
### Local development

```
git clone https://github.com/gridaco/designto-code.git
cd designto-code

yarn
yarn editor
# visit http://localhost:6626
```

The term `design` here stands for the UI/UX design source file made by human designers. There are various tools currently available such like Figma, Sketch, XD, and Upcomming [Grida Studio](https://github.com/gridaco/grida)
<details>
<summary>Trouble shooting</summary>

Taking more deeper look, the design data tree is represented with Reflect -- A design standard that grida developed / adopted. (Yes, this is that Reflect that also provided as a UI Library)
- update pulling - `git submodule update --init --recursive`

TL;DR -- You can convert your design to code from Figma, Sketch, and XD.
</details>

### By "code". What does it mean?
## Features

The term `code` here stands for some language or syntax tree that is adoptable for standard development environment. We supprort Flutter, React, HTML/CSS, Vuew, Svelte.
- preprocessing
- lint
- layout lint
- naming lint
- design
- layouts
- animations
- constraints
- breakpoints
- code
- documentation
- tsdoc
- single-file module
- multi-file module

Taking more deeper look, Reflect Core DSL represents the layout, component, data, styling as a single tree.
<details>
<summary>Layouts</summary>

### How does it work?
</details>

Read [how-it-all-works.md](./how-it-all-works.md)
<details>
<summary>Animations (motions)</summary>

### Visualization
</details>

<details>
<summary>Constraints</summary>

</details>

<details>
<summary>Breakpoints</summary>

</details>

### Editor (web IDE)

https://user-images.githubusercontent.com/16307013/145498355-58fb2cf3-a6a0-44a3-8515-3859b048c3a4.mov

Visit project ([`./editor`](./editor/))

<details>
<summary>Visualization</summary>

![](./branding/shot-1.png)

Expand All @@ -119,3 +236,9 @@ Read [how-it-all-works.md](./how-it-all-works.md)
![](./branding/shot-5.png)

![Grida's design to code. design node visualization snapshot](./branding/example-visualization-design-nodes.png)

</details>

## Architecture

Read [architecture.md](./architecture.md)
File renamed without changes.
Binary file added branding/gh-artwork.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 37 additions & 2 deletions cli/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
# Using Design-to-code via cli
# A `grida code` CLI member of [`grida cli`](https://github.com/gridaco/cli)

Under development.
## Installation

```
npm install -g @designto/cli
```

## Commands

| Commands | |
| -------------------- | --------------------------------------- | ---------------------------------------------------- |
| `grida code react` | convert input uri (file or url) to code | `designto react https://www.figma.com/files/XXX` |
| `grida code rn` | convert input uri (file or url) to code | `designto rn https://www.figma.com/files/XXX` |
| `grida code vue` | convert input uri (file or url) to code | `grida code vue https://www.figma.com/files/XXX` |
| `grida code svelte` | convert input uri (file or url) to code | `grida code svelte https://www.figma.com/files/XXX` |
| `grida code solid` | convert input uri (file or url) to code | `grida code flutter https://www.figma.com/files/XXX` |
| `grida code flutter` | help | `designto flutter https://www.figma.com/files/XXX` |
| `grida code auth` | signin to design services | `auto` \| `figma` \| `sketch` \| `xd` |
| `grida code init` | configure the preferences |

## Args

| Flags | | | |
| ------------------------- | ------------------------------------------------ | ------------------------------------------------------------------------ | --- |
| `--framework` | specify the target framework | `flutter` \| `react` \| `react-native` \| `svelte` \| `vue` \| `vanilla` | \* |
| `--config` | specify the framework config json file | framework.config.json | |
| `--design-origin` | specify the input design origin | `auto` \| `figma` \| `sketch` \| `xd` | |
| `--personal-access-token` | access token | | |
| `--user` | account name if signed-in with multiple accounts |

## Output

`--output, -o <path>`

- `<path>`: the output file path
- `<dir>`: the output files dir
- dry : do not write files. log the output
5 changes: 5 additions & 0 deletions cli/_utils/bin-exists/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import which from "which";

export function binexists(name: string): boolean {
return which.sync(name, { nothrow: true }) !== null;
}
Loading