Skip to content

mauriciomassaia/proto-threejs-shader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Proto - Theejs - Shader

./src/proto-02/ss.jpg ./src/proto-01/ss.jpg ./src/proto-05/ss.jpg
./src/proto-06/ss.jpg ./src/proto-07/ss.jpg ./src/proto-08/ss.jpg
./src/proto-09/ss.jpg ./src/proto-10/ss.jpg

View prototypes

Scripts

npm i

Install dependencies:

npm start

Access via http://localhost:3000

npm run build

Build all prototypes into dist folder

To build specific prototypes into a dist folder use:

npm run build [proto number]

Example to build protos 01 13, 31 and 50 just use spaces:

npm run build 13 31 50

npm run index

Generate the index.html with a list of links for each prototype.

Deploy gh-pages

To deploy gh-pages I followed this awesome article. Thanks Christophe Hamerling

For fresh clones or if you delete the dist folder by mistake please run :

git worktree add ./dist gh-pages

Updating gh-pages branch:

cd dist/
git add .
git commit -m "Update protos"
git push origin gh-pages

JavaScript Style Guide