mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Drop lodash (#16110)
This commit is contained in:
@@ -102,7 +102,6 @@ module PrettyText
|
||||
|
||||
ctx_load(ctx, "#{Rails.root}/app/assets/javascripts/discourse-loader.js")
|
||||
ctx_load(ctx, "#{Rails.root}/app/assets/javascripts/handlebars-shim.js")
|
||||
ctx_load(ctx, "vendor/assets/javascripts/lodash.js")
|
||||
ctx_load(ctx, "vendor/assets/javascripts/xss.min.js")
|
||||
ctx.load("#{Rails.root}/lib/pretty_text/vendor-shims.js")
|
||||
ctx_load_manifest(ctx, "pretty-text-bundle.js")
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user