generator-jscad

2.2.0 • Public • Published

generator-jscad NPM version

Create a jscad project

Installation

First, install Yeoman and generator-jscad using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-jscad

Then generate your new project:

yo jscad

You can select the type of project you want to build. A single object project is the default. You can create a multi object project with selection via a dropdown list or a set of check boxes. These are more complex, but allow you to organize and view a much larger project.

yo jscad cli example

You can also create a VuePress site with a live viewer.

example vuepress site

Running

The jscad project uses gulp to create a dist directory and watch for changes. You can drag the dist directory into the drop area on openjscad.org. Make sure you check Auto Reload and any time you save, glup will recreate the dist directory files and your model should refresh.

jscad-utils

The example project uses jscad-utils. This is a set of utilities that make object creation and alignment easier. To remove it, npm uninstall --save jscad-utils.

License

MIT © John Cole

Readme

Keywords

Package Sidebar

Install

npm i generator-jscad

Weekly Downloads

13

Version

2.2.0

License

MIT

Unpacked Size

36.8 kB

Total Files

18

Last publish

Collaborators

  • johnwebbcole