Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alampros/grunt-extract-sketch-svgs
Extract artboards as svgs for conversion to webfonts
https://github.com/alampros/grunt-extract-sketch-svgs
grunt-plugins sketch-app
Last synced: about 1 month ago
JSON representation
Extract artboards as svgs for conversion to webfonts
- Host: GitHub
- URL: https://github.com/alampros/grunt-extract-sketch-svgs
- Owner: alampros
- License: mit
- Created: 2017-04-04T19:24:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-04-04T19:59:35.000Z (over 7 years ago)
- Last Synced: 2024-11-16T06:23:48.552Z (about 2 months ago)
- Topics: grunt-plugins, sketch-app
- Language: JavaScript
- Size: 94.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# grunt-extract-sketch-svgs
Extract artboards from sketch files to SVGsYou need to provide the `sketchtool` binary. See [sketchapp.com/tool](https://www.sketchapp.com/tool/) for where to find it.
## extract-sketch task
_Run this task with the `grunt extract-sketch` command._### Options
#### binpath
Type: `String`
Default: `'/Applications/Sketch.app/Contents/Resources/sketchtool/bin/sketchtool'`The path to to the `sketchtool` binary.
#### pageNameExportRegex
Type: `String`
Default: `'- EXPORT - '`Will only export artboards from pages that match this prefix.
### Usage Examples
```js
'extract-sketch': {
options: {
binpath: '/opt/bin/sketchtool',
pageNameExportRegex: 'icon-',
},
main: {
files: [{
src: 'src/icons.sketch',
dest: 'build',
}],
},
},
```