Skip to content

Commit 46e820f

Browse files
fblundunalexanderdean
authored andcommitted
Renamed /dist to /deploy (closes snowplow#216)
1 parent f78c8f1 commit 46e820f

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

CHANGELOG

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Improved document height detection (#236) (TODO)
1010
Fixed SauceLabs red status (#235) (TODO)
1111
Added tests for base64 encoding weird characters (#234) (TODO)
1212
Fixed CloudFront cache invalidation (#230) (TODO)
13-
Renamed /dist to /deploy (#216) (TODO)
13+
Renamed /dist to /deploy (#216)
1414
Moved context querystring to end of JS-generated beacons (#204) (TODO)
1515
Added pageUnloadGuard to wait until outbound queue is empty before unloading (#202) (TODO)
1616
Added event_id generation (#190) (TODO)

Gruntfile.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ module.exports = function(grunt) {
9191
browserify: {
9292
main: {
9393
files: {
94-
'dist/bundle.js': ['src/js/init.js']
94+
'deploy/bundle.js': ['src/js/init.js']
9595
}
9696
},
9797
test: {
@@ -103,14 +103,14 @@ module.exports = function(grunt) {
103103
},
104104

105105
concat: {
106-
dist: {
106+
deploy: {
107107
options: {
108108
'report': 'gzip',
109109
'banner': '<%= banner %>',
110110
'process': true
111111
},
112-
src: ['dist/bundle.js'],
113-
dest: 'dist/snowplow.js'
112+
src: ['deploy/bundle.js'],
113+
dest: 'deploy/snowplow.js'
114114
},
115115
tag: {
116116
options: {
@@ -122,15 +122,15 @@ module.exports = function(grunt) {
122122
},
123123

124124
min: {
125-
dist: {
125+
deploy: {
126126
options: {
127127
linebreak: 1000,
128128
report: 'gzip'
129129
},
130130
files: [
131131
{
132-
src: 'dist/snowplow.js',
133-
dest: 'dist/sp.js'
132+
src: 'deploy/snowplow.js',
133+
dest: 'deploy/sp.js'
134134
}
135135
]
136136
},
@@ -198,7 +198,7 @@ module.exports = function(grunt) {
198198
},
199199
upload: [
200200
{
201-
src: 'dist/sp.js',
201+
src: 'deploy/sp.js',
202202
dest: '<%= pkg.version %>/sp.js'
203203
}
204204
]
@@ -211,7 +211,7 @@ module.exports = function(grunt) {
211211
},
212212
upload: [
213213
{
214-
src: 'dist/sp.js',
214+
src: 'deploy/sp.js',
215215
dest: '<%= pkg.pinnedVersion %>/sp.js'
216216
}
217217
]
@@ -243,9 +243,9 @@ module.exports = function(grunt) {
243243
});
244244
});
245245

246-
grunt.registerTask('default', 'Build lodash, Browserify, add banner, and minify', ['lodash', 'browserify:main', 'concat:dist', 'min:dist']);
247-
grunt.registerTask('publish', 'Upload to S3 and invalidate Cloudfront (full semantic version only)', ['upload_setup', 'lodash', 'browserify:main', 'concat:dist', 'min:dist', 's3:not_pinned', 'invalidate_cloudfront:not_pinned']);
248-
grunt.registerTask('publish-pinned', 'Upload to S3 and invalidate Cloudfront (full semantic version and semantic major version)', ['upload_setup', 'lodash', 'browserify:main', 'concat:dist', 'min:dist', 's3', 'invalidate_cloudfront']);
246+
grunt.registerTask('default', 'Build lodash, Browserify, add banner, and minify', ['lodash', 'browserify:main', 'concat:deploy', 'min:deploy']);
247+
grunt.registerTask('publish', 'Upload to S3 and invalidate Cloudfront (full semantic version only)', ['upload_setup', 'lodash', 'browserify:main', 'concat:deploy', 'min:deploy', 's3:not_pinned', 'invalidate_cloudfront:not_pinned']);
248+
grunt.registerTask('publish-pinned', 'Upload to S3 and invalidate Cloudfront (full semantic version and semantic major version)', ['upload_setup', 'lodash', 'browserify:main', 'concat:deploy', 'min:deploy', 's3', 'invalidate_cloudfront']);
249249
grunt.registerTask('test', 'Intern tests', ['browserify:test', 'intern']);
250250
grunt.registerTask('travis', 'Intern tests for Travis CI', ['lodash','browserify:test','intern']);
251251
grunt.registerTask('tags', 'Minifiy the Snowplow invocation tag', ['min:tag', 'concat:tag']);
File renamed without changes.

0 commit comments

Comments
 (0)