Skip to content

Starter template for three.js with webpack & babel, and GitHub Actions to incorporate CI/CD.

Notifications You must be signed in to change notification settings

mitulagr2/threejs-webpack-starter-ci

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

THREE.js Starter CI

This is a fork from threejs-webpack-starter containing a basic setup of three.js and webpack, and added CI/CD.

CI/CD Features

  • Deployment pipeline which triggers on pushes and pull requests to main branch.
  • Workflow checks whether build succeeds in production environment.
  • Publishes to Netlify.
  • Bumps version and tags main branch.

Getting Started

Follow the steps below to run this project locally. Remember to add NETLIFY_AUTH_TOKEN and NETLIFY_SITE_ID under repository Secrets.

  1. Fork this repository and clone the new one on your machine.
# Clone repository
$ git clone https://github.com/$your_username/threejs-webpack-starter-ci.git

$ cd threejs-webpack-starter-ci
  1. Install dependencies via NPM or Yarn
# Install dependencies via npm
$ npm install

# Install dependencies via yarn
$ yarn install
  1. Run the server and open a browser to visit it.
# Run server
$ npm run dev

# Run server
$ yarn dev

Thank you very much!

Open to any suggestions on how to make this better! Feel free to fork the repo - Much appreciated!

Packages

No packages published

Languages

  • JavaScript 87.3%
  • HTML 8.5%
  • CSS 4.2%