Skip to content

Commit

Permalink
Update bundle names
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Delerme committed Sep 19, 2019
1 parent 6674805 commit 9bafb89
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .size-limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ module.exports = [
path: 'dist/answers.min.js',
limit: '100 KB'
},
{
path: 'dist/answers-modern.min.js',
limit: '100kb'
},
{
path: 'dist/answerstemplates.compiled.min.js',
limit: '100 KB'
Expand Down
12 changes: 6 additions & 6 deletions conf/gulp-tasks/library.gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function bundle () {
})
]
})
.pipe(source('answers.js'))
.pipe(source('answers-modern.js'))
.pipe(dest('dist'));
}

Expand Down Expand Up @@ -103,20 +103,20 @@ function legacyBundle () {
})
]
})
.pipe(source('answers-legacy.js'))
.pipe(source('answers.js'))
.pipe(dest('dist'));
}

function minifyJS () {
return src('./dist/answers.js')
.pipe(rename('answers.min.js'))
return src('./dist/answers-modern.js')
.pipe(rename('answers-modern.min.js'))
.pipe(uglify())
.pipe(dest('dist'));
}

function minifyLegacy () {
return src('./dist/answers-legacy.js')
.pipe(rename('answers-legacy.min.js'))
return src('./dist/answers.js')
.pipe(rename('answers.min.js'))
.pipe(uglify())
.pipe(dest('dist'));
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/constants.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @module */

/** The current lib version, reported with errors and analytics */
export const LIB_VERSION = 'v0.8.2';
export const LIB_VERSION = 'v0.8.6';

/** The base url for the api backend */
export const API_BASE_URL = 'https://liveapi.yext.com';
Expand Down

0 comments on commit 9bafb89

Please sign in to comment.