onokumus / twbuttons

alexwolfe/Buttons for Twitter Bootstrap 3

Home Page:https://onokumus.github.io/twbuttons/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Register at CDN to increase ease of deployment

holtkamp opened this issue ยท comments

To stimulate adoption and increase ease of deployment during production, registration of the dist files at a CDN like http://www.cdnjs.com is useful.

Will try to submit it to http://www.cdnjs.com and report back here ๐Ÿ‘

steps taken (for self-documenting purposes ๐Ÿ˜„ ):

git init cdnjs && cd cdnjs
git config core.sparseCheckout true
echo '/package.json' >> .git/info/sparse-checkout
echo '/auto-update.js' >> .git/info/sparse-checkout
echo '/test/*' >> .git/info/sparse-checkout
echo '/ajax/libs/twbuttons/*' >> .git/info/sparse-checkout
git reset --hard
git remote add origin https://github.com/holtkamp/cdnjs.git
git remote add upstream https://github.com/cdnjs/cdnjs.git
git pull upstream master --depth 1
git checkout -b patch-twbuttons-autoupdate
mkdir -p ajax/libs/twbuttons
cd ajax/libs/twbuttons
//added package.json file
git add package.json
cd ../..
npm install
npm test
git commit -m "Enable twbutton autoupdate"
git push --set-upstream origin HEAD:patch-twbuttons-autoupdate

Thanks to the great team at CDNJS, it got accepted and merged
cdnjs/cdnjs#10736

Look at that shiny package! https://cdnjs.com/libraries/twbuttons

Hi @holtkamp
Thank you for your efforts.