Skip to content

pucheta-adrian/parcel-typescript-threejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

parcel-typescript-threejs

Example App using Three.js and Typescript bundled with parcel 🚀🔥.

Highlights

  • ⚡️ Super fast start
  • 🔥 Hot module replacement.
  • 📝 Typescript.

Quick start

Node version >= 8.0 (recommended 10.6.0) and NPM >= 5 (recommended 6.1.0)

# clone the repo.
# --depth 1 removes all but one .git commit history (Optional).
git clone --depth 1 https://github.com/adrianrey05/parcel-typescript-threejs.git

# go to the repo
cd parcel-typescript-threejs

# install the dependencies via npm
npm install

# start the server in dev mode with HMR
npm run start

go to http://localhost:1234 in your browser. Done.

npm scripts

  • npm run start - runs the compiler and a server at the same time in dev mode with HMR (Hot Module Replacement) 🔥.
  • npm run build - runs the compiler once and generates a production build.