A template for creating JSCAD scripts in Typescript.
Create a new project using this template:
Either click the green Use this template
button on Github or use degit
in the directory you want to project to be in:
npx degit https://github.com/isfopo/jscad-ts-template my-project
Run npm install
to install dependencies.
Run npm start
to watch for changes and rebuild.
Right click on the src/index.ts
file and select Preview JSCAD Model
to see the object.
Edit src/index.ts
to add your code.
To export an STL file with JSCAD run npm build
.