DEV: Drop lodash (#16110)

This commit is contained in:
Jarek Radosz
2022-03-06 18:15:25 +01:00
committed by GitHub
parent d5be02dac5
commit 3db4b3bc5e
7 changed files with 4 additions and 8254 deletions

View File

@ -110,9 +110,6 @@ def dependencies
}, {
source: 'moment-timezone/builds/moment-timezone-with-data-10-year-range.js',
destination: 'moment-timezone-with-data.js'
}, {
source: 'lodash.js',
destination: 'lodash.js'
}, {
source: '@discourse/moment-timezone-names-translations/locales/.',
destination: 'moment-timezone-names-locale'
@ -316,12 +313,6 @@ task 'javascript:update' => 'clean_up' do
end
end
# lodash.js needs building
if src.include? "lodash.js"
puts "Building custom lodash.js build"
system('yarn run lodash include="escapeRegExp,each,filter,map,range,first,isEmpty,chain,extend,every,omit,merge,union,sortBy,uniq,intersection,reject,compact,reduce,debounce,throttle,values,pick,keys,flatten,min,max,isArray,delay,isString,isEqual,without,invoke,clone,findIndex,find,groupBy" minus="template" -d -o "node_modules/lodash.js"')
end
# we need a custom build of uppy because we cannot import
# their modules easily, using browserify to do so
if src.include? "custom-uppy-build"