grunt-extract-sketch-svgs

1.0.0 • Public • Published

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',
    }],
  },
},

/grunt-extract-sketch-svgs/

    Package Sidebar

    Install

    npm i grunt-extract-sketch-svgs

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • alampros