-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGruntFile.js
More file actions
70 lines (69 loc) · 1.73 KB
/
Copy pathGruntFile.js
File metadata and controls
70 lines (69 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
module.exports = (grunt) => {
grunt.initConfig({
aws: grunt.file.readJSON('config/aws-keys.json'),
aws_s3: {
options: {
accessKeyId: '<%= aws.AWSAccessKeyId %>',
secretAccessKey: '<%= aws.AWSSecretKey %>'
},
dist: {
options: {
bucket: 'bullseye-assets',
overwrite: true
},
files: [
{
expand: true,
cwd: './public/styles',
src: 'proxyStyles.css',
rename: function() {
return 'proxyStyles.css'
}
},
{
expand: true,
cwd: '../item-checkout/public',
src: 'app.bundle.js',
rename: function() {
return 'checkout.bundle.js'
}
},
{
expand: true,
cwd: '../item-images/public',
src: 'app.bundle.js',
rename: function() {
return 'images.bundle.js'
}
},
{
expand: true,
cwd: '../item-details/client/dist',
src: 'bundle.js',
rename: function() {
return 'details.bundle.js'
}
},
{
expand: true,
cwd: '../item-details/client/dist',
src: 'styles.css',
rename: function() {
return 'styles.css'
}
},
{
expand: true,
cwd: '../item-reviews/client/dist',
src: 'bundle.js',
rename: function() {
return 'reviews.bundle.js'
}
}
]
}
}
});
grunt.loadNpmTasks('grunt-aws-s3');
grunt.registerTask( 'default', 'aws_s3:dist');
}