GithubHelp home page GithubHelp logo

gstvribs / monorepo-angular-component-library Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 3.0 2.15 MB

This is a proof of concept of a monorepo structure for angular components and design tokens specially designed for design systems

Home Page: https://thedesignsystem.gustavoribeiro.dev/

License: MIT License

Shell 3.82% JavaScript 6.66% TypeScript 34.24% HTML 2.90% SCSS 52.38%
angular design-system monorepo lerna conventional-commits

monorepo-angular-component-library's Introduction

The Design System

This is a proof of concept of a monorepo structure for serving angular components and design tokens

Maintained with Lerna Commitzen friendly Conventional Commits

Getting started

This is a monorepo repository using Lerna, Commitzen and Conventional Commits to maintain and manage component versions and for documentation, we use Storybook and Compodoc, you can access by clicking here

List of packages containing in this repository:

Name of package Description
@thedesignsystem/components Angular components with each package.json file
@thedesignsystem/tokens Design language elements like: colors, typography, iconography and more

Setup

Local setup to run this project locally

Tools:

Configuration

  • Install all the dependencies: npm i
  • Build all the components: npm run build
  • You can see the components of this repo by running one of these two projects:
    • Angular Playground by running npm run playground
    • Storybook by running npm run start:storybook

Configure this project and how to install them at your project

First of all, your repository needs to be looking at the npm private repository, for that, create a .npmrc file at the root of your project and add the private repository:

registry = https://registry.npmjs.org/
@thedesignsystem:registry=http://localhost:4873/

Installing components

All components in this repository are installed separately, that is, each component has its own npm package, for example if you want to install the button component:

npm i @thedesignsystem/button

Installing tokens

This repository has a monorepo that gives you all the tokens of Design System's design language, styles and elements such as: colors, typography, elevations, embroidery, etc. To install just install the package in your repository:

npm i @thedesignsystem/tokens

In angular.json at styles node add the global scss file.

"styles": [
  "node_modules/@thedesignsystem/tokens/bundle/bundle-hard.scss"
]

monorepo-angular-component-library's People

Contributors

gstvribs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.