angle is a general purpose command-line tool for A-Frame. angle can install components from the Registry into an HTML file, initialize component templates for publishing, and bootstrap scene boilerplate.
npm install -g angle
angle <command>
Run angle --help
to get a list of all commands and options.
Install a component from the registry to an HTML file. This will detect the
A-Frame version from your HTML file and install the appropriate version of the
component as a <script>
tag.
angle install aframe-mountain-component
angle install aframe-physics-system myaframescene-1.html
Create a template in the working directory for an A-Frame component for publishing to the ecosystem. This command will ask several questions about your component to get things set up. See how to write a component.
angle initcomponent
To develop the component:
npm install
npm run dev
To publish the component to the ecosystem:
npm publish
npm run ghpages
Then submit to the A-Frame Registry.
Bootstrap an A-Frame scene in the working directory. This command will currently ask for the name of the scene and whether or not you want tracked controllers.
angle initscene
? What is your scene's title? (e.g., Forest Scene)
? Do you want tracked controls with hand models? (y/N)