0.0.11 • Published 3 years ago
@ourstudio/clip-ui v0.0.11
Clip UI
Minimal component library used to display front-end components.
Usage
Basic server (start.js)
const clipUi = require("@ourstudio/clip-ui");
clipUi.serve({
folder: `components`,
staticFolder: `static`,
injectHead: [
{
tag: 'link',
attributes: [
{ key: 'rel', value: 'stylesheet' },
{ key: 'href', value: '/static/random.css' },
],
},
],
});node start.jsExport project to static files (build.js)
const clipUi = require("@ourstudio/clip-ui");
clipUi.build({
folder: `components`,
out: `out`,
staticFolder: `static`,
injectHead: [
{
tag: "link",
attributes: [
{ key: "rel", value: "stylesheet" },
{ key: "href", value: "/static/random.css" },
],
},
],
});node build.jsGetting started
Install dependencies
npm installBuild
npm run buildRun development
npm run startThe component library will start on http://localhost:8000/.