Starter pack for ML5 project with typescript and webpack set up.
Clone this repo ml5-typescript-webpack
from github
git clone [email protected]:dejavu1987/ml5-typescript-webpack.git
Then go to the new directory and run npm install
cd ml5-typescript-webpack
npm install
npm start
npm run build
npm run lint
npm run lint-and-fix
Read on my blog post how to update your sketch files to make it work with this setup http://anilmaharjan.com.np/blog/2020/10/ml5-with-webpack-and-typescript
ML5 does not officially support typescript yet. Initial draft version of type definition from @dikarel is being used at the moment. Follow the discussion here ml5js/ml5-library#253