-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Also, change the directory structure to be consistent with other generators and avoid having to set sourceRoot manually.
- Loading branch information
Showing
6 changed files
with
51 additions
and
58 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
'use strict'; | ||
|
||
var path = require('path'); | ||
var generators = require('yeoman-generator'); | ||
|
||
module.exports = generators.Base.extend({ | ||
constructor: function () { | ||
generators.Base.apply(this, arguments); | ||
}, | ||
|
||
configuring: function () { | ||
this.config.save(); | ||
}, | ||
|
||
writing: function () { | ||
this.fs.copy( | ||
this.templatePath('test.js'), | ||
this.destinationPath('test/spec/test.js') | ||
); | ||
|
||
this.fs.copy( | ||
this.templatePath('index.html'), | ||
this.destinationPath('test/index.html') | ||
); | ||
}, | ||
|
||
install: function () { | ||
if (this.options['skip-install']) { | ||
return; | ||
} | ||
|
||
var dependencies = [ | ||
'jasmine' | ||
]; | ||
|
||
this.bowerInstall(dependencies, {saveDev: true}); | ||
} | ||
|
||
}); |
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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