skylane
v0.2.0
Published
CLI for developing and building Skylane widgets
Maintainers
Readme
skylane
CLI for developing and building Skylane widgets.
Install
npm install --save-dev skylane
npm install @skylane/apiUsage
Inside a widget package:
npx skylane devThis starts the hot-reload workflow:
- builds the widget into
.skylane/build/index.cjs - registers the local widget with Skylane for development
- rebuilds when
package.json,src/, orassets/change - tells Skylane to reload the widget after each successful build
Other commands:
npx skylane build
npx skylane lintWidget Shape
A widget package needs:
package.jsonsrc/index.tsx- a
skylanemanifest inpackage.json
Example:
{
"name": "@acme/skylane-widget-hello",
"private": true,
"scripts": {
"dev": "skylane dev",
"build": "skylane build",
"lint": "skylane lint"
},
"devDependencies": {
"skylane": "^0.1.0"
},
"dependencies": {
"@skylane/api": "^0.1.0"
},
"skylane": {
"id": "com.acme.hello",
"title": "Hello",
"icon": "sparkles",
"minSpan": 3,
"maxSpan": 6,
"entry": "src/index.tsx"
}
}Skylane itself currently runs on macOS. The SDK source and examples live in the main repository:
