@@ -18,6 +18,8 @@ and the user's connection hasn't been compromised.
1818` dotnet-unpkg ` uses that metadata to discover the files in the package and download
1919them right into your ` wwwroot/lib ` folder.
2020
21+ Sometimes the packages don't have a ` dist ` folder, in which case ` dotnet unpkg ` will download pretty much everything.
22+
2123## Usage
2224
2325Install the package into your project as a tool reference:
@@ -67,7 +69,13 @@ to redownload everything, and it remembers the version, too, so it won't sneakil
6769upgrade you to jQuery 4.0 when you're not looking.
6870
6971If you can get all your ` wwwroot/lib ` dependencies using ` unpkg ` , then you can add
70- it to your ` .gitignore ` and save checking all those files in.
72+ it to your ` .gitignore ` and save checking all those files in. Just make sure the ` unpkg.json ` file is checked in.
73+
74+ Once you've got a package installed, the ` restore ` command will just use the info
75+ from ` unpkg.json ` , so if there are files you don't want you can edit it and remove
76+ them. Saving should be non-destructive. If you run ` add ` again for a package that
77+ is already in ` unpkg.json ` , it will be overwritten with whatever version it finds
78+ on the CDN.
7179
7280### Integrity hashes
7381
@@ -98,6 +106,6 @@ file. You should use this in your `<script>` and `<link>` tags, like this:
98106 asp-fallback-test-value =" absolute" />
99107```
100108
101- ** Note to self** maybe could generate these tags, either as an extra command or
109+ ** Note to self: ** maybe generate these tags, either as an extra command or
102110into another file somewhere?
103111
0 commit comments