Skip to content

DulliAG/components

Repository files navigation

@dulliag/components

Topics

Installation

  1. Create .npmrc

    @dulliag:registry=https://npm.pkg.github.com
    //npm.pkg.github.com/:_authToken=<GITHUB_PERSONAL_ACCESS_TOKEN>
    
  2. Install package

    Make sure to have Material UI installes in order to use these components and the provided theme properly

    npm install @dulliag/components

Local setup

  1. Install all dependencies

    npm install
  2. Setup husky

    Install husky once in order to run our GIT-hooks If you already have installed the dependencies Husky should already got set-up

    npm run prepare

    How to add a hook?

    npx husky add .husky/pre-commit "npm test"
    git add .husky/pre-commit

    Make a commit

    git commit -m "Keep calm and commit"
    # `npm test` will run

Local testing

How to build

  1. Create a new build using npm run build

If the build was successful we proceed with the following steps...

  1. Increase the version using the command npm version [major|minor|patch]

  2. Make sure you are logged in npm login --registry=https://npm.pkg.github.com --scope=@dulliag

  3. After this publish this package by using the npm publish --access public command