New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@stemuli/ui

Package Overview
Dependencies
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stemuli/ui

## Getting Started

latest
npmnpm
Version
0.0.2
Version published
Maintainers
3
Created
Source

STEMuli UI Components Library w/Typescript [WIP]

Getting Started

Simply run the commands below and you should have a working storybook displaying all of our components.

  • git clone repo
  • yarn install
  • yarn dev

Adding Components

Each component follows the folder structure below:

  • ComponentName
    • index.tsx
    • index.stories.tsx
    • styles.ts

Index.tsx

Exports react component to be consumed

Stories.tsx

Showcase of component for storybook

Styles.ts

Exports a styled component consumed by the react component

Publishing to NPM

When you are ready to publish the package to NPM, use the release.prepare script:

yarn run release.prepare -m "Commit message" --patch

This script will increment the version number in package.json based on the specified version type (--patch, --minor, or --major are valid switches). The script will also check in the changes, commit the changes, and create a git tag with the new version number.

After the script runs successfully, you will need to push the tag to Github. Once the tag is pushed, Travis CI will run and publish the package to NPM. This process usually takes 1-2 minutes.

git push origin x.y.z

Where x.y.z is the new version number (part of the script output).

Notes:

  • If the git commit message is left blank, it will default to "[Release]"
  • If the version type is left blank, patch will be used by default

FAQs

Package last updated on 26 Apr 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts