lgtm-ui
TypeScript icon, indicating that this package has built-in type declarations

0.0.9 • Public • Published

LGTM-UI

Installation

$ yarn add lgtm-ui
$ npm i lgtm-ui

Usage

// Only imported ones are included in the bundle
import { Alert } from 'lgtm-ui/react/alert';
import { Checkbox } from 'lgtm-ui/react/checkbox';

const App = () => (
  <>
    <Alert />
    <Checkbox />
  </>
);

export default App;

Contribution

# 1. clone repository
$ git clone junghyeonsu/lgtm-ui

# 2. install dependencies
$ yarn install

# 3. start developement
# it will start at localhost:3000
$ yarn dev
// If you want to add components, 
// Add "exports", "typesVersions" fields in package.json
{
  // ...
  "exports": {
    ".": {
      "source": "./src/index.ts",
      "require": "./dist/index.js",
      "import": "./dist/index.mjs"
    },
    "./react/alert": {
      "source": "./src/react/alert/index.tsx",
      "require": "./dist/react/alert/index.js",
      "import": "./dist/react/alert/index.mjs"
    },
    "./react/checkbox": {
      "source": "./src/react/checkbox/index.tsx",
      "require": "./dist/react/checkbox/index.js",
      "import": "./dist/react/checkbox/index.mjs"
    }
  },
  // ...,
  "typesVersions": {
    "*": {
      "react/alert": [
        "./dist/react/alert/index.d.ts"
      ],
      "react/checkbox": [
        "./dist/react/checkbox/index.d.ts"
      ]
    }
  },

Components

React

Readme

Keywords

none

Package Sidebar

Install

npm i lgtm-ui

Weekly Downloads

1

Version

0.0.9

License

MIT

Unpacked Size

19.9 kB

Total Files

21

Last publish

Collaborators

  • junghyeonsu