@lona/workspace-to-sketch-library
TypeScript icon, indicating that this package has built-in type declarations

0.3.1 • Public • Published

workspace-to-sketch-library

Generate a Sketch library from a Lona Workspace.

Installation

npm install @lona/workspace-to-sketch-library lonac

Usage

import generateLibrary from '@lona/workspace-to-sketch-library'

generateLibrary(workspacePath, outputPath, options)

All options are optional.

  • options.compiler: path to the Lona compiler to use (will default to the installed lonac compiler's path)
  • options.devicePresetList: array of device presets ({ name, width, height })
  • options.componentPathFilter: function that returns a boolean depending on whether a component should be included in the library or not. It receives the path to the component as argument
  • options.logFunction: a function to log the progress (typically, console.log)

Readme

Keywords

none

Package Sidebar

Install

npm i @lona/workspace-to-sketch-library

Weekly Downloads

7

Version

0.3.1

License

MIT

Unpacked Size

29.3 kB

Total Files

20

Last publish

Collaborators

  • dabbott
  • mathieudutour