Skip to content

Commit

Permalink
Update example js file to have build with polfills
Browse files Browse the repository at this point in the history
`grunt build` will now build all bundles
for #52
  • Loading branch information
okcoker committed May 16, 2016
1 parent aa27fb3 commit 2174c26
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
20 changes: 16 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ module.exports = function(grunt) {
files: {
'dist/taggle-ie8.min.js': [
'tmp/taggle-ie8.concat.js'
],

// Add in complete bundle to example folder
'assets/js/taggle.min.js': [
'tmp/taggle-ie8.concat.js'
]
}
},
Expand Down Expand Up @@ -143,12 +148,19 @@ module.exports = function(grunt) {
});

// register task
grunt.registerTask('build', ['test', 'uglify:main']);
grunt.registerTask('ie9', ['test', 'css', 'concat:ie9', 'uglify:ie9', 'clean']);
grunt.registerTask('ie8', ['test', 'css', 'concat:ie8', 'uglify:ie8', 'clean']);
grunt.registerTask('css', ['sass', 'postcss']);
grunt.registerTask('build', ['test', 'css', 'modern', 'ie9', 'ie8']);
grunt.registerTask('build-modern', ['test', 'css', 'uglify:main']);
grunt.registerTask('build-ie9', ['test', 'css', 'ie9']);
grunt.registerTask('build-ie8', ['test', 'css', 'ie8']);
grunt.registerTask('test', ['eslint', 'karma']);
grunt.registerTask('css', ['sass', 'postcss']);
grunt.registerTask('dev', ['watch']);

// Intermediate tasks
grunt.registerTask('modern', ['uglify:main']);
grunt.registerTask('ie9', ['concat:ie9', 'uglify:ie9', 'clean']);
grunt.registerTask('ie8', ['concat:ie8', 'uglify:ie8', 'clean']);

grunt.registerTask('default', ['build']);

};
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Taggle comes with optional polyfills in order to add support for IE8 and IE9. If
After cloning the repo you can build minified versions of the library by:

- npm install
- grunt uglify
- grunt build


## License
Expand Down
4 changes: 2 additions & 2 deletions assets/js/taggle.min.js

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

0 comments on commit 2174c26

Please sign in to comment.