1.0.3 • Published 9 years ago

sails-generate-dscontroller v1.0.3

Weekly downloads
2
License
MIT
Repository
-
Last release
9 years ago

sails-generate-dscontroller

A controller generator (with crud actions) for use with the Sails command-line interface.

Installing this generator

Certain generators are installed by default in Sails, but they can be overridden. Check the Sails docs for information on installing generator overrides / custom generators.

For a particular app

In your app directory:

$ npm install sails-generate-dscontroller

Then edit this project's ./.sailsrc file (see below for details). If no local .sailsrc file exists yet, you can just create one.

Usage

Now that the generator is installed, you can test it:

$ sails generate dscontroller foobar create read update delete
Configuring a .sailsrc file to use this generator in place of sails generate controller

Add or replace the module used for generating a "controller":

{
    "generators": {
        "modules": {
            "controller": "sails-generate-dscontroller"
        }
    }
}

And test

$ sails generate controller foobar create read update delete

Questions?

See FAQ.md.

License

MIT © 2014 balderdashy & contributors(http://michaelmcneil.com), Balderdash & contributors

Sails is free and open-source under the MIT License.