{"repo":"paulmg/ThreeJS-Webpack-ES6-Boilerplate","free":true,"listed":false,"github":"https://github.com/paulmg/ThreeJS-Webpack-ES6-Boilerplate","clone":"git clone https://github.com/paulmg/ThreeJS-Webpack-ES6-Boilerplate.git","description":"A basic boilerplate for a Three.js project compiled with Webpack and transpiled via Babel to enable using ES6 syntax.","language":"JavaScript","stars":366,"topics":["three-js","webpack","es6","javascript","boilerplate","sass","eslint","tweenjs","node-sass","nodejs"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"Three.js Webpack ES6 Boilerplate https://github.com/paulmg/ThreeJS-Webpack-ES6-Boilerplate/ A basic boilerplate for a Three.js project including the use of Webpack and ES6 syntax via Babel. Project Structure Getting started Install dependencies: Then run dev script: Spins up a webpack dev server at localhost:8080 and keeps track of all js and sass changes to files. Build Cleans existing build folder while linting js folder and copies over the public assets folder from src. Then sets environment to production and compiles js and css into build. Other NPM Scripts You can run any of these individually if you'd like with the npm run command: prebuild - Cleans up build folder and lints src/js clean - Cleans build folder lint - Runs lint on the src/js folder and uses the .eslintrc file in root for linting rules webpack-server - Start up a webpack-dev-server with hot-module-replacement webpack-watch - Run webpack in dev environment with watch dev:js - Run webpack in dev environment without watch build:dir - Copy files and folders from src/public to build build:js - Run webpack in production environment Input Controls Press H to hide dat.GUI Arrow controls will pan Mouse left click will rotate/right click will pan Scroll wheel zooms in and out","default_branch":null,"files":null,"tree":[],"storefront":"/r/paulmg","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/paulmg/ThreeJS-Webpack-ES6-Boilerplate/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}