diff --git a/.gitignore b/.gitignore index f11f9515..ee768962 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,8 @@ results build node_modules +coverage +report # extras *.swp diff --git a/Gruntfile.js b/Gruntfile.js deleted file mode 100644 index 68462b71..00000000 --- a/Gruntfile.js +++ /dev/null @@ -1,94 +0,0 @@ -'use strict'; - -module.exports = function(grunt) { - - //Load NPM tasks - grunt.loadNpmTasks('grunt-contrib-watch'); - grunt.loadNpmTasks('grunt-mocha-test'); - grunt.loadNpmTasks('grunt-nodemon'); - grunt.loadNpmTasks('grunt-concurrent'); - grunt.loadNpmTasks('grunt-env'); - grunt.loadNpmTasks('grunt-markdown'); - - // Project Configuration - grunt.initConfig({ - pkg: grunt.file.readJSON('package.json'), - watch: { - readme: { - files: ['README.md'], - tasks: ['markdown'] - }, - js: { - files: ['Gruntfile.js', 'index.js', 'app/**/*.js'], - options: { - livereload: true, - }, - }, - test: { - files: ['test/**/*.js', 'test/*.js','app/**/*.js'], - tasks: ['test'], - } - }, - jshint: { - all: { - src: ['Gruntfile.js', 'index.js', 'app/**/*.js', 'lib/*.js', 'config/*.js'], - options: { - jshintrc: true - } - } - }, - mochaTest: { - options: { - reporter: 'spec', - }, - src: ['test/**/*.js'], - }, - nodemon: { - dev: { - script: 'index.js', - options: { - args: [], - ignore: ['test/**/*', 'util/**/*', 'dev-util/**/*'], - // nodeArgs: ['--debug'], - delayTime: 1, - env: { - PORT: 3000 - }, - cwd: __dirname - } - } - }, - concurrent: { - tasks: ['nodemon', 'watch'], - options: { - logConcurrentOutput: true - } - }, - env: { - test: { - NODE_ENV: 'test' - } - }, - markdown: { - all: { - files: [ - { - expand: true, - src: 'README.md', - dest: '.', - ext: '.html' - } - ] - } - } - }); - - //Making grunt default to force in order not to break the project. - grunt.option('force', true); - - //Default task(s). - grunt.registerTask('default', ['concurrent']); - - //Test task. - grunt.registerTask('test', ['env:test', 'mochaTest']); -}; diff --git a/index.js b/index.js index 53c65df7..0085ddcf 100755 --- a/index.js +++ b/index.js @@ -20,8 +20,8 @@ program // text title console.log( - 'bitcore-node -\n\t\t\t\t\t\tv%s\n', config.version); + 'bitcore-node', +'\n\t\t\t\t\t\tv%s\n', config.version); program.on('--help', function() { logger.info('\n# Configuration:\n\ \tBLOCKCHAIN_API_NETWORK (Network): %s\n\ diff --git a/package.json b/package.json index 1bffc6a6..17c7fef6 100644 --- a/package.json +++ b/package.json @@ -71,23 +71,17 @@ "xmlhttprequest": "~1.6.0" }, "devDependencies": { - "gulp": "^3.8.11", - "gulp-mocha": "^2.0.0", + "gulp": "^3.8.10", + "gulp-bump": "^0.1.11", "gulp-coveralls": "^0.1.3", - "gulp-jshint": "^1.9.2", - "gulp-shell": "^0.3.0", + "gulp-jshint": "^1.9.0", + "gulp-mocha": "^2.0.0", + "gulp-shell": "^0.2.10", + "istanbul": "^0.3.5", + "mocha": "^2.0.1", + "plato": "^1.3.0", "chai": "*", - "grunt": "~0.4.2", - "grunt-cli": "~0.1.11", - "grunt-concurrent": "~0.4.2", - "grunt-contrib-jshint": "~0.8.0", - "grunt-contrib-watch": "~0.5.3", - "grunt-env": "~0.4.1", - "grunt-markdown": "~0.5.0", - "grunt-mocha-test": "~0.8.1", - "grunt-nodemon": "~0.2.0", "memdown": "^0.10.2", - "run-sequence": "^1.0.2", "should": "^2.1.1", "sinon": "^1.10.3" }