{"id":17025911,"url":"https://github.com/paulmg/ThreeJS-Webpack-ES6-Boilerplate","last_synced_at":"2026-04-13T00:30:19.196Z","repository":{"id":37677912,"uuid":"68042508","full_name":"paulmg/ThreeJS-Webpack-ES6-Boilerplate","owner":"paulmg","description":"A basic boilerplate for a Three.js project compiled with Webpack and transpiled via Babel to enable using ES6 syntax.","archived":false,"fork":false,"pushed_at":"2025-02-05T01:27:58.000Z","size":7843,"stargazers_count":367,"open_issues_count":9,"forks_count":107,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-02-15T21:33:02.257Z","etag":null,"topics":["babel","boilerplate","es6","eslint","javascript","node-sass","nodejs","sass","three-js","tweenjs","webgl","webpack","webpack-dev-server"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/paulmg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-12T19:53:21.000Z","updated_at":"2025-02-05T01:27:59.000Z","dependencies_parsed_at":"2024-10-14T07:31:27.661Z","dependency_job_id":"0b8eceea-4e4b-46fc-8d4b-a31c9a6e8a5e","html_url":"https://github.com/paulmg/ThreeJS-Webpack-ES6-Boilerplate","commit_stats":{"total_commits":113,"total_committers":9,"mean_commits":"12.555555555555555","dds":"0.49557522123893805","last_synced_commit":"eee2512b7fc27be9cbd2b9395284c2928a463faf"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulmg%2FThreeJS-Webpack-ES6-Boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulmg%2FThreeJS-Webpack-ES6-Boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulmg%2FThreeJS-Webpack-ES6-Boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paulmg%2FThreeJS-Webpack-ES6-Boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paulmg","download_url":"https://codeload.github.com/paulmg/ThreeJS-Webpack-ES6-Boilerplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239997144,"owners_count":19731359,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["babel","boilerplate","es6","eslint","javascript","node-sass","nodejs","sass","three-js","tweenjs","webgl","webpack","webpack-dev-server"],"created_at":"2024-10-14T07:30:12.434Z","updated_at":"2026-04-13T00:30:19.137Z","avatar_url":"https://github.com/paulmg.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Three.js Webpack ES6 Boilerplate\nhttps://github.com/paulmg/ThreeJS-Webpack-ES6-Boilerplate/\n\nA basic boilerplate for a Three.js project including the use of Webpack and ES6 syntax via Babel.\n\n## Project Structure\n```\nbuild - Directory for built and compressed files from the npm build script\nsrc - Directory for all dev files\n├── css - Contains all SCSS files, that are compiled to `src/public/css`\n├── js - All the Three.js app files, with `app.js` as entry point. Compiled to `src/public/js` with webpack\n│   ├── app\n│   │   ├── components - Three.js components that get initialized in `main.js`\n│   │   ├── helpers - Classes that provide ideas on how to set up and work with defaults\n│   │   ├── managers - Manage complex tasks such as GUI or input\n│   │   └── model - Classes that set up the model object\n│   ├── data - Any data to be imported into app\n│   └── utils - Various helpers and vendor classes\n└── public - Used by webpack-dev-server to serve content. Webpack builds local dev files here. \n    └── assets - Is copied over to build folder with build command. Place external asset files here.\n```\n\n## Getting started\nInstall dependencies:\n\n```\nnpm install\n```\n\nThen run dev script:\n\n```\nnpm run dev\n```\n\nSpins up a webpack dev server at localhost:8080 and keeps track of all js and sass changes to files.\n\n## Build\n```\nnpm run build\n```\n\nCleans 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.\n\n## Other NPM Scripts\nYou can run any of these individually if you'd like with the `npm run` command:\n* `prebuild` - Cleans up build folder and lints `src/js`\n* `clean` - Cleans build folder\n* `lint` - Runs lint on the `src/js` folder and uses the `.eslintrc` file in root for linting rules\n* `webpack-server` - Start up a  webpack-dev-server with hot-module-replacement\n* `webpack-watch` - Run webpack in dev environment with watch\n* `dev:js` - Run webpack in dev environment without watch\n* `build:dir` - Copy files and folders from `src/public` to `build`\n* `build:js` - Run webpack in production environment\n\n## Input Controls\n* Press H to hide dat.GUI\n* Arrow controls will pan\n* Mouse left click will rotate/right click will pan\n* Scroll wheel zooms in and out\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulmg%2FThreeJS-Webpack-ES6-Boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaulmg%2FThreeJS-Webpack-ES6-Boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulmg%2FThreeJS-Webpack-ES6-Boilerplate/lists"}