Modifed example from https://github.com/supermedium/aframe-super-hot-loader. Thanks Kevin Ngo!
- Bundle Typescript and Javascript A-Frame components.
- Modify files and see the effect without refreshing thanks to Hot Module Replacment.
- ESLint and Prettier.
- Deploy to Github pages.
Also stole: https://github.com/olioapps/aframe-typescript-toolkit
yarn install
yarn start
Point browser to localhost:3000
Often you want to develop components independently from the main app. One way:
Make a directory under the test directory and put a app.ts and index.html in it. Say the directory is test/color-comp.
To run the Webpack dev server there:
yarn start --testDir color-comp
The --testDir argument sets the Webpack entry point and contentBase (aka static assests root) to that directory.
Setup the remote repo, then yarn deploy
git remote add origin [your repo URL here]
yarn deploy
Kind of a heavy toolbelt, don't fall in deep water.
Helpful links (IMHO):