
Product
A New Overview in our Dashboard
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.
@mrshmllw/smores-react
Advanced tools
Collection of React components used by Marshmallow Technology
smores-react
is a collection of React
components that conform to Marshmallow's Design System - "S'mores".
$ yarn add @mrshmllw/smores-react
# OR
$ npm install @mrshmllw/smores-react
When making changes and creating PR's we use semantic-releases which make use of conventional-commits.
So to ensure our CHANGELOG.md is updated automatically and gets the changes we have made, we just need to name our PR's following this convention (casing matters): e.g
Only the following branches are supported for release:
main
feature/*
chore/*
fix/*
Before releasing, you may want to see the changes that will be included in the next version deployed on NPM, you can do so by:
Preview Bump and Publish
Run workflow
and select the main
branch.Generate preview CHANGELOG.md
and look at the results!When you're happy with your changes, you can release & publish your changes to NPM in one fell swoop by:
Bump and Publish
Run workflow
and select the main
branch.Note: this workflow will fail if the package version is already on the latest, so you dont have to worry about deploying the same changes multiple times.
Not too different to your usual workflow!
(feature|chore|fix)/<your-branch-name>
e.g. feature/awesome-new-feature
Bump and Publish
or Preview Bump and Publish
Run workflow
and select <your-full-branch-name>
branch.main
!To run Smores in dev mode follow the below instructions on installing and using Yalc to link up your project repo with Smores.
Install yalc on a global level by running
npm i yalc -g
This only needs to be installed once.
To run Smores in dev mode :
yalc publish
This will copy all the files that should be published into a remote NPM registry
In your project repo (not Smores e.g customer portal/sign up flow etc) run
yalc add @mrshmllw/smores-react
this will copy the current version from the store to your project’s .yalc folder and inject a file: .yalc/@mrshmllw/smores-react dependency into package.json
Every time you make changes in Smores and you wan’t to see it in local
run
yalc publish —private
In your project folder to see your Smores changes run the below to see the changes
yalc update
When you’ve finished deving run the below in your project folder to remove all packages linked
yalc remove --all
import React from 'react';
import {Text, Button} from '@mrshmllw/smores-react';
const App = () => (
<>
<Text>Hey you</Text>
<Button
onClick={() => console.log('thanks for clicking :)')}
>
Click me!
</Button>
</>
);
MIT © Marshmallow
FAQs
Collection of React components used by Marshmallow Technology
The npm package @mrshmllw/smores-react receives a total of 355 weekly downloads. As such, @mrshmllw/smores-react popularity was classified as not popular.
We found that @mrshmllw/smores-react demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 open source maintainers collaborating on the project.
Did you know?
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.
Product
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.