https://github.com/ngokevin/angle
:clock430: A-Frame command-line tool for installing components and scaffolding templates.
https://github.com/ngokevin/angle
Last synced: 3 months ago
JSON representation
:clock430: A-Frame command-line tool for installing components and scaffolding templates.
- Host: GitHub
- URL: https://github.com/ngokevin/angle
- Owner: ngokevin
- License: mit
- Created: 2016-10-12T23:33:05.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-08-11T21:24:02.000Z (about 5 years ago)
- Last Synced: 2025-07-21T12:50:26.756Z (3 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/angle
- Size: 337 KB
- Stars: 82
- Watchers: 5
- Forks: 20
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# angle
[angle](https://aframe.io) 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.

### Installation
```
npm install -g angle
angle
```
### Commands
Run `angle --help` to get a list of all commands and options.
#### `angle initlocalcomponent `
Quickly create a component JavaScript file from a simple template
locally in the working directory. Meant to be used to
create a component for an application. Not meant
for publishing or sharing.
```
angle initlocalcomponent enemy-ship
```
#### `angle initcomponent`
[component]: https://aframe.io/docs/master/introduction/writing-a-component.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][component].
```
angle initcomponent
```
To develop the component:
```
npm install
npm start
```
To publish the component to the ecosystem:
```
npm publish
npm run ghpages
```
Then submit to the [A-Frame Registry](https://github.com/aframevr/aframe-registry).
#### `angle initscene`
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)
```