Open kennynaoh opened 8 years ago
Hi, I actually made that request, Thanks!
I'll help if I can.
I believe the dependencies are Bootstrap(3) (+Bootstrap-Multiselect), Jquery, Jquery-UI and Handelbars are required.
Font-Awesome is optional, as is Datatables
For example, here is a basic working version of my set up (versions my not all be current) (Note: because of the amount of libs involved order is important, not necessarily this order but I did run into issue with other orderings)
<link type="text/css" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" rel="stylesheet" />
<link type="text/css" href="//code.cloudcms.com/alpaca/1.5.22/bootstrap/alpaca.min.css" rel="stylesheet" />
<link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-multiselect/0.9.13/css/bootstrap-multiselect.css">
<link type="text/css" rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap-theme.min.css">
<!-- optional
<link type="text/css" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css">
-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="http://code.jquery.com/ui/1.11.4/jquery-ui.min.js" type="text/javascript"></script>
<script type="text/javascript" src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.5/handlebars.min.js"></script>
<script type="text/javascript" src="//code.cloudcms.com/alpaca/1.5.22/bootstrap/alpaca.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-multiselect/0.9.13/js/bootstrap-multiselect.min.js"></script>
Thanks @dvwright
I think I can just grab all the file under dist/alpaca/bootstrap/
on npm, because I think the other dependency file can include from cdn.
What do you think?
cc @uzquiano
Hi @kennynaoh Honestly, I'm not sure, if anything, I think we would need build/alpaca/web and load the deps, bootstrap/jquery/etc stuff ourselves.
I would imagine that the alpaca versions are probably bound to specific versions of the 3rd party libs? I'm not sure the best practice but If I used the cdnjs alpaca lib, i would expect it to 'just work', is there a problem grabbing everything?
Thank you for you work. cc @uzquiano
Hello @uzquiano , I am the member of cdnjs project. We want to host this library. But there is a question want to ask. I think the main file is
alpaca.js
on npm. But I found that there are four same library name underdist/alpaca/
. And I thinkalpaca.css
is also needed, but there are four, too. Could you help me confirm this? And also are there any other dependency files needed to be grab? Thanks for your help!https://github.com/cdnjs/cdnjs/issues/9150