Skip to content

Instantly share code, notes, and snippets.

@theodesp
Created May 29, 2019 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theodesp/da75bd60746bce93e5e8b3a5a41d5a6c to your computer and use it in GitHub Desktop.
Save theodesp/da75bd60746bce93e5e8b3a5a41d5a6c to your computer and use it in GitHub Desktop.
gulp.task('copy:globalize:deps', () =>
gulp.src([
'node_modules/cldrjs/dist/cldr.js',
'node_modules/cldrjs/dist/cldr/event.js',
'node_modules/cldrjs/dist/cldr/supplemental.js',
]).pipe(plugins().concat('cldr.js'))
.pipe(gulp.dest(`${dirs.dist}/js/vendor`))
);
gulp.task('copy:globalize', () =>
gulp.src([
'node_modules/globalize/dist/globalize.js',
'node_modules/globalize/dist/globalize/message.js',
'node_modules/globalize/dist/globalize/number.js',
'node_modules/globalize/dist/globalize/plural.js',
'node_modules/globalize/dist/globalize/date.js',
'node_modules/globalize/dist/globalize/currency.js',
'node_modules/globalize/dist/globalize/relative-time.js',
'node_modules/globalize/dist/globalize/unit.js',
]).pipe(plugins().concat('globalize.js'))
.pipe(gulp.dest(`${dirs.dist}/js/vendor`))
);
...
gulp.task('copy', [
'copy:.htaccess',
'copy:index.html',
'copy:jquery',
'copy:globalize:deps',
'copy:globalize',
'copy:license',
'copy:main.css',
'copy:misc',
'copy:normalize'
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment