GithubHelp home page GithubHelp logo

mitizhi / mix_generator Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pragdave/mix_generator

0.0 2.0 0.0 90 KB

Project generator for mix (an alternative to mix new)

License: Other

Elixir 61.22% HTML 38.78%

mix_generator's Introduction

Mix Generator—An alternative project generator for Mix

Generate skeleton directories and files for new Elixir projects of various styles. This is the same idea as mix new, mix nerves.new, mix phoenix.new, but all under one roof. It is also open ended—anyone can write a new template, and anyone can publish a template for others to use.

Install

$ mix archive.install hex mix_templates
$ mix archive.install hex mix_generator

Then you can install templates using:

$ mix template.install «template-name»

How do you find templates?

$ mix template.hex

Use

  • $ mix gen --help | -h

    Show this information

  • $ mix gen --list | -l

    Show locally installed templates. Same as mix template list

  • $ mix gen «template-name» --help

    See specific information for «template-name»

  • $ mix gen «template-name» «project-name» [ options ... ]

    Generate a new project called «project-name» using the template «template-name». This will be created in a directory with the same name as the project. By default, this directory will be created under the current directory. This can be overridden with the --into option, which specifies a new containing directory.

Options:

As well as --into «dir» each individual template may define its own set of options. For example, the project template will have its own options for creating supervised apps and so on.

Use mix gen «template-name» --help to see a list of these options.

Examples

$ mix gen project simple_app

$ mix gen project super_app --supervised --into ~/projects/

mix_generator's People

Contributors

pragdave avatar danielberkompas avatar

Watchers

Frans Oilinki 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.