Skip to content

Commit

Permalink
Update package_audit for vue.global and vuetify-labs
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-pratt committed Dec 16, 2024
1 parent 5ff0cb2 commit e3d3e92
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,10 @@
"vite": "5.4.11",
"vue": "3.5.13",
"vue-eslint-parser": "9.4.3"
}
},
"peerDependencies": {
"single-spa": "6.0.3",
"vue-router": "4.4.4",
"vuex": "4.1.0"
},
}
7 changes: 5 additions & 2 deletions scripts/release/package_audit_lib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -422,15 +422,18 @@ def check_tool_base(path, base_pkgs)
# Handle nuances in individual packages
# Search here to get the URLs: https://cdnjs.com/
case package
when 'vue'
`curl https://cdnjs.cloudflare.com/ajax/libs/#{package}/#{latest}/#{package}.global.min.js --output public/js/#{package}.global-#{latest}.min.js`
`curl https://cdnjs.cloudflare.com/ajax/libs/#{package}/#{latest}/#{package}.global.prod.min.js --output public/js/#{package}.global.prod-#{latest}.min.js`
when 'single-spa'
`curl https://cdnjs.cloudflare.com/ajax/libs/#{package}/#{latest}/system/#{package}.min.js --output public/js/#{package}-#{latest}.min.js`
`curl https://cdnjs.cloudflare.com/ajax/libs/#{package}/#{latest}/system/#{package}.min.js.map --output public/js/#{package}-#{latest}.min.js.map`
when 'systemjs'
`curl https://cdnjs.cloudflare.com/ajax/libs/#{package}/#{latest}/system.min.js --output public/js/#{package}-#{latest}.min.js`
when 'vuetify'
FileUtils.rm(Dir["public/css/vuetify-*"][0]) # Delete the existing vuetify css
`curl https://cdnjs.cloudflare.com/ajax/libs/#{package}/#{latest}/#{package}.min.css --output public/css/#{package}-#{latest}.min.css`
`curl https://cdnjs.cloudflare.com/ajax/libs/#{package}/#{latest}/#{package}.min.js --output public/js/#{package}-#{latest}.min.js`
`curl https://cdnjs.cloudflare.com/ajax/libs/#{package}/#{latest}/#{package}-labs.min.css --output public/css/#{package}-labs-#{latest}.min.css`
`curl https://cdnjs.cloudflare.com/ajax/libs/#{package}/#{latest}/#{package}-labs.min.js --output public/js/#{package}-labs-#{latest}.min.js`
when 'import-map-overrides'
`curl https://cdn.jsdelivr.net/npm/#{package}@#{latest}/dist/import-map-overrides.js --output public/js/#{package}-#{latest}.min.js`
`curl https://cdn.jsdelivr.net/npm/#{package}@#{latest}/dist/import-map-overrides.js.map --output public/js/#{package}-#{latest}.min.js.map`
Expand Down

0 comments on commit e3d3e92

Please sign in to comment.