Skip to content

Commit

Permalink
Merge pull request #98 from sambostock/min-dot-js
Browse files Browse the repository at this point in the history
Update GraphiQL & React, and use `graphiql.min.{js,css}` assets
  • Loading branch information
rmosolgo committed Feb 23, 2024
2 parents e5f1ad9 + 1c59acc commit 8e9420a
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 71,587 deletions.
4 changes: 2 additions & 2 deletions Rakefile
Expand Up @@ -48,8 +48,8 @@ task :update_graphiql do
new_css_versions["graphiql"] = new_version

puts "Copying GraphiQL #{new_version}"
FileUtils.cp("./graphiql.js", "../../../app/assets/javascripts/graphiql/rails/graphiql-#{new_version}.js")
FileUtils.cp("./graphiql.css", "../../../app/assets/stylesheets/graphiql/rails/graphiql-#{new_version}.css")
FileUtils.cp("./graphiql.min.js", "../../../app/assets/javascripts/graphiql/rails/graphiql-#{new_version}.js")
FileUtils.cp("./graphiql.min.css", "../../../app/assets/stylesheets/graphiql/rails/graphiql-#{new_version}.css")
end

FileUtils.cd("./node_modules/react") do
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/graphiql/rails/application.js
@@ -1,5 +1,5 @@
//= require ./react-17.0.2
//= require ./react-dom-17.0.2
//= require ./fetch-0.10.1
//= require ./graphiql-2.4.0
//= require ./graphiql-2.4.1
//= require ./graphiql_show

0 comments on commit 8e9420a

Please sign in to comment.