npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

marketing-design-system

v2.2.24

Published

Collection of reusable react components for sonarsource websites

Downloads

57

Readme

Sonarsource Component Library & Design System

These components are meant to be shared between the various sonarsource websites.

Getting started

Version

don't forget to change it manualy

Requirements

yarn installs dependencies

Run the styleguide (for development)

yarn start

Build

yarn build

This builds both the component library and the styleguide

yarn build:lib
yarn build:styleguide

Link for local development

yarn link in this folder yarn link marketing-design-system in client project

Package & Deploy

/!\ You need to be logged in change the version in package.json yarn pack yarn publish marketing-design-system-x.y.z.tgz

marketing-design-system

General

We use an augmented GitHub markdown syntax:

  • general: https://guides.github.com/features/mastering-markdown/
  • general: https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet
  • linebreaks: https://gist.github.com/shaunlebron/746476e6e7a4d698b373

The first time

  • Install nodejs, v8.11.3 not 10, which is the latest.
  • Install https://yarnpkg.com/en
  • Run the following command from the project root folder to set up the dev server:
yarn

To start the Static dev server on port 8000:

yarn develop

Writing pages

URLs

All urls must end with a trailing slash (/).

Includes

Basic syntax: @include guidelines/components/buttons-primary/buttons-primary.html

Include markdown files :

  • path omits trailing '.md'
  • path starts from 'src', regardless of where the including page is.

Include html files :

  • path must start with 'guidelines/'
  • content will be included as html content and will render in the page as is, not as a text format

Formatting

Links

  • External page (automatically open in a new tab): [Link text](https://www.sonarsource.com/)
  • Another documentation page: [Link text](/personality/)
    • path omits trailing '.md'
    • links inside tooltips always open in a new tab

Linebreaks

By default, single linebreaks are removed in rendering. I.e.

foo
bar
baz

Will render as

foo bar baz

To get a <br/> effect, add 2 spaces at the end of the line

foo  //<- 2 spaces
bar  //<- 2 spaces
baz

Yields

foo
bar
baz

Collapsible block

Basic syntax:

[[collapse]]
| ## Block title
| Block content

The first line of the block must be a title. You can have as many lines as you want after that.

Syntax to collapse embed code blocks :

<div class="collapse"><a href="#">html</a>

`embed:components/buttons-primary/buttons-primary.html`

</div>

Code with syntax highlighting

Basic syntax:

```html
<div/>
```

Inline syntax (with special character '›') :

`css›transition: all .2s ease;`

Columns

You need to use html syntax to introduce multiple columns in a page :

<div class="columns">
  <div class="column">

  **Column 1**
  </div>
  <div class="column">

  ## Column2
  </div>
</div>

Images

Basic syntax: ![alt text.](/images/short-lived-branch-concept.png)

  • images are auto-sized to 100% if they're larger than 100%
  • paths start from 'src', regardless of where the calling page is

Icons

  • :warning: ![](/images/exclamation.svg)
  • :information_source: ![](/images/info.svg)
  • :heavy_check_mark: ![](/images/check.svg)
  • :x: ![](/images/cross.svg)