0.1.43 • Published 3 years ago

chansencode-lib v0.1.43

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

Introduction

Component development environment.

View built on 'next.js', exports handled with 'rollup.js'

Installation


npm install

Run


npm run dev:        Starts dev env on 'localhost:3500'
npm run build:      Builds next static site to folder './out'
npm run build-lib:  Rollup compiles './components' to './dist'

Motivation & Manifest


This program is built by a junior front-end web dev for consumption in various applications ranging from cms to web based interfaces. It comprises both view, presentation, simple & advanced components. This library will be built into .tsx with time but is for now written in .js format.

'Component design' - manifest

All components shall:

  • K I S S
  • Be able to render monochromatically following currentColor convention
  • Documented clearly with example on lib.chansen.design

List of components


nametype
Buttonpresentation
Hamburgerpresentation
Logopresentation

Explicit details and preview examples can be found on : https://lib.chansen.design

Folder Structure


Exporting Components:

//Target for rollup

file: '~/components/index.js';

export * from './Foo';
export * from './Bar';
file: '~/components/Foo/index.js';

export * from './Foo';
file: '~/components/Foo/Foo.js';

export const Foo = () => {
  return (
    <div>
      <h4>foo</h4>
    </div>
  );
};

Importing Components

import { Foo, Bar } from '~/components';

//or

import { Foo, Bar } from 'chansencode-lib';
0.1.30

4 years ago

0.1.31

4 years ago

0.1.32

4 years ago

0.1.33

4 years ago

0.1.34

4 years ago

0.1.35

4 years ago

0.1.36

4 years ago

0.1.37

4 years ago

0.1.27

4 years ago

0.1.28

4 years ago

0.1.29

4 years ago

0.1.41

4 years ago

0.1.42

4 years ago

0.1.43

3 years ago

0.1.40

4 years ago

0.1.38

4 years ago

0.1.39

4 years ago

0.1.10

4 years ago

0.1.11

4 years ago

0.1.12

4 years ago

0.1.13

4 years ago

0.1.14

4 years ago

0.1.15

4 years ago

0.1.20

4 years ago

0.1.21

4 years ago

0.1.22

4 years ago

0.1.23

4 years ago

0.1.24

4 years ago

0.1.25

4 years ago

0.1.16

4 years ago

0.1.8

4 years ago

0.1.17

4 years ago

0.1.7

4 years ago

0.1.18

4 years ago

0.1.19

4 years ago

0.1.9

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago