Skip to content

LeithBA/three_template

 
 

Repository files navigation

THREE.js TEMPLATE

Requirements & Setup

You need to have node.js installed.

Start with npm run init

This command will init a git repository on your machine, install dependencies and remove useless files and directories for your project. After that, this command won't be available anymore.

Development

Run the local webpack-dev-server with hotreload and autocompile on:

$ npm run dev

Debug

Go to your-url/#debug

Alias

  • @: src/
  • @style: src/style/
  • @fonts: src/fonts/
  • @models: src/models/
  • @sounds: src/sounds/
  • @shaders: src/shaders/
  • @textures: src/textures/
  • @js: src/js/
  • @tools: src/js/Tools/
  • @world: src/js/World/

Features

  • eslint
  • prettier
  • babel
  • stylus
  • dat.GUI
  • automatic models / textures / sounds / fonts.json import

Deployment

Build the current application (default output in dist/).

$ npm run build

Template link

https://github.com/Lissandre/three_template

About

A Three.js template I build to start quickly and easily new projects. This is based on my webpack template.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 94.8%
  • Stylus 2.6%
  • HTML 1.8%
  • Shell 0.8%