Skip to content

Commit

Permalink
Generated by yo nodejs
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerz committed Mar 8, 2014
0 parents commit 5cb28c9
Show file tree
Hide file tree
Showing 9 changed files with 147 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
@@ -0,0 +1,4 @@
*.swp
.DS_Store
node_modules/
npm-debug.log
3 changes: 3 additions & 0 deletions .jshintrc
@@ -0,0 +1,3 @@
{
"laxcomma": true
}
4 changes: 4 additions & 0 deletions .travis.yml
@@ -0,0 +1,4 @@
language: node_js
node_js:
- "0.8"
- "0.10"
51 changes: 51 additions & 0 deletions Gruntfile.js
@@ -0,0 +1,51 @@
// Generated on 2014-03-08 using generator-nodejs 1.0.3
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
complexity: {
generic: {
src: ['app/**/*.js'],
options: {
errorsOnly: false,
cyclometric: 6, // default is 3
halstead: 16, // default is 8
maintainability: 100 // default is 100
}
}
},
jshint: {
all: [
'Gruntfile.js',
'app/**/*.js',
'test/**/*.js'
],
options: {
jshintrc: '.jshintrc'
}
},
mochacli: {
all: ['test/**/*.js'],
options: {
reporter: 'spec',
ui: 'tdd'
}
},
watch: {
js: {
files: ['**/*.js', '!node_modules/**/*.js'],
tasks: ['default'],
options: {
nospawn: true
}
}
}
});

grunt.loadNpmTasks('grunt-complexity');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-mocha-cli');
grunt.registerTask('test', ['complexity', 'jshint', 'mochacli', 'watch']);
grunt.registerTask('ci', ['complexity', 'jshint', 'mochacli']);
grunt.registerTask('default', ['test']);
};
25 changes: 25 additions & 0 deletions LICENSE
@@ -0,0 +1,25 @@
Copyright (c) 2014, Rogerz Zhang
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. Neither the name of Rogerz Zhang nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY ROGERZ ZHANG ''AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL ROGERZ ZHANG BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
19 changes: 19 additions & 0 deletions README.md
@@ -0,0 +1,19 @@
# wechat-qrcode

generate qrcode in wechat

[![build status](https://secure.travis-ci.org//wechat-qrcode.png)](http://travis-ci.org//wechat-qrcode)

## Installation

This module is installed via npm:

``` bash
$ npm install wechat-qrcode
```

## Example Usage

``` js
var wechatQrcode = require('wechat-qrcode');
```
3 changes: 3 additions & 0 deletions index.js
@@ -0,0 +1,3 @@
module.exports = function () {
return 'Hello, world';
};
29 changes: 29 additions & 0 deletions package.json
@@ -0,0 +1,29 @@
{
"name": "wechat-qrcode",
"version": "0.0.1",
"description": "generate qrcode in wechat",
"main": "index.js",
"scripts": {
"test": "node_modules/.bin/grunt ci"
},
"repository": {
"type": "git",
"url": "https://github.com/rogerz/wechat-qrcode"
},
"keywords": ["wechat wechat-bot qrcode"],
"author": "Rogerz Zhang <rogerz.zhang@gmail.com>",
"license": "BSD-3-Clause",
"bugs": {
"url": "https://github.com/rogerz/wechat-qrcode/issues"
},
"dependencies": {},
"devDependencies": {
"chai": "~1.8.1",
"grunt-contrib-jshint": "~0.6.4",
"grunt-contrib-watch": "~0.5.3",
"grunt": "~0.4.1",
"grunt-mocha-cli": "~1.1.0",
"grunt-complexity": "~0.1.3",
"grunt-cli": "~0.1.9"
}
}
9 changes: 9 additions & 0 deletions test/index.js
@@ -0,0 +1,9 @@
var expect = require('chai').expect,
wechatQrcode = require('..');

describe('wechat-qrcode', function() {
it('should say hello', function(done) {
expect(wechatQrcode()).to.equal('Hello, world');
done();
});
});

0 comments on commit 5cb28c9

Please sign in to comment.