{
  "name": "generator-can",
  "version": "0.0.1",
  "description": "Yeoman generator for CanJS",
  "keywords": [
    "yeoman-generator",
    "yeoman",
    "generator",
    "framework",
    "component",
    "front-end",
    "app"
  ],
  "homepage": "https://github.com/smarkle/generator-can",
  "bugs": "https://github.com/smarkle/generator-can/issues",
  "author": {
    "name": "smarkle"
  },
  "main": "app/index.js",
  "repository": {
    "type": "git",
    "url": "git://github.com/smarkle/generator-can.git"
  },
  "scripts": {
    "test": "mocha"
  },
  "dependencies": {
    "yeoman-generator": "~0.10.2"
  },
  "peerDependencies": {
    "generator-karma": "~0.5.0",
    "yo": ">=1.0.0-rc.1.1"
  },
  "devDependencies": {
    "grunt": "~0.4.1",
    "mocha": "~1.8.1"
  },
  "engines": {
    "node": ">=0.8.0",
    "npm": ">=1.2.10"
  },
  "licenses": [
    {
      "type": "BSD"
    }
  ],
  "readme": "# CanJS Generator       ![ScreenShot](https://raw.github.com/smarkle/generator-can/master/canjsLogo.jpeg)\n\nMaintainer: [Scott Markley](https://github.com/smarkle)\n\nBased on [Generator-Angular](https://github.com/yeoman/generator-angular)\n\n## Usage\n\nFirst make a new directory, and `cd` into it:\n```\nmkdir my-new-project && cd $_\n```\n\nThen install `generator-can` and `generator-karma`:\n```\nnpm install generator-can generator-karma\n```\n\nRun `yo can`, optionally passing an app name:\n```\nyo can [app-name]\n```\n\nFinally, install npm and bower dependencies:\n```\nnpm install && bower install --dev\n```\n\n## Generators\n\nAvailable generators:\n\n* [can](#app) (aka [can:app](#app))\n* [can:model](#directive)\n* [can:view](#view)\n* [can:controller](#controller)\n* [can:route](#route)\n\n\n### App\nSets up a new CanJS app, generating all the boilerplate you need to get started. The app generator also optionally installs Twitter Bootstrap as well as testing suite Qunit.\n\nExample:\n```bash\nyo can\n```\n\n### Route\nGenerates a controller and view, and configures a route in `app/scripts/app.js` connecting them.\n\n### Controller\nGenerates a controller in `app/scripts/controllers`.\n\nExample:\n```bash\nyo can:controller user\n```\n\nProduces `app/scripts/controllers/user.js`:\n```javascript\ncan.module('myMod').controller('UserCtrl', function ($scope) {\n  // ...\n});\n```\n\n### View\nGenerates an HTML view file in `app/views`.\n\nExample:\n```bash\nyo can:view user\n```\n\nProduces `app/views/user.html`:\n```html\n<p>This is the user view</p>\n```\n\n#### Options\nThere are options for each of the methods for registering services. For more on using these services, see the [CanJs AMD documentation](http://canjs.us/#using_canjs-amd).\n\n## Options\nIn general, these options can be applied to any generator, though they only affect generators that produce scripts.\n\n### CoffeeScript\nFor generators that output scripts, the `--coffee` option will output CoffeeScript instead of JavaScript.\n\nFor example:\n```bash\nyo can:controller user --coffee\n```\n\nProduces `app/scripts/controller/user.coffee`:\n```coffeescript\ncan.module('myMod')\n  .controller 'UserCtrl', ($scope) ->\n```\n\nA project can mix CoffeScript and JavaScript files.\n\n\n## Bower Components\n\nThe following packages are always installed by the [app](#app) generator:\n\n* Can\n* can-mocks\n* can-scenario\n\n\nThe following additional modules are available as components on bower, and installable via `bower install`:\n\n* can-cookies\n* can-loader\n* can-resource\n* can-sanitize\n\nAll of these can be updated with `bower update` as new versions of CanJS are released.\n\n## Configuration\nYeoman generated projects can be further tweaked according to your needs by modifying project files appropriately.\n\n### Output\nYou can change the `app` directory by adding a `appPath` property to `component.json`. For instance, if you wanted to easily integrate with Express.js, you could add the following:\n\n```json\n{\n  \"name\": \"yo-test\",\n  \"version\": \"0.0.0\",\n  ...\n  \"appPath\": \"public\"\n}\n\n```\nThis will cause Yeoman-generated client-side files to be placed in `public`.\n\n## Testing\n\nFor tests to work properly, karma needs the `can-mocks` bower package.\nThis script is included in the component.json in the `devDependencies` section, which will\nbe available very soon, probably with the next minor release of bower.\n\nWhile bower `devDependencies` are not yet implemented, you can fix it by running:\n```bash\nbower install can-mocks\n```\n\nBy running `grunt test` you should now be able to run your unit tests with karma.\n\n## Contribute\n\nSee the [contributing docs](https://github.com/yeoman/yeoman/blob/master/contributing.md)\n\nWhen submitting an issue, please follow the [guidelines](https://github.com/yeoman/yeoman/blob/master/contributing.md#issue-submission). Especially important is to make sure Yeoman is up-to-date, and providing the command or commands that cause the issue.\n\nWhen submitting a bugfix, write a test that exposes the bug and fails before applying your fix. Submit the test alongside the fix.\n\nWhen submitting a new feature, add tests that cover the feature.\n\n## License\n\n[BSD license](http://opensource.org/licenses/bsd-license.php)\n\n##Grunt Debugging\n\n```bash\nnode --debug-brk $(which grunt) task\n```\n\n```bash\nUse node-inspector &\n```",
  "_id": "generator-can@0.0.1",
  "_from": "generator-can"
}
