This repo demonstrates how to utilize Typescript and Webpack for creating your KalumaJS projects.
Step 1: Make sure to follow the installation steps before attempting to create a typescript project. Once you've setup your Pico board with the Kaluma installation resume with below to build & deploy your project.
Step 2: Install Kaluma CLI
npm install -g @kaluma/cli
Step 3: Start your project by using this repository as a template. You'll find the "Use this template" button at the top of this page. Click this and "Create a new repository", clone it to your local machine, then run npm install
to download all the necessary packages for building.
npm run build
This command will build your project to a minified bundle to out/rp2.js
. This is also a sourcemap for future possibilities of debugging.
npm run flash
Building and deploying your project can be achieved by running the flash npm command. Make sure you have your Pico connected.