https://github.com/retro/generator-canjs
Yeoman generator for CanJS
https://github.com/retro/generator-canjs
Last synced: about 1 month ago
JSON representation
Yeoman generator for CanJS
- Host: GitHub
- URL: https://github.com/retro/generator-canjs
- Owner: retro
- Created: 2013-06-03T17:28:09.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2017-03-14T11:45:42.000Z (about 8 years ago)
- Last Synced: 2025-05-05T01:06:33.822Z (about 1 month ago)
- Language: JavaScript
- Size: 1.5 MB
- Stars: 15
- Watchers: 5
- Forks: 8
- Open Issues: 4
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# generator-canjs
[](https://travis-ci.org/retro/generator-canjs)
[](http://badge.fury.io/js/generator-canjs)
[](https://coveralls.io/github/retro/generator-canjs?branch=master)## Changelog
- Moved in donejs binary
- Moved in donejs-cli
- Stripped out done-* dependencies for projects as this gets extra option to add that as this is only ssr related stuff.
- Moved donejs-cli dependencies that was a cli parm befor into the generatorA Yeoman generator for your CanJS application. Available generators are:
- `app` to create a new CanJS application
- `plugin` to create a new CanJS plugin
- `generator` to create a new CanJS generator project- `component` to create a CanJS component
- `supermodel` to create a can-connect connection
- `module` to generate a general purpose modlet## Using generators
__Important:__ While this repository is a Yeoman generator it should only be used directly with the CanJS cli instead of the `yo` command line.
With the CLI installed via
```
npm install generator-canjs -g
```The following commands are availbale. To initialize a new CanJS related project:
- `yo canjs init [projectname]` create a new CanJS application
- `yo canjs plugin [projectname]` create a new CanJS plugin
- `yo canjs init --type generator [projectname]` create a new generator projectWithin a CanJS application or plugin:
- `yo canjs add component` to create a CanJS component
- `yo canjs add supermodel` to create a can-connect connection
- `yo canjs add module` to generate a general purpose modlet