How To Provide Your Code Using The Electric Imp Code Library System
Electric Imp is now able to make your library code available for other developers to include in their own Squirrel applications via the #require
directive. If you would like us to provide your library to our developer and customer community in this way, please read through the guidelines and conditions presented below. The guidelines cover both your initial submission and all future updates. By submitting a new or updated library to Electric Imp, you accepting the terms and conditions listed below.
LICENSE
file to the root directory of the repository. Please make sure to replace [yyyy]
with the year of the repository’s creation, and Electric Imp
with your own name or company.
LICENSE
file’s content at the head of every source file. Each line should be commented individually.LICENSE
file should be updated in the form: yyyy-YYYY
, where yyyy
is the year of the original file creation and YYYY
is the year of its latest update.LICENSE
file slightly differs from what we used to have before, so please use the new file.MyElectricImpLibrary
.agent
or .device
to the file name(s) as appropriate, eg. MyElectricImpLibrary.device
, MyElectricImpLibrary.agent
..device
or .agent
to the file name..lib.nut
, eg. MyElectricImpLibrary.device.lib.nut
, MyElectricImpLibrary.agent.lib.nut
, YourElectricImpLibrary.lib.nut
.static VERSION = "1.0.0";
We will review the library, and may provide feedback. If we need you to make some code changes, go back to to step 5, above.
#require
.You provide code and documentation updates via Github as needed. You must notify Electric Imp of any such updates. The process for reviewing and releasing code updates follows the steps outlined above.