Skip to content

Commit

Permalink
Bump import-map-overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
jmthomas committed Dec 17, 2024
1 parent 7585ffd commit acaa19c
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<link rel="preload" href="/js/vue-router-4.4.4.min.js" as="script" />
<link rel="preload" href="/js/vuex-4.1.0.min.js" as="script" />
<script src="/js/auth.js"></script>
<script src="/js/import-map-overrides-3.1.1.min.js"></script>
<script src="/js/import-map-overrides-4.2.0.min.js"></script>
<!-- systemjs homepage: https://github.com/systemjs/systemjs/releases
We use system.js instead of s.js which includes global and module-types.
We also explicitly use amd (asynchronous module definition) which uses named-register
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<link rel="preload" href="/js/vue-router-4.4.4.min.js" as="script" />
<link rel="preload" href="/js/vuex-4.1.0.min.js" as="script" />
<script src="/js/auth.js"></script>
<script src="/js/import-map-overrides-3.1.1.min.js"></script>
<script src="/js/import-map-overrides-4.2.0.min.js"></script>
<!-- systemjs homepage: https://github.com/systemjs/systemjs/releases
We use system.js instead of s.js which includes global and module-types.
We also explicitly use amd (asynchronous module definition) which uses named-register
Expand Down

This file was deleted.

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

14 changes: 9 additions & 5 deletions scripts/release/package_audit_lib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -387,13 +387,13 @@ def check_tool_base(path, base_pkgs)
FileUtils.rm(existing)

# Now update the files with references to materialdesignicons
files = %w(src/index.ejs src/index-allow-http.ejs)
files = %w(public/index.html public/index-allow-http.html)
# The base also has to update index.html in openc3-tool-base
files << "../packages/openc3-tool-base/public/index.html" unless path.include?('enterprise')
files.each do |filename|
ejs = File.read(filename)
ejs.gsub!(/materialdesignicons-.+.min.css/, "materialdesignicons-#{latest}.min.css")
File.open(filename, 'w') {|file| file.puts ejs }
html = File.read(filename)
html.gsub!(/materialdesignicons-.+.min.css/, "materialdesignicons-#{latest}.min.css")
File.open(filename, 'w') {|file| file.puts html }
end
end

Expand Down Expand Up @@ -421,7 +421,11 @@ def check_tool_base(path, base_pkgs)
# This prevents vue- from matching vue-router-
existing = Dir["public/js/#{alt_package}-[0-9]*"][0]
if !existing
puts "Could not find existing package #{package} in #{Dir.pwd}/public/js"
puts "ERROR: Could not find existing package #{alt_package} in #{Dir.pwd}/public/js"
next
end
if !latest
puts "ERROR: Could not find latest version for #{package} in #{Dir.pwd}/package.json"
next
end
unless existing.include?(latest)
Expand Down

0 comments on commit acaa19c

Please sign in to comment.