@ourstudio/clip-ui
TypeScript icon, indicating that this package has built-in type declarations

0.0.11 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @ourstudio/clip-ui

Weekly Downloads

6

Version

0.0.11

License

ISC

Unpacked Size

24.2 kB

Total Files

4

Last publish

Collaborators

  • ourmax
  • ourbjorn
  • alexerlandsson
  • ourpeter
  • ourcarl