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

math-main-components

Package Overview
Dependencies
Maintainers
1
Versions
213
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

math-main-components

Component Library for math-main-app

latest
npmnpm
Version
0.0.239
Version published
Maintainers
1
Created
Source

math-main-components

Component Library for math-main-app

  • reusable ui components
  • math components

Run Locally

Install yalc globally by running yarn global add yalc

In order to make the workflow more efficient, you can link the local package to the main app.

  • Go to math-main-components and run yalc publish. (only need to do this once)
  • Then go to math-main-components and run yarn dev.
  • Then go to math-main-app and run yalc link math-main-components.

No need to change anything in the package.json file.

In order to unlink the packages, run yarn retreat math-main-components in app directory.

Notes

  • Do not use any of next.js features like next/link

Publishing

  • increment version in package.json
  • run npm publish --access public
  • run yarn add math-main-components@0.0.1 in project

Using styles

In order to use styles you need to have 'sass' installed.

In your _app.js file, import the styles like this:

import 'math-main-components/styles/font.scss'
import 'math-main-components/styles/material-symbols.scss'
import 'math-main-components/styles/theme-colors.scss'
import 'math-main-components/styles/theme-styles.scss'

FAQs

Package last updated on 27 Feb 2024

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