benmcnulty / aframe-boilerplate

Boilerplate for A-Frame projects using Webpack

Home Page:https://benmcnulty.github.io/aframe-boilerplate/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

aframe-boilerplate

Webpack Boilerplate for A-Frame Projects


Clone this repository for a default A-Frame development environment.
This template includes preconfigured tooling to reduce friction when starting an A-Frame project.
Working understanding of Git, CLI, Node, HTML, JavaScript, and A-Frame are required.
NPM and Webpack are recommended.

Attention Junior Developers
Don't worry about understanding everything about each of the tools in use here, that knowledge will be gained through experience. You can use this boilerplate to add A-Frame entities here (index.inc) and define custom components here (components.js) without getting overwhelmed with the details of templating, preprocessing, or modules.

Feel free to reach out on Twitter if you have questions, are struggling, or just want to chat with someone who also thinks in code. I'm happy to know this template is in use and even happier to help you use it.

@benmcnulty
 
 

Getting Started

  1. Use this repository as a template for creating a new repository.
  2. Clone the new repository to a local development folder.
  3. Run NPM Scripts from a command line in your cloned folder to Install Node Packages and Start Development Environment:
npm install && npm start

General Use

Current Build Tooling

Additional Tooling

  • Transpiling with Babel
  • Linting with JSHint

Build Notes

  • Development environment clears docs folder and serves bundle from memory with live-reloading.
  • Production builds to docs folder for publishing to GitHub Pages and locally serves a transpiled, concatenated, minified bundle.
  • Default production build is public on GitHub Pages: A-Frame with Webpack Boilerplate

NPM Scripts

Install Node Packages

npm install

Start Developer Environment

npm start

JavaScript Linting

npm run lint

Production Build & Preview

npm run start:prod

About

Boilerplate for A-Frame projects using Webpack

https://benmcnulty.github.io/aframe-boilerplate/

License:MIT License


Languages

Language:JavaScript 45.0%Language:HTML 36.3%Language:CSS 18.7%