Skip to content

Instantly share code, notes, and snippets.

@cgkio
Created October 17, 2013 20:18
Show Gist options
  • Save cgkio/7031535 to your computer and use it in GitHub Desktop.
Save cgkio/7031535 to your computer and use it in GitHub Desktop.
shell output for $ steroids generate
example:
Usage: steroids generate example <exampleName>
Generates an example demonstrating a Steroids feature.
Options:
- exampleName: name of the example to generate.
Available Steroids examples:
- animation -- Using native animations without moving to another document (iOS-only).
- drawer -- Using the native Facebook-style drawer (iOS-only).
- drumMachine -- Demonstrate Steroids Audio API via a kickin' drum machine.
- layerStack -- Native navigation, page transitions and backstack handling.
- modal -- Using the modal window.
- navigationBar -- Using the native navigation bar.
- photoGallery -- Use Cordova's Camera and File APIs and Steroids native
windowing to create a one-picture photo gallery.
- preload -- Preload WebViews to have them available immediately.
Available Cordova examples:
- accelerometer -- Access the device's accelerometer.
- audio -- Play back audio files through Cordova's Media API.
- camera -- Access the device's camera and photo library.
- compass -- Access the device's compass.
- device -- Access the device properties.
- geolocation -- Access the device's geolocation data.
- notification -- Access native notifications.
- storage -- Access Cordova's SQL Storage API.
Other:
- s3upload -- Uploading photos to s3
-------------------------
resource:
Usage: steroids generate resource <resource>
Generates a stub resource consisting of a controller and index and show views.
Options:
- resource: name of resource to use. Example: 'car' will result in the following files:
- app/controllers/car.js
- app/models/car.js
- app/views/car/index.html
- app/views/car/show.html
-------------------------
bb-scaffold:
Usage: steroids generate bb-scaffold <resourceName>
Generates an Backbone.js CRUD scaffold to work with a REST-API.
Options:
- resourceName: name of resource to create. Example: 'car' will result in the following files:
- app/controllers/car.js
- app/models/car.js
- app/views/car/index.html
- app/views/car/show.html
- app/views/car/edit.html
- app/views/car/new.html
- app/views/layouts/car.html
-------------------------
ng-resource:
Usage: steroids generate ng-resource <resourceName>
Generates an Angular.js resource with local data.
Options:
- resourceName: name of resource to create. Example: 'car' will result in the following files:
- app/controllers/car.js
- app/models/car.js
- app/views/car/index.html
- app/views/car/show.html
- app/views/layouts/car.html
- www/data/car.json
-------------------------
ng-scaffold:
Usage: steroids generate ng-scaffold <resourceName>
Generates an Angular.js CRUD scaffold to work with a REST-API.
Options:
- resourceName: name of resource to create. Example: 'car' will result in the following files:
- app/controllers/car.js
- app/models/car.js
- app/views/car/index.html
- app/views/car/show.html
- app/views/car/edit.html
- app/views/car/new.html
- app/views/layouts/car.html
-------------------------
ng-sql-scaffold:
Usage: steroids generate ng-sql-scaffold <resourceName>
Generates an Angular.js CRUD scaffold that uses Peristence.js and WebSQL as a backend, with
an option to switch to Cordova's SQLite plugin.
Options:
- resourceName: name of resource to create. Example: 'car' will result in the following files:
- app/controllers/car.js
- app/models/car.js
- app/views/car/index.html
- app/views/car/show.html
- app/views/car/edit.html
- app/views/car/new.html
- app/views/layouts/car.html
- www/stylesheest/car.css
-------------------------
ng-touchdb-resource:
Usage: steroids generate ng-touchdb-resource <resourceName>
Generates an Angular.js resource that syncs data in an external CouchDB database with a local TouchDB database.
Options:
- resourceName: name of resource to create. Example: 'car' will result in the following files:
- app/controllers/car.js
- app/models/car.js
- app/views/car/index.html
- app/views/car/show.html
- app/views/layouts/car.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment