mirror of
https://github.com/moparisthebest/mail
synced 2025-02-27 16:21:45 -05:00
Seperate production dependencies in package.json for aws deployment
This commit is contained in:
parent
dd9680f626
commit
65036a5087
12
Gruntfile.js
12
Gruntfile.js
@ -17,6 +17,15 @@ module.exports = function(grunt) {
|
|||||||
// Project configuration.
|
// Project configuration.
|
||||||
grunt.initConfig({
|
grunt.initConfig({
|
||||||
|
|
||||||
|
shell: {
|
||||||
|
options: {
|
||||||
|
stderr: false
|
||||||
|
},
|
||||||
|
target: {
|
||||||
|
command: 'dir=$(pwd) && cd node_modules/mailreader/ && npm install --production && cd $dir'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
connect: {
|
connect: {
|
||||||
dev: {
|
dev: {
|
||||||
options: {
|
options: {
|
||||||
@ -420,12 +429,13 @@ module.exports = function(grunt) {
|
|||||||
grunt.loadNpmTasks('grunt-manifest');
|
grunt.loadNpmTasks('grunt-manifest');
|
||||||
grunt.loadNpmTasks('grunt-mocha-phantomjs');
|
grunt.loadNpmTasks('grunt-mocha-phantomjs');
|
||||||
grunt.loadNpmTasks('grunt-exorcise');
|
grunt.loadNpmTasks('grunt-exorcise');
|
||||||
|
grunt.loadNpmTasks('grunt-shell');
|
||||||
|
|
||||||
// Build tasks
|
// Build tasks
|
||||||
grunt.registerTask('dist-css', ['sass', 'autoprefixer', 'csso']);
|
grunt.registerTask('dist-css', ['sass', 'autoprefixer', 'csso']);
|
||||||
grunt.registerTask('dist-js', ['browserify', 'exorcise', 'uglify']);
|
grunt.registerTask('dist-js', ['browserify', 'exorcise', 'uglify']);
|
||||||
grunt.registerTask('dist-copy', ['copy']);
|
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
|
// Test/Dev tasks
|
||||||
grunt.registerTask('dev', ['connect:dev']);
|
grunt.registerTask('dev', ['connect:dev']);
|
||||||
|
20
package.json
20
package.json
@ -24,29 +24,28 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "grunt && grunt test",
|
"test": "grunt && grunt test",
|
||||||
"start": "node server.js",
|
"start": "node server.js"
|
||||||
"postinstall": "dir=$(pwd) && cd node_modules/mailreader/ && npm install --production && cd $dir"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axe-logger": "~0.0.2",
|
|
||||||
"compression": "^1.0.11",
|
"compression": "^1.0.11",
|
||||||
"config": "^1.0.2",
|
"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",
|
"crypto-lib": "~0.2.1",
|
||||||
"dompurify": "~0.4.2",
|
"dompurify": "~0.4.2",
|
||||||
"express": "^4.8.3",
|
|
||||||
"imap-client": "~0.4.3",
|
"imap-client": "~0.4.3",
|
||||||
"jquery": "~2.1.1",
|
"jquery": "~2.1.1",
|
||||||
"mailreader": "~0.4.0",
|
"mailreader": "~0.4.0",
|
||||||
"morgan": "^1.2.3",
|
|
||||||
"ng-infinite-scroll": "~1.1.2",
|
"ng-infinite-scroll": "~1.1.2",
|
||||||
"npmlog": "^0.1.1",
|
|
||||||
"pgpbuilder": "~0.4.0",
|
"pgpbuilder": "~0.4.0",
|
||||||
"pgpmailer": "~0.4.0",
|
"pgpmailer": "~0.4.0",
|
||||||
"socket.io": "^1.0.6",
|
|
||||||
"tcp-socket": "~0.3.13",
|
"tcp-socket": "~0.3.13",
|
||||||
"wo-smtpclient": "^0.3.8"
|
"wo-smtpclient": "^0.3.8",
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"angularjs": "https://github.com/whiteout-io/angular.js/tarball/npm-version",
|
"angularjs": "https://github.com/whiteout-io/angular.js/tarball/npm-version",
|
||||||
"browsercrow": "https://github.com/whiteout-io/browsercrow/tarball/master",
|
"browsercrow": "https://github.com/whiteout-io/browsercrow/tarball/master",
|
||||||
"browsersmtp": "https://github.com/whiteout-io/browsersmtp/tarball/master",
|
"browsersmtp": "https://github.com/whiteout-io/browsersmtp/tarball/master",
|
||||||
@ -62,6 +61,7 @@
|
|||||||
"grunt-contrib-sass": "~0.7.3",
|
"grunt-contrib-sass": "~0.7.3",
|
||||||
"grunt-contrib-uglify": "^0.6.0",
|
"grunt-contrib-uglify": "^0.6.0",
|
||||||
"grunt-contrib-watch": "~0.5.3",
|
"grunt-contrib-watch": "~0.5.3",
|
||||||
|
"grunt-shell": "~1.1.1",
|
||||||
"grunt-csso": "~0.6.1",
|
"grunt-csso": "~0.6.1",
|
||||||
"grunt-exorcise": "^0.2.0",
|
"grunt-exorcise": "^0.2.0",
|
||||||
"grunt-manifest": "^0.4.0",
|
"grunt-manifest": "^0.4.0",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user