0.3.1 • Published 4 years ago

@lona/workspace-to-sketch-library v0.3.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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)
0.3.1

4 years ago

0.3.0

4 years ago

0.2.0

5 years ago

0.1.12

5 years ago

0.1.11

5 years ago

0.1.10

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago