accelerator-tool

The Accelerator devtool. Generally invoked with accelerator-tool, npx accelerator-tool, or xlr8r.

Usage no npm install needed!

<script type="module">
  import acceleratorTool from 'https://cdn.skypack.dev/accelerator-tool';
</script>

README

Accelerator speedometer logo

accelerator-tool

The devtool for the Accelerator story framework (git repository, npm package), allowing quick creation of new projects, and new assets within them.

Installation

With a command-line shell of your choice, either install the program globally:

npm install -g accelerator-tool

or use the npx tool to temporarily download it and execute your command:

npx accelerator-tool whatever

Usage

There are several basic functions you can use with this tool.

Creating new stories

Use the create subcommand like so:

accelerator-tool create my-new-story [optional directory to create]

Creating story assets

Each of the following defaults to generating TypeScript code, but can be instructed to generate JavaScript code by appending -js to the name of the asset, e.g. passage for TypeScript and passage-js for JavaScript.

If you do not provide the story directory as the last positional argument, you must be in the root directory of an Accelerator story, containing a passages subdirectory.

Creating new passages

accelerator-tool new passage my-new-passage

Creating new headers

accelerator-tool new header my-new-header

Creating new footers

accelerator-tool new footer my-new-footer

Creating new plugins

accelerator-tool new plugin my-new-plugin