Moved deps.json from inner directory inside src to package root
Easier for external libraries to locate the file
Standard behaviour for any module that implements the app/deps.json standard
Added material design fonts to the file
Altered struct WebDependency
Added property name for better cross applicational integration, both downloading and filtering purposes
Prop kind renamed to type
Added kwarg based constructor as most properties often use default values on creation
Added Dict based constructor, to build objects from individual lines defined in a deps.json descriptor
Improved dependency loading behaviour
Dependencies are, by default, loaded from the package's deps.json
Dependencies can also be loaded from an external deps.json, that adheres to the standard.
Dependency.local_path no longer used for href or src purposes.
This prop will only refer to a resource location in the file system.
Dependency.path should always be used to specify the web location of a resource.
Added method use_local_libs!(naming subject to review) to force the download and rewrite of prop path of each downloaded dependency.
local_path is updated with the file location after Download
path is generated from a base_uri and partial file location. Corresponds to the expected web location of the resource
VueJS does not implement methods to automatically serve this resources over HTTP nor acts as a webserver
Code examples
using VueJS
@show VueJS.DEPENDENCIES
# should print the default dependencies as defined under deps.json
external_deps = "/some/fs/location/deps.json"
VueJS.load_libraries!(external_deps)
# should alter and display `global DEPENDENCIES`
# Updates to library methods
@show VueJS.library("https://cdn.jsdelivr.net/npm/@mdi/font@4.x/fonts/materialdesignicons-webfont.woff2?v=4.9.95")
Proposed changes
deps.json
from inner directory insidesrc
to package rootAltered struct WebDependency
name
for better cross applicational integration, both downloading and filtering purposeskwarg
based constructor as most properties often use default values on creationdeps.json
descriptorImproved dependency loading behaviour
href
orsrc
purposes.Dependency.path
should always be used to specify the web location of a resource.use_local_libs!
(naming subject to review) to force the download and rewrite of proppath
of each downloaded dependency.local_path
is updated with the file location after Downloadpath
is generated from abase_uri
and partial file location. Corresponds to the expected web location of the resourceCode examples