Page History
...
Zip file structure
...
...
packagename
-
META-INF
MANIFEST.MF
componentname
...
componentname.spec
...
componentname.html
...
componentname.js
...
...
MANIFEST.MF contents
...
...
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.8.4
Created-By: 1.7.0_05-b06 (Oracle Corporation)
Bundle-Name: Servoy Components
Name: componentname/componentname.spec
Web-Component: True
...
...
Info | ||
---|---|---|
| ||
If you edit the MANIFEST.MF manually make sure to always have an extra blank line at the end of the file. Otherwise the last line will not be read in correctly possibly leading the last service/component listed there not showing up. |
The MANIFEST.MF file can include libraries dependancies library dependencies. In case web components of the same package requires require the same library dependancies dependencies let the MANIFEST.MF file to include the libraries dependancies library dependencies instead of including the same library in the .spec file of each web component.
...
JS-ClientLibs: packagename/lib/filename.js;name=libraryname;version=3.3.1, packagename/lib/anotherfile.js;name=anotherlibrary;version=3.3.1
JS-DesignLibs: packagename/lib/filename.js;name=libraryname;version=3.3.1, packagename/lib/anotherfile.js;name=anotherlibrary;version=3.3.1
CSS-ClientLibs: packagename/lib/filename.css;name=cssname;version=3.3.1
CSS-DesignLibs: packagename/lib/filename.css;name=formdesignercss;version=3.3.1
...
If
DesignLibs are user used in the Form editor only. Is It is possible to customize the look & feel of web components in the form designer to improve the experience in the editor. For instance it would be possible to define a min-height and min-width for the web-component in the editor only so that it can be selectable selected by the user in the form editor.
By default, a component package and its contents is displayed in the HTML editor palette for each both of the two types of forms: Responsive-Layout and Absolute-Layout. In order to include a component package in palette only when editing one type of form, the MANIFEST.MF file should also contain one of the two lines below
Responsive-Layout: True
Absolute-Layout: True