DEV: Remove handlebars from the old package.json (#17319)

This commit is contained in:
Jarek Radosz 2022-07-04 15:05:03 +02:00 committed by GitHub
parent 999865401c
commit c5f0aa2f32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 3 additions and 5218 deletions

View File

@ -4,7 +4,7 @@
class Barber::Precompiler
def sources
[File.open("#{Rails.root}/vendor/assets/javascripts/handlebars.js"),
[File.open("#{Rails.root}/app/assets/javascripts/node_modules/handlebars/dist/handlebars.js"),
precompiler]
end

View File

@ -86,10 +86,6 @@ def dependencies
}, {
source: 'pikaday/pikaday.js',
public: true
}, {
source: 'handlebars/dist/handlebars.js'
}, {
source: 'handlebars/dist/handlebars.runtime.js'
}, {
source: '@highlightjs/cdn-assets/.',
destination: 'highlightjs'

View File

@ -16,7 +16,6 @@
"chartjs-plugin-datalabels": "^2.0.0",
"diffhtml": "^1.0.0-beta.20",
"eslint-config-discourse": "^2.0.0",
"handlebars": "^4.7.7",
"magnific-popup": "1.1.0",
"markdown-it": "13.0.1",
"moment": "2.29.2",

View File

@ -28,7 +28,7 @@ describe ThemeJavascriptCompiler do
let(:mini_racer) {
ctx = MiniRacer::Context.new
ctx.eval(File.open("#{Rails.root}/vendor/assets/javascripts/handlebars.js").read)
ctx.eval(File.open("#{Rails.root}/app/assets/javascripts/node_modules/handlebars/dist/handlebars.js").read)
ctx.eval(helpers)
ctx
}

File diff suppressed because one or more lines are too long

View File

@ -1079,7 +1079,7 @@ globby@^11.0.1:
merge2 "^1.3.0"
slash "^3.0.0"
handlebars@^4.7.4, handlebars@^4.7.7:
handlebars@^4.7.4:
version "4.7.7"
resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.7.7.tgz#9ce33416aad02dbd6c8fafa8240d5d98004945a1"
integrity sha512-aAcXm5OAfE/8IXkcZvCepKU3VzW1/39Fb5ZuqMtgI/hT8X2YgoMvBY5dLhq/cpOvw7Lk1nK/UF71aLG/ZnVYRA==