Remove grunt
This commit is contained in:
parent
f375612521
commit
49733ea5a8
2
.gitignore
vendored
2
.gitignore
vendored
@ -15,6 +15,8 @@ results
|
||||
build
|
||||
|
||||
node_modules
|
||||
coverage
|
||||
report
|
||||
|
||||
# extras
|
||||
*.swp
|
||||
|
||||
94
Gruntfile.js
94
Gruntfile.js
@ -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']);
|
||||
};
|
||||
4
index.js
4
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\
|
||||
|
||||
22
package.json
22
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"
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user