Skip to content

Commit

Permalink
fix(version): using include-version to embed version in built bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Apr 7, 2016
1 parent 8c12fb2 commit 46d76f6
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 22 deletions.
15 changes: 0 additions & 15 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,6 @@ module.exports = function(grunt) {
}
},

'string-replace': {
dist: {
files: {
'dist/check-more-types.js': 'dist/check-more-types.js'
},
options: {
replacements: [{
pattern: '{{ packageVersion }}',
replacement: pkg.version
}]
}
}
},

xplain: {
options: {
framework: 'jasmine'
Expand Down Expand Up @@ -125,7 +111,6 @@ module.exports = function(grunt) {

grunt.registerTask('test', ['gt']);
grunt.registerTask('doc', ['xplain', 'toc', 'readme']);
grunt.registerTask('version', ['string-replace']);
grunt.registerTask('default',
['nice-package', 'deps-ok', 'sync', 'uglify', 'doc']);
};
2 changes: 1 addition & 1 deletion dist/check-more-types.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ return /******/ (function(modules) { // webpackBootstrap

[low, mid, predicates, git, internet, arrays, logic, schema].forEach(mixCollection)

check.VERSION = '{{ packageVersion }}'
check.VERSION = '{{ include-version }}'

module.exports = check

Expand Down
2 changes: 1 addition & 1 deletion dist/check-more-types.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 46d76f6

Please sign in to comment.