Slide 4
Slide 4 text
This worked because netherjs/nui provided a onescript.json file. There is actually nothing special
about this particular onescript.json, it is almost all default.
{
"Directories": [ "plugins“ ],
"DistDir": "dist",
"Extensions": [ "js“ ],
"Files": [ "nui-main.js", "nui-traits.js", "nui-util.js“ ],
"OutputFile": "nui.js",
}
It builds, then brings the dist directory of the build into the public space. The package already had
the CSS and any image resources in the dist directory prior to building, so everything it needs is
found in /share/nui afterwards.
(With the exception of jQuery: https://t.co/LILo01MgVF)