javascript - Adding 3rd party JS libraries to Ionic within the proper workflow -
i have been using jquery mobile hybrid app past few months , wanted exposure ionic , angular.js atempting rebuild it. jqm app relies on xml2json.js , unfamiliar cordova, bower, gulp, node.js , several of other tools used build , deploy ionic apps.
is there right way, or right place add xml2json.js when build gets pulled in automatically?
the answer question use bower, required bit of setup.
install bower (i'm on mac, may not need sudo)
sudo npm install -g bower
if behind firewall (like @ work) before installing need run
npm config set strict-ssl false
fix unable_to_verify_leaf_signature
after installing bower again if behind firewall need following
git config --global url."https://".insteadof git://
forces bower download modules using http address
you need edit .bowerrc in project folder rid of bower specific unable_to_verify_leaf_signature
{ "strict-ssl": false }
after can run install command
bower install xml2json --save
if installed ionic npm .bowerrc has override save directory save /www/lib/[plugin folder]/
disabling ssl on node , bower bad security , there better instructions on how accomplish these tasks right way, how got work inside corporate office environment in short amount of time.
Comments
Post a Comment