I am developing a reusable component (module) for AngularJS which can be used to enable offline features of applications built with AngularJS.
To achieve client side storage features without re-inventing the wheel, I decided to use this good library provided by Google called Lovefield, which works as,
A cross-browser, SQL-like, relational query engine for Web in pure JavaScript.
I know how to wrap this library with angularjs by creating custom directives, services etc. inside my module. But my question is,
When distributing my module, do I need to include the Javascript code for lovefiled inside my own module code Or Should I ask the developer to include it by himself using <script>
tags inside his html
? What is the recommended way to do this? (It is apparent that both methods can be used)
I went through some of the 3rd party angular modules here, but cannot figure out what is the recommended way of doing this.
you should ask the developer to add the
<script>
tag you should have a package.json file which indicates what depenedencies you have like that -you can create this file using the
npm init
commandgood luck.