The devtool for the Accelerator story framework (git repository, npm package), allowing quick creation of new projects, and new assets within them.
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
There are several basic functions you can use with this tool.
Use the create
subcommand like so:
accelerator-tool create my-new-story [optional directory to create]
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.
accelerator-tool new passage my-new-passage
accelerator-tool new header my-new-header
accelerator-tool new footer my-new-footer
accelerator-tool new plugin my-new-plugin