/
githubmirror
/
moment
Обзор
Документация
Войти
/
githubmirror
/
moment
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
tasks/update_index.js
32 строки
736 B
Iskren Chernev
[pkg] Publish bundled esm under dist/
04 май 2020, 15:14
04 май 2020, 15:14
87994b7
Код
Авторство
О чём код?
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.config('copy.esm', { expand: true, cwd: 'build/esm', src: ['moment.js'], dest: 'dist', }); grunt.config('copy.esm-locales', { expand: true, cwd: 'src', src: ['locale/*.js'], dest: 'dist', }); grunt.registerTask('update-index', [ 'copy:index-files', 'copy:esm', 'copy:esm-locales', ]); };