figma-js

v1.6.0
A simple wrapper for the Figma API

info

npm-scripts-info

build

run-s clean && run-p build:*

build:main

tsc -p tsconfig.json

build:module

tsc -p tsconfig.module.json

fix

run-s fix:*

fix:prettier

prettier "src/**/*.ts" --write

fix:tslint

tslint --fix --project .

test

run-s build test:*

test:lint

tslint --project . && prettier "src/**/*.ts" --list-different

test:unit

nyc --silent ava

test:nsp

nsp check

watch

run-s clean build:main && run-p "build:main -- -w" "test:unit -- --watch"

cov

run-s build test:unit cov:html && opn coverage/index.html

cov:html

nyc report --reporter=html

cov:send

nyc report --reporter=lcov > coverage.lcov && codecov

cov:check

nyc report && nyc check-coverage --lines 100 --functions 100 --branches 100

doc

run-s doc:html && opn build/docs/index.html

doc:html

typedoc src/ --target ES6 --mode file --out build/docs

doc:json

typedoc src/ --target ES6 --mode file --json build/docs/typedoc.json

doc:publish

gh-pages -m "[ci skip] Updates" -d build/docs

zzzversion

standard-version

zzzreset

git clean -dfx && git reset --hard && npm i

clean

trash build test

all

run-s doc:html

zzzprepare-release

run-s all version doc:publish

zzzpreinstall

node -e "if(process.env.npm_execpath.indexOf('yarn') === -1) throw new Error('figma-js must be installed with Yarn: https://yarnpkg.com/')"

Metadata

  • MIT
  • >=8.9
  • Unknown
  • released 2/8/2019

Downloads

Maintainers