-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Quick commands naming convention and formatting
- Loading branch information
1 parent
2ae3c2a
commit 615b117
Showing
5 changed files
with
35 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
/*================================================================ | ||
App <%= site_name %> | ||
App <%= site_name %> | ||
==================================================================*/ | ||
/*global angular*/ | ||
|
||
'use strict'; | ||
|
||
var app = angular.module('<%= site_name %>', ['ngRoute']); | ||
|
||
app.config(['$routeProvider', function($routeProvider) { | ||
$routeProvider | ||
.when('', { | ||
controller: '', | ||
templateUrl: '' | ||
}) | ||
$routeProvider | ||
.when('', { | ||
controller: '', | ||
templateUrl: '' | ||
}) | ||
|
||
.otherwise({ redirectTo: '/' }); | ||
.otherwise({ redirectTo: '/' }); | ||
}]); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
'use strict'; | ||
var util = require('util'), | ||
chalk = require('chalk'); | ||
chalk = require('chalk'); | ||
|
||
var ScriptBase = require('../script-base.js'); | ||
|
||
var Generator = module.exports = function Generator() { | ||
ScriptBase.apply(this, arguments); | ||
var smacssGenerator = module.exports = function smacssGenerator() { | ||
ScriptBase.apply(this, arguments); | ||
}; | ||
|
||
util.inherits(Generator, ScriptBase); | ||
|
||
Generator.prototype.createDirectiveFiles = function createDirectiveFiles() { | ||
util.inherits(smacssGenerator, ScriptBase); | ||
|
||
smacssGenerator.prototype.createDirectiveFiles = function createDirectiveFiles() { | ||
this.log(chalk.yellow('Creating directive, please wait...... \n')); | ||
|
||
this.generateSourceAndTest( | ||
'_directive', | ||
'spec/directive', | ||
'directives', | ||
this.options['add-index'] || false | ||
); | ||
this.generateSourceAndTest( | ||
'_directive', | ||
'spec/directive', | ||
'directives', | ||
this.options['add-index'] || false | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters