1.0.0 • Published 7 years ago

grunt-extract-sketch-svgs v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

grunt-extract-sketch-svgs

Extract artboards from sketch files to SVGs

You need to provide the sketchtool binary. See 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

'extract-sketch': {
  options: {
    binpath: '/opt/bin/sketchtool',
    pageNameExportRegex: 'icon-',
  },
  main: {
    files: [{
      src: 'src/icons.sketch',
      dest: 'build',
    }],
  },
},