Library Installation

29 views
Skip to first unread message

Ivan Florentin

unread,
Jan 23, 2015, 3:54:57 PM1/23/15
to rapyd...@googlegroups.com
I've developed a set of libraries that I want to use in other libraries.
Is there a way to install those libraries globally  so I can reuse them?
Is there a standard way to create an installer for them to distribute?

Alexander Tsepkov

unread,
Jan 23, 2015, 5:13:57 PM1/23/15
to Ivan Florentin, RapydScript
I'm not sure what you mean by installing, are these native JavaScript libraries or RapydScript ones? RapydScript can use native JavaScript libraries same way JavaScript itself would, with no installation required. You will still need to include them on the page, something like this:

<script src="javascript_library_you_want_to_use.js"></script>
<script src="rapydscript_code_after_compilation.js"></script>

See how Paint app (https://github.com/atsepkov/RapydScript/tree/master/examples/paint) uses jQuery and jQuery-UI for an example of this

If these are RapydScript libraries, you can do the same method as above (just compile them separately and include both on the page) or better yet, import them into your code directly (see the manual on importing: http://rapydscript.pyjeon.com/#header-tag-doc24).

For an example of this second way of importing, see how the same Paint app (in paint.pyj) imports the Drawing.pyj library
Reply all
Reply to author
Forward
0 new messages