forked from yeoman/generator-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
to be simpler and fix a lot of trailing whitespace, bugs, bad output and other inconsistencies.
- Loading branch information
1 parent
fd76965
commit 6adf1f4
Showing
20 changed files
with
164 additions
and
251 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,4 +1,3 @@ | ||
# http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
|
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,3 +1,3 @@ | ||
npm-debug.log | ||
node_modules/ | ||
temp/ | ||
node_modules | ||
temp |
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,32 +1,26 @@ | ||
# Node Generator [](https://travis-ci.org/yeoman/generator-node) | ||
|
||
> Create a node.js module with [Yeoman](http://yeoman.io), including mocha unit tests. | ||
> Create a Node.js module | ||
This generator is based of | ||
[grunt-init-node](https://github.com/gruntjs/grunt-init-node), authored by the | ||
magnificient GruntJS team. | ||
Maintained by [Hemanth.HM](http://github.com/hemanth). | ||
|
||
Maintained by [Hemanth.HM](http://github.com/hemanth) | ||
|
||
[Yeoman]: http://yeoman.io/ | ||
## Install | ||
|
||
|
||
## Installation | ||
|
||
Install the generator by running: `npm install -g generator-node`. | ||
```sh | ||
$ npm install --global generator-node | ||
``` | ||
|
||
|
||
## Usage | ||
|
||
At the command-line, cd into an empty directory, run this command and follow the prompts. | ||
|
||
``` | ||
yo node | ||
```sh | ||
$ yo node | ||
``` | ||
|
||
_Note that this template will generate files in the current directory, so be sure to change to a new directory first if you don't want to overwrite existing files._ | ||
*Note that this template will generate files in the current directory, so be sure to change to a new directory first if you don't want to overwrite existing files.* | ||
|
||
|
||
## License | ||
|
||
[MIT License](http://en.wikipedia.org/wiki/MIT_License) | ||
MIT © Yeoman team |
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
'use strict'; | ||
module.exports = function (grunt) { | ||
// Show elapsed time at the end | ||
require('time-grunt')(grunt); | ||
// Load all grunt tasks | ||
require('load-grunt-tasks')(grunt); | ||
|
||
grunt.initConfig({ | ||
jshint: { | ||
options: { | ||
jshintrc: '.jshintrc', | ||
reporter: require('jshint-stylish') | ||
}, | ||
js: { | ||
src: ['*.js'] | ||
}, | ||
test: { | ||
src: ['test/**/*.js'] | ||
} | ||
}, | ||
mochacli: { | ||
options: { | ||
reporter: 'nyan', | ||
bail: true | ||
}, | ||
all: ['test/*.js'] | ||
}, | ||
watch: { | ||
gruntfile: { | ||
files: '<%%= jshint.gruntfile.src %>', | ||
tasks: ['jshint:gruntfile'] | ||
}, | ||
lib: { | ||
files: '<%%= jshint.lib.src %>', | ||
tasks: ['jshint:lib', 'mochacli'] | ||
}, | ||
test: { | ||
files: '<%%= jshint.test.src %>', | ||
tasks: ['jshint:test', 'mochacli'] | ||
} | ||
} | ||
}); | ||
|
||
grunt.registerTask('default', ['jshint', 'mochacli']); | ||
}; |
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,34 @@ | ||
# <%= props.slugname %> [](http://travis-ci.org/<%= props.githubUsername %>/<%= slugname %>) | ||
|
||
> <%= props.description %> | ||
|
||
## Install | ||
|
||
```sh | ||
$ npm install --save <%= slugname %> | ||
``` | ||
|
||
|
||
## Usage | ||
|
||
```js | ||
var <%= slugname %> = require('<%= slugname %>'); | ||
|
||
<%= slugname %>('Rainbow'); | ||
```<% if (props.cli) { %> | ||
```sh | ||
$ npm install --global <%= slugname %> | ||
$ <%= slugname %> --help | ||
```<% } %><% if (props.browser) { %> | ||
```sh | ||
# creates a browser.js | ||
$ npm run browser | ||
```<% } %> | ||
## License | ||
MIT © [<%= props.authorName %>](<%= props.authorUrl %>) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.