diff options
Diffstat (limited to 'library/moment/tasks/update_index.js')
-rw-r--r-- | library/moment/tasks/update_index.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/library/moment/tasks/update_index.js b/library/moment/tasks/update_index.js new file mode 100644 index 000000000..c866e2694 --- /dev/null +++ b/library/moment/tasks/update_index.js @@ -0,0 +1,16 @@ +module.exports = function (grunt) { + grunt.config('copy.index-files', { + expand: true, + cwd: 'build/umd/', + src: [ + 'moment.js', + 'locale/*.js', + 'min/locales.js', + 'min/moment-with-locales.js', + 'min/tests.js' + ], + dest: '.' + }); + + grunt.registerTask('update-index', ['copy:index-files']); +}; |