membership-form-loader
v1.2.1
Published
A deployable front-end project that publishes a JS script to the Blackbaud CDN. The end goal is to allow membership form to be able to reference a JS file in the CDN without having to know the hashed values normally associated with published assets inside
Readme
This is a deployable front-end project that publishes a JS script to the Blackbaud CDN. The end goal is to allow membership form to be able to reference a JS file in the CDN without having to know the hashed value normally appended to file names for published assets inside SkyUX projects.
Running Locally
Tests can be run with command npm run test.
To run locally, run the command npm run dev and then run node demo/app.js to run a local Express server.
Access https://localhost:3000 in your browser to view the demo page.
When running express locally, you may want to replace MEMBERSHIP_FORM_LOADER_VERSION in membership-form-loaders.ts with a valid version, found in package.json
If you need to make changes to what form is loaded, or any other parameters, this can be done in demo/app.js.
To test passthrough parameters, update demo/app.js to use the following format:
<div data-blackbaud-membership-form-id="74bd559f-8bad-4e5b-93e2-8c51ba494d35" locale="fr-CA"></div>Note: Passthrough parameters are all optional so you would only need to include what parameters you want to passthrough.
