Giter Club home page Giter Club logo

minit's Introduction

Minit โ€“ the Montage Initializer

npm version

Build Status

Minit helps you build Montage applications by generating template applications and components for you.

Usage

Run minit with your chosen template inside the directory you wish to create the template in. Templates such as "component" will search for a package.json and place their generated files in the correct directory underneath it, in this case ui/

Run minit --help for details of the templates available and their usages. The templates are defined in the templates directory.

~$ minit --help

  Usage: minit [options] [command]

  Commands:

    create:app [options]
    create:component [options]
    create:package [options]
    create:package-json [options]
    create:test [options]

  Options:

    -h, --help                  output usage information
    -V, --version               output the version number
~$ minit create:app --help

  Usage: create:app [options]

  Options:

    -h, --help              output usage information
    -n, --name <name>       application name
    -p, --package-home [path]   package home
    -d, --destination [path]    where the template will be expanded relative to the package-home
    -c, --copyright [path]  copyright file
~$ minit create:package --help

  Usage: create:package [options]

  Options:

    -h, --help              output usage information
    -n, --name <name>       package name
    -p, --package-home [path]   package home
    -d, --destination [path]    where the template will be expanded relative to the package-home
    -c, --copyright [path]  copyright file
~$ minit create:component --help

  Usage: create:component [options]

  Options:

    -h, --help                  output usage information
    -n, --name <name>           module name
    -p, --package-home [path]   package home
    -d, --destination [path]    where the template will be expanded relative to the package-home
    -e, --exported-name [name]  exported name
    -j, --jsdoc [module]        jsdoc module
    -c, --copyright [path]      copyright file
~$ minit create:package-json --help

  Usage: create:package-json [options]

  Options:

    -h, --help                 output usage information
    -n, --name <name>          package name
    -p, --package-home [path]   package home
    -d, --destination [path]    where the template will be expanded relative to the package-home
    -a, --author [name]        author
    -m, --montage-path [name]  path to montage
~$ minit create:spec --help

  Usage: create:spec [options]

  Options:

    -h, --help                 output usage information
    -p, --package-home [path]  absolute path to the package's home directory
    -d, --destination [path]   where the template will be expanded relative to the package-home's test directory
    -n, --name <name>          module name
    -t, --title [name]         title of the test
~$ minit create:test --help

  Usage: create:test [options]

  Options:

    -h, --help                 output usage information
    -p, --package-home [path]  absolute path to the package's home directory
    -d, --destination [path]   where the template will be expanded relative to the package-home's test directory
    -n, --name <name>          module name
    -t, --title [name]         title of the test

Using minit as a package

The minit package exports a create function that accepts a template name and an options object. The available options are the same as the command line options except that they are camel cased (--package-home becomes packageHome). The create function returns a promise.

var minitCreate = require("minit").create;

minitCreate(templateName, options).done();

minit's People

Contributors

francoisfrisch avatar stuk avatar hthetiot avatar mczepiel avatar aadsm avatar marchant avatar asolove avatar cesine avatar simurai avatar mikokim avatar nv avatar spearway avatar pmarcou avatar hugodaniel avatar aelr avatar pchaussalet avatar rayshan avatar thibaultzanini avatar tstatler avatar romancortes avatar tombyrer avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.