So I am still kind of new to the SAGE theme but I absolutely love it so far. Been importing bower dependencies just fine until now so here’s what’s going on:
I tried to install Turn.js (which is a library to create magazine/book like page turners). Since it’s listed within the bower packages I figured it would be much easier than having to do it manually but it’s not being imported/recognized.
So here’s what I have done so far:
- Bower install --save turnjs
- Compiled scripts and tried to used it, functions not being recognized.
- Tried to check for the bower.json in: /bower_dependencies/turnjs/ I notice there’s no main array holding the files paths
- Tried adding an override to the main bower.json file which clearly didn’t work because there’s nothing to override (Assuming, since the main turnjs’ bower file doesn’t have that main array to be overriden in the first place)
When all this didn;t work, I tried the manual way. Went in and downloaded the files, added to my /assets/scripts/ folder, then went in and added them to the manifest.json in assets folder and also enqueued the script in setup.php from the /lib/ directory.
When I did this and tried to run gulp or gulp scripts it went down because the file has “too many errors” according to js-hint I guess. Now, I know for a fact this library works (might not be fully optimized but does what I need it do right now).
Any ideas as to what might be going wrong or how can I prevent the script analysis to take it down and not be compiled?
Thanks in advance.