more work on build process

This commit is contained in:
Torkel Ödegaard
2015-01-01 15:28:28 +01:00
parent 33e3fc70b2
commit 7c72705bc5
3 changed files with 33 additions and 25 deletions

View File

@ -1,31 +1,11 @@
module.exports = function(grunt) {
// build, then zip and upload to s3
grunt.registerTask('distribute', [
'distribute:load_s3_config',
'build',
'compress:zip',
'compress:tgz',
's3:dist',
'clean:temp'
]);
"use strict";
// build, then zip and upload to s3
grunt.registerTask('release', [
// 'distribute:load_s3_config',
'build',
'compress:zip_release',
'compress:tgz_release',
//'s3:release',
//'clean:temp'
]);
// collect the key and secret from the .aws-config.json file, finish configuring the s3 task
grunt.registerTask('distribute:load_s3_config', function () {
var config = grunt.file.readJSON('.aws-config.json');
grunt.config('s3.options', {
key: config.key,
secret: config.secret
});
});
}
};