Skip to content

Commit

Permalink
Replaces deprecated s3 plugin with good one for #40
Browse files Browse the repository at this point in the history
  • Loading branch information
Zoltan Olah committed Mar 6, 2015
1 parent f35d4f7 commit 9e5ad71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 21 deletions.
26 changes: 6 additions & 20 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,30 +85,16 @@ module.exports = function (grunt) {
},
s3: {
options: {
key: s3Config.key,
secret: s3Config.secret,
accessKeyId: s3Config.key,
secretAccessKey: s3Config.secret,
bucket: s3Config.bucket,
region: s3Config.region || 'us-west-2',
access: 'public-read',
headers: {
'Content-Type': 'text/html'
},
// headers: {
// // Two Year cache policy (1000 * 60 * 60 * 24 * 730)
// "Cache-Control": "max-age=630720000, public",
// "Expires": new Date(Date.now() + 63072000000).toUTCString()
// },
maxOperations: 10,
verify: true,
gzipExclude: ['.jpg', '.jpeg', '.png']
mimeDefault: 'text/html' // important for pages without .html extension
},
deploy: {
sync: [{
src: 'static/**/*',
dest: '/',
rel: path.join(process.cwd(), "static"),
gzip: true
}]
cwd: "static/",
src: "**"
}
}
};
Expand All @@ -127,7 +113,7 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-nodemon');
grunt.loadNpmTasks('grunt-webpack');
grunt.loadNpmTasks('grunt-execute');
grunt.loadNpmTasks('grunt-s3');
grunt.loadNpmTasks('grunt-aws');
grunt.loadNpmTasks('grunt-npm-install');

grunt.registerTask('default', ['clean', 'npm-install', 'concurrent:dev']);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"css-loader": "^0.9.1",
"extract-text-webpack-plugin": "^0.3.8",
"grunt": "^0.4.5",
"grunt-aws": "^0.4.0",
"grunt-cli": "^0.1.13",
"grunt-concurrent": "^1.0.0",
"grunt-contrib-clean": "^0.6.0",
Expand All @@ -28,7 +29,6 @@
"grunt-execute": "^0.2.2",
"grunt-nodemon": "^0.3.0",
"grunt-npm-install": "^0.2.0",
"grunt-s3": "^0.2.0-alpha.3",
"grunt-webpack": "^1.0.8",
"jsx-loader": "^0.12.0",
"less-loader": "^2.0.0",
Expand Down

0 comments on commit 9e5ad71

Please sign in to comment.