Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ For a general overview of Yeoman generators, see the [Getting Started Guide](htt
$ npm install -g generator-compute-io
```

## Usage
## Usage

Once installed, navigate to the directory in which you want to place generated files and run

Expand All @@ -43,7 +43,7 @@ The module name requires the convention that the module be prefixed with `comput

Valid names include: `compute-mean`, `compute-variance`, `compute-sum`, etc. Do __not__ include spaces or special characters in the name; e.g., `compute io correlation @ value`.

Also note that using the generator requires internet access, as module name availability is confirmed on NPM via [npm-name](https://github.com/sindresorhus/npm-name).
Also note that using the generator requires internet access, as module name availability is confirmed on NPM via [npm-name](https://github.com/sindresorhus/npm-name).


#### Git
Expand Down Expand Up @@ -79,13 +79,6 @@ If you have chosen to initialize the directory as a Git repository, the default
If the Github email address is fine, just type `enter`.


#### License

Enter the license holder for this module. The default is your name, but this could be the organization for which you work (say, if they are helping sponsor development) or some other entity.

If the default option is fine, just type `enter`.


#### Description

Enter the module description.
Expand Down
3 changes: 0 additions & 3 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,3 @@ TODO
### Tests

1. Prompts



10 changes: 0 additions & 10 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,6 @@ var Generator = yeoman.generators.Base.extend({
return ( answers.git ) ? email : '';
}
},
{
'type': 'input',
'name': 'license_holder',
'message': 'Author name(s) to include in the license file?',
default: function( answers ) {
return answers.author;
}
},
{
'type': 'input',
'name': 'description',
Expand All @@ -173,7 +165,6 @@ var Generator = yeoman.generators.Base.extend({
this.prompt( prompts, function onAnswers( answers ) {
this.author = answers.author;
this.email = answers.email;
this.license_holder = answers.license_holder;
this.moduleName = answers.name;
this.description = answers.description;
this.git = answers.git;
Expand Down Expand Up @@ -222,7 +213,6 @@ var Generator = yeoman.generators.Base.extend({
*/
license: function() {
var context = {
'holder': this.license_holder,
'year': this.year
};

Expand Down
4 changes: 2 additions & 2 deletions app/templates/_LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) <%= year %> <%= holder %>.
Copyright (c) <%= year %> The Compute.io Authors. All rights reserved.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
4 changes: 2 additions & 2 deletions app/templates/_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,12 @@ $ make view-cov
---
## License

[MIT license](http://opensource.org/licenses/MIT).
[MIT license](http://opensource.org/licenses/MIT).


## Copyright

Copyright &copy; <%= year %>. <%= author %>.
Copyright &copy; <%= year %>. The Compute.io Authors.


[npm-image]: http://img.shields.io/npm/v/<%= name %>.svg
Expand Down
15 changes: 12 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,16 @@
"url": "https://github.com/kgryte"
},
"contributors": [
{}
{
"name": "Athan Reines",
"email": "kgryte@gmail.com",
"url": "https://github.com/kgryte"
},
{
"name": "Philipp Burckhardt",
"email": "pburckhardt@outlook.com",
"url": "https://github.com/Planeshifter"
}
],
"scripts": {
"test": "./node_modules/.bin/mocha",
Expand All @@ -35,7 +44,7 @@
"dependencies": {
"chalk": "^1.0.0",
"npm-name": "^1.0.1",
"shelljs": "^0.4.0",
"shelljs": "^0.5.0",
"yeoman-generator": "^0.18.9",
"yosay": "^1.0.0"
},
Expand All @@ -45,7 +54,7 @@
"coveralls": "^2.11.1",
"istanbul": "^0.3.0",
"jshint": "2.x.x",
"jshint-stylish": "^1.0.0"
"jshint-stylish": "^2.0.0"
},
"peerDependencies": {
"yo": ">=1.0.0"
Expand Down
1 change: 0 additions & 1 deletion test/test.creation.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ describe( 'compute-io generator', function tests() {
'name': 'compute-generator-test',
'author': 'Jane Doe',
'email': 'jane@doe.com',
'license_holder': 'Jane Doe &lt;jane@doe.com&gt;',
'description': 'Compute.io generator test module.',
'git': false
})
Expand Down