You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.
Use Case 3. Bundling assets using node client library
constassets=newAssets({server: 'http://localhost:3031'});assets.bundle.js('<unique-id>','<unique-id>');// => bundle completion promiseassets.bundle.css('<unique-id>','<unique-id>');// => bundle completion promiseassets.css();// => promise resolving to best effort array of urlsassets.js();// => promise resolving to best effort array of urls
What's happening here:
bundle namespace with js and css methods added for type specific bundling
bundling no longer requires a bundle tag/label, just the list of tags/labels to bundle
js and css methods added to ping the asset server for a list of urls. These urls will be best effort, meaning, if only some assets have been published, all available individual asset urls will be returned, if everything is published and bundling is finished then the array will only contain a single item, the url to the finished bundle
no hashes need be handled, these become internal only details
This issue proposes some fairly minor cleanup to the client APIs.
Use Case 1. Publishing assets to server using node client library
What's happening here:
buildServerUri
simplified to justserver
publish
method addedUse Case 2. Command line asset publishing
May be implemented at some point
Use Case 3. Bundling assets using node client library
What's happening here:
bundle
namespace withjs
andcss
methods added for type specific bundlingjs
andcss
methods added to ping the asset server for a list of urls. These urls will be best effort, meaning, if only some assets have been published, all available individual asset urls will be returned, if everything is published and bundling is finished then the array will only contain a single item, the url to the finished bundleUse Case 4. Command line asset bundling
May be implemented at some point
The text was updated successfully, but these errors were encountered: