Skip to content

This is the github repository for the spiky-cli. A command line interface designed to transpile the spiky.js code into executable python code that is runnable on the SPIKE Prime Robots.

License

Notifications You must be signed in to change notification settings

leontm-dev/spiky-cli

Repository files navigation

spiky-cli

Transpile TypeScript spiky.js blocks to working python code that can be executed on a Spike Prime Robot.

MIT License NPM Downloads

Installation

Install spiky-cli with npm or yarn

  npm install spiky-cli --save
  yarn add spiky-cli

or instantly run it using npx

  npx spiky-cli init

Commands

init

  spiky-cli init

Initialize a new config.spiky.json file thats configures the build command.

Option Description
-y Optional. Skips the prompts and uses the default values

build

  spiky-cli build

Transpile your TypeScript spiky.js blocks into python code. Uses the config file for export options.

Parameter Description
--overwrite Optional. Enables instant overwriting
--keeplines Optional. Keeps the lines of your spiky.js code.

version

  spiky-cli version

Logs the current version

update

  spiky-cli update

Updates the spiky-cli and spiky.js to the newest available version.

help

  spiky-cli help

Logs out a help form.

Types

SpikyConfig

Layout of the config.spiky.json file.

Property Type Description
inputFileName string Required. The name of the input file in which you use the spiky.js blocks
export object Required. An object that sets different export settings.

export

type="python"

Property Type Description
type python or project Required.
formatOutput boolean Required. Enable format settings
formatterSettings boolean Optional. Only available if formatOutput=true. For options: check here

type="project"

Property Type Description
type python or project Required.
folderName string Required. The path to the folder that holds your existing project. If this path is not reachable, a new folder with projectbody.json will be created.

FAQ

Is this package made, maintained or managed by Lego or any associated company?

No, this project is not handled by Lego in any way.

Developers

Contributing

Contributions are always welcome!

See contributing.md for ways to get started.

Please adhere to this project's code of conduct.

About

This is the github repository for the spiky-cli. A command line interface designed to transpile the spiky.js code into executable python code that is runnable on the SPIKE Prime Robots.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published