Skip to content

Commit

Permalink
Merge pull request #2 from Supernomad/grunt
Browse files Browse the repository at this point in the history
Grunt
  • Loading branch information
supernomad committed Jun 17, 2015
2 parents f854d05 + 0f013f8 commit fbe9f84
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
language: node_js
node_js:
- "0.12"
after_success: 'npm run coveralls'
after_failure: 'npm run coveralls'
before_install: npm install -g grunt-cli
35 changes: 35 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-mocha-istanbul');
grunt.loadNpmTasks('grunt-coveralls');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-mkdir');

grunt.initConfig({
mkdir: {
testDir: {
options: {
create: ['tmp/tests']
}
}
},
watch: {
files: ['test/**/*tests.js'],
tasks: ['default'],
},
mocha_istanbul: {
coverage: {
src: 'test/**/*tests.js'
}
},
coveralls: {
options: {
force: true
},
coverage: {
src: 'coverage/*.info'
}
}
});

grunt.registerTask('default', ['mkdir:testDir', 'mocha_istanbul:coverage', 'coveralls:coverage']);
};
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Coverage Status](https://coveralls.io/repos/Supernomad/chunky/badge.svg?branch=master)](https://coveralls.io/r/Supernomad/chunky?branch=master)
[![Build Status](https://travis-ci.org/Supernomad/chunky.svg?branch=master)](https://travis-ci.org/Supernomad/chunky)
[![Built with Grunt](https://cdn.gruntjs.com/builtwith.png)](http://gruntjs.com/)
# chunky
An async upload/download node library leveraging express.js and socket.io. Provides standard, chunked, and udp style transfers.
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "An async upload/download nodejs library leveraging express.js and socket.io. Provides standard, chunked, and udp style transfers.",
"main": "chunky.js",
"scripts": {
"test": "mkdir -p tmp/tests && ./node_modules/istanbul/lib/cli.js cover ./node_modules/.bin/_mocha -- test --ui bdd --reporter spec",
"test": "grunt",
"coveralls": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls"
},
"repository": {
Expand All @@ -21,7 +21,7 @@
"folder"
],
"author": "supernomad <Christian Saide>",
"license": "GPL v3",
"license": "GPL-3.0",
"bugs": {
"url": "https://github.com/Supernomad/chunky/issues"
},
Expand All @@ -30,6 +30,12 @@
"mocha": "~2.2.5",
"should": "~6.0.3",
"istanbul": "~0.3.15",
"coveralls": "~2.11.2"
"coveralls": "~2.11.2",
"grunt": "~0.4.5",
"grunt-mocha-istanbul": "~2.4.0",
"grunt-coveralls": "~1.0.0",
"grunt-contrib-watch": "~0.6.1",
"grunt-mkdir": "~0.1.2",
"grunt-remove": "~0.1.0"
}
}

0 comments on commit fbe9f84

Please sign in to comment.