membership-form-loader
v1.0.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.
Backporting changes to previous v1 loader
tl;dr just reference 1.x.x instead of master in your usual flow
- Checkout out the
1.x.xbranch - Create a new branch from the
1.x.xbranch instead ofmaster - Open PR for your branch against the
1.x.xbranch instead ofmaster - When tagging, make sure you are looking at the 1.x.x branch instead of
master
#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 index.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:
`<script>BBMembershipFormLoader.newMembershipForm('renxt', 't-Z-FEhKwLvkGVGjTCcbBMEA', 'c1f673d7-128e-452b-9078-9d53d9724f27', 'usa', { desid: '7', desname: 'Name', appealid: '7', campaignid: '7', locale: 'fr-CA' })</script>`Note: Passthrough parameters are all optional so you would only need to include what parameters you want to passthrough.
