Skip to content

Commit

Permalink
Updated readme with new commands for subgenerator
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiemoore committed Jan 20, 2014
1 parent 1da4ce5 commit c63710f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
18 changes: 16 additions & 2 deletions README.md
Expand Up @@ -36,10 +36,24 @@ See the [documentation on Samsung SmartTV apps](http://www.samsungdforum.com/gui

Add support for [CoffeeScript](http://coffeescript.org/).


# Scene Subgenerator

* `yo smarttv:scene <scene_name>`

## Options for subgenerator

* `--coffee`

Add support for [CoffeeScript](http://coffeescript.org/).

* `--sass`

Creates stylesheet in SCSS format.


## Todo
- Create icons
- Include more js files for Samsung SmartTV
- Include sample code for basic app
- Get `grunt serve` to load app in VirtualBox

## License
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "generator-smarttv",
"version": "0.0.6",
"version": "0.0.7",
"description": "Scaffold out a Samsung SmartTV app",
"keywords": [
"yeoman-generator",
Expand Down
3 changes: 2 additions & 1 deletion scene/index.js
Expand Up @@ -11,6 +11,7 @@ var SceneGenerator = module.exports = function SceneGenerator(args, options, con

this.sceneName = toTitleCase(this.name);
this.coffee = options.coffee;
this.sass = options.sass;
};

function toTitleCase(str) {
Expand All @@ -24,6 +25,6 @@ SceneGenerator.prototype.files = function files() {
this.template('scene.' + ext, 'src/app/scenes/' + this.sceneName + '.' + ext);
this.template('scene.html', 'src/app/htmls/' + this.sceneName + '.html');

ext = this.includeCompass ? 'scss' : 'css';
ext = this.sass ? 'scss' : 'css';
this.template('scene.' + ext, 'src/app/stylesheets/' + this.sceneName + '.' + ext);
};

0 comments on commit c63710f

Please sign in to comment.