ycw / e2edce-sample-project

A demo project for ycw/e2edce

Home Page:https://ycw.github.io/e2edce-sample-project/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

A demo project for ycw/e2edce, showing how to eliminate deadcode for threejs appliaction.

πŸͺš GLSL sources are now minified using ycw/three-glsl-minifier)

πŸ§ͺ Testbed

πŸ”’ Stats:

Logs Vector2
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ (index) β”‚   size   β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  flat   β”‚ '5.93Kb' β”‚
β”‚   dce   β”‚ '1.63Kb' β”‚
β”‚   min   β”‚  '87b'   β”‚
β”‚ min+gz  β”‚  '96b'   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Rotating Cube
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ (index) β”‚    size    β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  flat   β”‚ '701.97Kb' β”‚
β”‚   dce   β”‚ '409.01Kb' β”‚
β”‚   min   β”‚ '212.36Kb' β”‚
β”‚ min+gz  β”‚ '52.96Kb'  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Pick Rotating Cube
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ (index) β”‚    size    β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  flat   β”‚ '705.10Kb' β”‚
β”‚   dce   β”‚ '423.65Kb' β”‚
β”‚   min   β”‚ '220.12Kb' β”‚
β”‚ min+gz  β”‚ '55.19Kb'  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

webgl_shaders_ocean.html
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ (index) β”‚    size    β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  flat   β”‚ '788.71Kb' β”‚
β”‚   dce   β”‚ '568.86Kb' β”‚
β”‚   min   β”‚ '297.01Kb' β”‚
β”‚ min+gz  β”‚ '77.73Kb'  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

cannon-es/examples/threejs_mousepick
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ (index) β”‚    size    β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  flat   β”‚ '957.42Kb' β”‚
β”‚   dce   β”‚ '624.32Kb' β”‚
β”‚   min   β”‚ '290.34Kb' β”‚
β”‚ min+gz  β”‚ '74.79Kb'  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Build Locally

  1. Clone this repo
  2. Install deps, npm i
  3. Create builds, npm run build
  4. Boot http server, npm run serve
  5. Check testbed at http://localhost:8080

To test your own codes:

  1. Put your codes in src/foo.js
  2. Write tests in tests/foo.js
  3. Config e2edce in e2edce.config.js
  4. Create build, npm run build
  5. Check result at http://localhost:8080/public/foo/index.html

Credits

About

A demo project for ycw/e2edce

https://ycw.github.io/e2edce-sample-project/

License:MIT License


Languages

Language:JavaScript 81.4%Language:HTML 12.8%Language:CSS 5.8%