diff --git a/Gruntfile.js b/Gruntfile.js index c2bb8bf..8690e32 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -17,6 +17,15 @@ module.exports = function(grunt) { // Project configuration. grunt.initConfig({ + shell: { + options: { + stderr: false + }, + target: { + command: 'dir=$(pwd) && cd node_modules/mailreader/ && npm install --production && cd $dir' + } + }, + connect: { dev: { options: { @@ -420,12 +429,13 @@ module.exports = function(grunt) { grunt.loadNpmTasks('grunt-manifest'); grunt.loadNpmTasks('grunt-mocha-phantomjs'); grunt.loadNpmTasks('grunt-exorcise'); + grunt.loadNpmTasks('grunt-shell'); // Build tasks grunt.registerTask('dist-css', ['sass', 'autoprefixer', 'csso']); grunt.registerTask('dist-js', ['browserify', 'exorcise', 'uglify']); grunt.registerTask('dist-copy', ['copy']); - grunt.registerTask('dist', ['clean', 'dist-css', 'dist-js', 'dist-copy', 'manifest']); + grunt.registerTask('dist', ['clean', 'shell', 'dist-css', 'dist-js', 'dist-copy', 'manifest']); // Test/Dev tasks grunt.registerTask('dev', ['connect:dev']); diff --git a/package.json b/package.json index 9d8ca7f..03a5c05 100644 --- a/package.json +++ b/package.json @@ -24,29 +24,28 @@ }, "scripts": { "test": "grunt && grunt test", - "start": "node server.js", - "postinstall": "dir=$(pwd) && cd node_modules/mailreader/ && npm install --production && cd $dir" + "start": "node server.js" }, "dependencies": { - "axe-logger": "~0.0.2", "compression": "^1.0.11", "config": "^1.0.2", + "express": "^4.8.3", + "morgan": "^1.2.3", + "npmlog": "^0.1.1", + "socket.io": "^1.0.6" + }, + "devDependencies": { + "axe-logger": "~0.0.2", "crypto-lib": "~0.2.1", "dompurify": "~0.4.2", - "express": "^4.8.3", "imap-client": "~0.4.3", "jquery": "~2.1.1", "mailreader": "~0.4.0", - "morgan": "^1.2.3", "ng-infinite-scroll": "~1.1.2", - "npmlog": "^0.1.1", "pgpbuilder": "~0.4.0", "pgpmailer": "~0.4.0", - "socket.io": "^1.0.6", "tcp-socket": "~0.3.13", - "wo-smtpclient": "^0.3.8" - }, - "devDependencies": { + "wo-smtpclient": "^0.3.8", "angularjs": "https://github.com/whiteout-io/angular.js/tarball/npm-version", "browsercrow": "https://github.com/whiteout-io/browsercrow/tarball/master", "browsersmtp": "https://github.com/whiteout-io/browsersmtp/tarball/master", @@ -62,6 +61,7 @@ "grunt-contrib-sass": "~0.7.3", "grunt-contrib-uglify": "^0.6.0", "grunt-contrib-watch": "~0.5.3", + "grunt-shell": "~1.1.1", "grunt-csso": "~0.6.1", "grunt-exorcise": "^0.2.0", "grunt-manifest": "^0.4.0", @@ -70,4 +70,4 @@ "sinon": "~1.7.3", "time-grunt": "^1.0.0" } -} +} \ No newline at end of file