https://github.com/juniorxsound/three.webpack
⚒My boilerplate three.js + glslify + webpack starter
https://github.com/juniorxsound/three.webpack
boilerplate glsl shaders template threejs webpack yarn
Last synced: about 1 year ago
JSON representation
⚒My boilerplate three.js + glslify + webpack starter
- Host: GitHub
- URL: https://github.com/juniorxsound/three.webpack
- Owner: juniorxsound
- Created: 2018-12-19T01:51:00.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-19T03:30:00.000Z (over 7 years ago)
- Last Synced: 2025-04-04T19:54:27.280Z (about 1 year ago)
- Topics: boilerplate, glsl, shaders, template, threejs, webpack, yarn
- Language: JavaScript
- Homepage: https://juniorxsound.github.io/THREE.Webpack/
- Size: 783 KB
- Stars: 6
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
THREE.Webpack
⚒ My boilerplate three.js + glslify + webpack starter for quick prototyping. Check it out live here
Quick-start | Develop | Deploy
### Quick-start
To quickly get started, clone the repository
```sh
git clone https://github.com/juniorxsound/THREE.Webpack.git
```
Make sure you have yarn installed ([or install it](https://yarnpkg.com/lang/en/docs/install/#mac-stable)) and run
```sh
cd THREE.Webpack && yarn
```
Now you can start developing by running
```sh
yarn run dev
```
### Develop
You can use the following commands from the root of the project:
`yarn run dev` - Start Webpack development server (supports HMR)
`yarn run style` - Run prettier and format the code (config is in `.prettierrc`)
`yarn run build` - Build static markdown and JS bundle into `dist` folder
`yarn run deploy` - Use `gh-pages` to commit to the static folder to a Github pages branch (needs a `GITHUB_TOKEN` enviorment variable)
### Deploy
This repository uses `Travis CI` for deploying a static page to Github pages. All you need to do is connect the repository to your Travis account, create a Github access token and set the token as an environment variable in Travis under `GITHUB_TOKEN`.