Rule over your subjects in LabKey
Important Currently this project MUST be built using node < v7. The easiest way to acheive this is to use NVM.
The build process does a few things:
- Compiles your ES6 JavaScript into a single ES5-compatible file in the web resources directory (this is what you reference in your HTML).
- Copies your HTML over into the target.
- Generates a
module.xml
file for LabKey. - Generates WebParts and View XML files based on the
webParts
andwebViews
attributes inpackage.json
.
npm build
builds the modulenpm test
runs the test suitenpm watch
watches for changes and builds each time
These are really just wrappers for Gulp (gulp
, gulp test
, and gulp watch
respectively).
-
Create a WebPart definition in
package.json
, e.g. forsample.html
:"webParts": [ { "name": "WebPart Friendly Name", "htmlFilePrefix": "sample" } ]
-
Create
views/sample.html
:<div> <h1>Hello World!</h1> </div>
LabKing is unapologetically built for the modern world. You'll need IE9+, or a reasonably up-to-date version of Chrome, Firefox, Opera, or similar to make the most of it. You may find it works on IE8, and we'd love to hear your experiences to flesh out the documentation. More than that, we'd love for you to upgrade to a modern browser for general happiness 🍸 🍻 🍷.
This project is MIT licensed.
We'd love to get your feedback, pull requests and contributions. There are some notes on contributing.