minit | MontageJS utility
The MontageJS initializer, minit, is a multipurpose command line utility that provides a convenient way to kickstart and serve your MontageJS projects locally. With
minit you can quickly generate blank application projects, directories, and add components to an existing project.
Basic Examples of Using
Run the following commands from within your project directory:
To create a new project:
$ minit create:app -n app-name
This generates a new directory
app-name, which contains the default MontageJS application directories with production dependencies.
To add a component to a project:
$ minit create:component -n component-name
This generates a new UI component
uidirectory of the current application directory. It contains default HTML, CSS, and JS files for your component.
To spin up a local server for previewing the current project in the browser:
$ minit serve &
&flag ensures that you don't have to open a second Terminal window while working on your project. To close the server, run
minitagain then hit
To update to the latest version of
$ npm install -g minit@latest
For a complete list of
$ minit --help
See also the minit repo on Github.