Skip to content

Commit e503e24

Browse files
authored
Merge pull request #128 from simonihmig/json
Add .json to default `filePattern`
2 parents 96387b7 + e527e4a commit e503e24

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ A directory within the `bucket` that the files should be uploaded in to. It shou
129129

130130
Files that match this pattern will be uploaded to S3. The file pattern must be relative to `distDir`. For an advanced usage, you may want to check out [isaacs/minimatch](https://github.com/isaacs/minimatch#usage)'s documentation.
131131

132-
*Default:* `'**/*.{js,css,png,gif,ico,jpg,map,xml,txt,svg,swf,eot,ttf,woff,woff2,otf,wasm}'`
132+
*Default:* `'**/*.{js,css,png,gif,ico,jpg,map,xml,txt,svg,swf,eot,ttf,woff,woff2,otf,wasm,json}'`
133133

134134
### fileIgnorePattern
135135

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = {
1616
var DeployPlugin = DeployPluginBase.extend({
1717
name: options.name,
1818
defaultConfig: {
19-
filePattern: '**/*.{js,css,png,gif,ico,jpg,map,xml,txt,svg,swf,eot,ttf,woff,woff2,otf,wasm}',
19+
filePattern: '**/*.{js,css,png,gif,ico,jpg,map,xml,txt,svg,swf,eot,ttf,woff,woff2,otf,wasm,json}',
2020
fileIgnorePattern: null,
2121
prefix: '',
2222
profile: '',

tests/index-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ describe('s3 plugin', function() {
195195
plugin.beforeHook(context);
196196
plugin.configure(context);
197197

198-
assert.equal(context.config.s3.filePattern, '**/*.{js,css,png,gif,ico,jpg,map,xml,txt,svg,swf,eot,ttf,woff,woff2,otf,wasm}');
198+
assert.equal(context.config.s3.filePattern, '**/*.{js,css,png,gif,ico,jpg,map,xml,txt,svg,swf,eot,ttf,woff,woff2,otf,wasm,json}');
199199
assert.equal(context.config.s3.prefix, '');
200200
assert.equal(context.config.s3.cacheControl, 'max-age=63072000, public');
201201
assert.equal(new Date(context.config.s3.expires).getTime(), new Date('Tue, 01 Jan 2030 00:00:00 GMT').getTime());

0 commit comments

Comments
 (0)