Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@operational/styleguide
Advanced tools
This project serves as the living styleguide to [@operational/components](https://github.com/contiamo/operational-ui). It is TypeScript-first and uses the [Monaco editor](https://microsoft.github.io/monaco-editor/) that powers [Visual Studio Code](https:/
@operational/styleguide
This project serves as the living styleguide to @operational/components. It is TypeScript-first and uses the Monaco editor that powers Visual Studio Code to provide type-safe playgrounds for components, reading them from any given component library.
There's a good chance that you can create a living styleguide for your TypeScript design system with @operational/styleguide
.
Here's how you can try out @operational/styleguide
.
This tool uses a source folder as a source of truth. It does not concern itself with the rest of your project, but components that you intend to export are required to be structured the following way inside of any given source folder.
anything-can-happen-outside-of-src
src
├── ComponentName
│ ├── ComponentName.tsx
│ └── README.md
├── OtherComponentName
│ ├── OtherComponentName.tsx
│ └── README.md
└── index.tsx # <- this exports all the components
The reason for this requirement is that we have found that it scales quite well. As with any open source project, this is up for discussion, collaboration and improvement. Open an issue to start collaborating.
⚠️ These instructions are where we want to be. The
src
path is not yet configurable.
Install @operational/styleguide
by running yarn add @operational/styleguide -D
.
Once installed, run yarn operational-styleguide start ./path/to/your/src
and you will have a development server up and running. To build your styleguide for production, run yarn operational-styleguide build ./path/to/your/src
. The final artifacts will be in a dist
folder at your project root, ready to be served.
The ./path/to/your/src
defaults to PROJECT_ROOT/src
and can be omitted if your project is already structured this way.
For convenience, consider aliasing the operational-styleguide
(start
, build
, etc.) by adding scripts to your package.json
.
{
"name": "@operational/styleguide",
"scripts": {
+ "start": "operational-styleguide start",
+ "build": "operational-styleguide build",
}
}
We love TypeScript. We love community. Open an issue with whatever's on your mind to start contributing.
FAQs
This project serves as the living styleguide to [@operational/components](https://github.com/contiamo/operational-ui). It is TypeScript-first and uses the [Monaco editor](https://microsoft.github.io/monaco-editor/) that powers [Visual Studio Code](https:/
The npm package @operational/styleguide receives a total of 0 weekly downloads. As such, @operational/styleguide popularity was classified as not popular.
We found that @operational/styleguide demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.