From e907777760fd5923470013e78191da0d63b72cad Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Fri, 22 Jan 2016 14:20:06 +0700 Subject: [PATCH] Remove unused npm_pack grunt task --- Gruntfile.js | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 7a0de57a..1677af4a 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -228,32 +228,13 @@ module.exports = function(grunt) { } grunt.registerTask('default', 'Build OpenPGP.js', function() { - grunt.task.run(['clean', 'copy:zlib', 'browserify', 'replace', 'uglify', 'npm_pack']); + grunt.task.run(['clean', 'copy:zlib', 'browserify', 'replace', 'uglify']); //TODO jshint is not run because of too many discovered issues, once these are addressed it should autorun grunt.log.ok('Before Submitting a Pull Request please also run `grunt jshint`.'); }); grunt.registerTask('documentation', ['jsdoc']); - // Alias the `npm_pack` task to run `npm pack` - grunt.registerTask('npm_pack', 'npm pack', function () { - var done = this.async(); - var npm = require('child_process').exec('npm pack ../', { cwd: 'dist'}, function (err, stdout) { - var package = stdout; - if (err === null) { - var install = require('child_process').exec('npm install dist/' + package, function (err) { - done(err); - }); - install.stdout.pipe(process.stdout); - install.stderr.pipe(process.stderr); - } else { - done(err); - } - }); - npm.stdout.pipe(process.stdout); - npm.stderr.pipe(process.stderr); - }); - grunt.event.on('coverage', function(lcov, done){ require('coveralls').handleInput(lcov, function(err){ if (err) {