Skip to content

Commit 6259596

Browse files
bump canvas
1 parent bea7ad1 commit 6259596

File tree

3 files changed

+1433
-57
lines changed

3 files changed

+1433
-57
lines changed

README.md

+26-4
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ Integrated usage
3838
- [@designto/cli](./cli)
3939

4040
## Supported Design Tools
41-
We support importing designs from Figma with our [figma-sdk](https://github.com/gridaco/figma-sdk). You can also design components with [scenes](https://github.com/gridaco/scenes) DSL, or use our built-in drag & drop editor.
4241

42+
We support importing designs from Figma with our [figma-sdk](https://github.com/gridaco/figma-sdk). You can also design components with [scenes](https://github.com/gridaco/scenes) DSL, or use our built-in drag & drop editor.
4343

4444
## Platforms / Frameworks
4545

@@ -163,17 +163,39 @@ Custom Cache
163163
Custom Cursor
164164
Plugins
165165

166-
### Local development
166+
### Running locally
167167

168168
```
169-
git clone https://github.com/gridaco/designto-code.git
170-
cd designto-code
169+
git clone https://github.com/gridaco/code.git
170+
cd code
171171
172172
yarn
173173
yarn editor
174174
# visit http://localhost:6626
175175
```
176176

177+
**Trouble shooting**
178+
179+
Our visual testing library uses node-canvas, which requires some additional dependencies. If you run into issues, please see the [node-canvas documentation](https://github.com/Automattic/node-canvas)
180+
181+
If you see error like this while installing dependencies,
182+
183+
```txt
184+
node-pre-gyp ERR! node -v v18.17.0
185+
node-pre-gyp ERR! node-pre-gyp -v v1.0.10
186+
node-pre-gyp ERR! not ok
187+
```
188+
189+
Try this
190+
191+
```bash
192+
brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman
193+
brew install python@2 # since python2 is no longer available on brw, you can also use this link. https://www.python.org/downloads/release/python-2718/
194+
```
195+
196+
- [Reference#2 / node-canvas/issues/1733](https://github.com/Automattic/node-canvas/issues/1733#issuecomment-761703018)
197+
- [Reference#1 / node-canvas/issues/1662](https://github.com/Automattic/node-canvas/issues/1662#issuecomment-1465269869)
198+
177199
<details>
178200
<summary>Trouble shooting</summary>
179201

testing/testing-diffview/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
"version": "0.0.0",
44
"dependencies": {
55
"canvas": "^2.11.2",
6-
"resemblejs": "^4.1.0"
6+
"resemblejs": "^5.0.0"
77
},
88
"devDependencies": {
9-
"@types/resemblejs": "^4.1.0"
9+
"@types/resemblejs": "^4.1.3"
1010
}
1111
}

0 commit comments

Comments
 (0)