Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Latest commit

 

History

History

sfb-editor

Skill Flow Builder Editor

Warning DEPRECATED The Alexa Games team will no longer support or maintain this official distribution of Skill Flow Builder. Thank you to all the folks who have used SFB to make great Alexa skills over the years!

The Skill Flow Builder Editor provides a graphical interface (GUI) where you can create, edit, and preview content for your skill. The SFB Editor is a cross-platform desktop application built using the Electron framework using React and Redux. This package contains the source code for the SFB editor.

Visit Use the Skill Flow Builder Editor for more information.

Prerequisites

To run the Skill Flow Builder Editor, you must meet the following minimum system requirements:

  • Operating system: macOS v10.14 or above (Mojave or Catalina), Windows 10 (x64)
  • At least 1 GB of available hard disk space
  • Dual-core CPU at 2 GHz
  • 2 GB RAM
  • 1024px x 768px display resolution
  • Node.js (with npm) version 10.15 or later.

Getting Started

First, clone the parent repository.

git clone https://github.com/alexa-games/skill-flow-builder.git && cd skill-flow-builder/

The SFB Editor requires that the core modules are built, build all the packages in the packages/ directory by running yarn build-modules.

Navigate into the sfb-editor/ directory with cd packages/sfb-editor/, and run yarn install && yarn start. This should conclude launching the editor.

Package Structure

The SFB Editor package structure looks like this, with most of the editor source code existing inside the app/ directory.

packages/sfb-editor/
├── __mocks__/ # Mocks for testing purposes
├── app/ # SFB Editor source code
├── bin/ # Entry point for the SFB editor
├── configs/ # Bundling configs
├── internals/ # Scripts to interact with the Host
├── publish-scripts/ # Scripts to publish for Mac/Windows
├── resources/ # SFB art assets
├── test/ # Tests
├── web/ # Assets for the editor, SFB landing page
└── ...

The SFB Editor is an Electron application. The Electron framework is based on Node.js and Chromium, and it enables you to write rich cross-platform desktop applications using JavaScript, HTML and CSS. Read more about Electron applications here.

Contributing

The SFB Editor is mainly built using React and the Electron framework. After editing a view or component, visualize your changes by simply rebuilding with yarn build and relaunching the editor with yarn start. For example, a change to the application sidebar would require changes in app/AppRail/index.js or app/AppRail/styles.css, with the changes being shown next rebuild.