Remove grunt

This commit is contained in:
Yemel Jardi 2015-02-11 11:59:35 -03:00
parent f375612521
commit 49733ea5a8
4 changed files with 12 additions and 110 deletions

2
.gitignore vendored
View File

@ -15,6 +15,8 @@ results
build build
node_modules node_modules
coverage
report
# extras # extras
*.swp *.swp

View File

@ -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']);
};

View File

@ -20,8 +20,8 @@ program
// text title // text title
console.log( console.log(
'bitcore-node 'bitcore-node',
\n\t\t\t\t\t\tv%s\n', config.version); '\n\t\t\t\t\t\tv%s\n', config.version);
program.on('--help', function() { program.on('--help', function() {
logger.info('\n# Configuration:\n\ logger.info('\n# Configuration:\n\
\tBLOCKCHAIN_API_NETWORK (Network): %s\n\ \tBLOCKCHAIN_API_NETWORK (Network): %s\n\

View File

@ -71,23 +71,17 @@
"xmlhttprequest": "~1.6.0" "xmlhttprequest": "~1.6.0"
}, },
"devDependencies": { "devDependencies": {
"gulp": "^3.8.11", "gulp": "^3.8.10",
"gulp-mocha": "^2.0.0", "gulp-bump": "^0.1.11",
"gulp-coveralls": "^0.1.3", "gulp-coveralls": "^0.1.3",
"gulp-jshint": "^1.9.2", "gulp-jshint": "^1.9.0",
"gulp-shell": "^0.3.0", "gulp-mocha": "^2.0.0",
"gulp-shell": "^0.2.10",
"istanbul": "^0.3.5",
"mocha": "^2.0.1",
"plato": "^1.3.0",
"chai": "*", "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", "memdown": "^0.10.2",
"run-sequence": "^1.0.2",
"should": "^2.1.1", "should": "^2.1.1",
"sinon": "^1.10.3" "sinon": "^1.10.3"
} }