# generator-trails

[![Gitter][gitter-image]][gitter-url]
[![NPM version][npm-image]][npm-url]
[![Linux + OSX Build Status][ci-image]][ci-url]
[![Windows Build Status][appveyor-image]][appveyor-url]
[![Dependency Status][daviddm-image]][daviddm-url]
[![Follow @trailsjs on Twitter][twitter-image]][twitter-url]

[**Trails**](http://trailsjs.io) Yeoman Generator.

## Usage

Make sure you are using a recent version of yeoman (>=1.8). You can install the latest Yeoman with `npm i -g yo`

```sh
$ npm install -g yo
$ yo trails --help

Usage:
  yo trails [options] 

Options:
        --help          # Print the generator's options and usage
        --skip-cache    # Do not remember prompt answers             Default: false
        --skip-install  # Do not automatically install dependencies  Default: false
        --skip-update   # Do not check for generator's updates       Default: false
        --force         # Force. Do stuff even if you shouldn't.     Default: false

Generators:

  Create New Model
    yo trails:model <model-name>

  Create New Controller
    yo trails:controller <controller-name>

  Create New Policy
    yo trails:policy <policy-name>

  Create New Service
    yo trails:service <service-name>

  Create New Trailpack
    yo trails:trailpack --new

  Create new Configuration File
    yo trails:config <config-name>
    
  Install Trailpacks into a Trails Application
    yo trails:trailpack --install <trailpacks-name> (like yo trails:trailpack trailpack-repl,trailpack-webpack,...)
```

## Contributing

We love contributions! Please see our [Contribution Guide](https://github.com/trailsjs/trails/blob/master/.github/CONTRIBUTING.md)
for more information.

## License

[MIT](https://github.com/trailsjs/trails/blob/master/LICENSE)

<img src="http://cdn.trailsjs.io/art/backgrounds/trails-day.png">

[npm-image]: https://img.shields.io/npm/v/generator-trails.svg?style=flat-square
[npm-url]: https://npmjs.org/package/generator-trails
[ci-image]: https://img.shields.io/travis/trailsjs/generator-trails.svg?style=flat-square&label=Linux%20/%20OSX
[ci-url]: https://travis-ci.org/trailsjs/generator-trails
[appveyor-image]: https://img.shields.io/appveyor/ci/trailsjs/generator-trails/master.svg?style=flat-square&label=Windows
[appveyor-url]: https://ci.appveyor.com/project/trailsjs/generator-trails
[daviddm-image]: http://img.shields.io/david/trailsjs/generator-trails.svg?style=flat-square
[daviddm-url]: https://david-dm.org/trailsjs/generator-trails
[gitter-image]: http://img.shields.io/badge/+%20GITTER-JOIN%20CHAT%20%E2%86%92-1DCE73.svg?style=flat-square
[gitter-url]: https://gitter.im/trailsjs/trails
[twitter-image]: https://img.shields.io/twitter/follow/trailsjs.svg?style=social
[twitter-url]: https://twitter.com/trailsjs
