{"id":1108,"date":"2019-11-18T20:21:50","date_gmt":"2019-11-18T20:21:50","guid":{"rendered":"http:\/\/fluentreports.com\/blog\/?p=1108"},"modified":"2019-11-18T20:21:51","modified_gmt":"2019-11-18T20:21:51","slug":"nativescript-offline-plugins","status":"publish","type":"post","link":"https:\/\/fluentreports.com\/blog\/?p=1108","title":{"rendered":"NativeScript Offline Plugins"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">There are cases where you might want to package plugins with your app in your version control; like for example you are using a commercial plugin or maybe a proplugin and need to use cloud building.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The simplest setup that I have personally used is in the very root of your application.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignleft size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"190\" height=\"257\" src=\"https:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2019\/11\/image.png\" alt=\"\" class=\"wp-image-1109\"\/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"alignright size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"322\" height=\"136\" src=\"https:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2019\/11\/image-1.png\" alt=\"\" class=\"wp-image-1110\" srcset=\"https:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2019\/11\/image-1.png 322w, https:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2019\/11\/image-1-300x127.png 300w\" sizes=\"auto, (max-width: 322px) 100vw, 322px\" \/><figcaption><br><\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You create a folder called <code>plugins<\/code>.  Inside this folder you put any commercial and plugins you need to keep with the apps source.   For example one of my projects looks like the above picture, I have 5 plugins that are actually in version control with the application.  So anyone checking out the source code from git will get all these plugins with the application.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To use these plugins in your NativeScript app, in the root directory you type \"<strong>tns plugin add .\/plugins\/nativescript-compress-0.0.1.tgz<\/strong>\" you need to type the ENTIRE name including the extension.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How do I download them<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">So say I want to have the proplugins\/nativescript-dialog plugin.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>npm pack @proplugins\/nativescript-dialog<\/strong> <br>will download the latest .tgz file into the current directory for you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are cases where you might want to package plugins with your app in your version control; like for example you are using a commercial plugin or maybe a proplugin and need to use cloud building. The simplest setup that I have personally used is in the very root of your application. You create a&hellip; <a class=\"more-link\" href=\"https:\/\/fluentreports.com\/blog\/?p=1108\">Continue reading <span class=\"screen-reader-text\">NativeScript Offline Plugins<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[1],"tags":[16,146,34,145],"class_list":["post-1108","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-nativescript","tag-npm","tag-plugins","tag-proplugins","entry"],"_links":{"self":[{"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1108","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1108"}],"version-history":[{"count":1,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1108\/revisions"}],"predecessor-version":[{"id":1113,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1108\/revisions\/1113"}],"wp:attachment":[{"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}