0.0.11 • Published 1 year ago

@ourstudio/clip-ui v0.0.11

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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.js

Export 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.js

Getting started

Install dependencies

npm install

Build

npm run build

Run development

npm run start

The component library will start on http://localhost:8000/.

0.0.10

1 year ago

0.0.11

1 year ago

0.0.9

1 year ago

0.0.9-alpha-1

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago