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

@vf-alchemy/vattenfall-design-system

v7.20.0

Published

A shared component library based on the Vattenfall Design System.

Downloads

432

Readme

Vattenfall-One-Brand-Design-System

A shared component library based on the Vattenfall Design System.

This README is about how to work on the Vattenfall Design System, if you are looking for the technical documentation of how to use this in your own application, head to: https://digitaldesign.vattenfall.com

Quick start

  • Clone the repo: git clone [email protected]:Alchemy-se/Vattenfall-One-Brand-Design-System.git

Cms

For handling metadata and also login in the /overview table when developing we have an cms for that. Its located in bitbucket vf-dds-cms repo. You need .envs located in the 1password vault for vattenfall.

What's included

Within the download you'll find the following directories and files, logically grouping common assets and providing both compiled and minified variations. You'll see something like this:

vattenfall-design-system/
└── dist/
    ├── css/
    │   ├── reboot.css
    │   ├── reboot.css.map
    │   ├── reboot.min.css
    │   ├── reboot.min.css.map
    │   ├── main.css
    │   ├── main.css.map
    │   ├── main.min.css
    │   └── main.min.css.map

We provide compiled CSS (main.*), as well as compiled and minified CSS (main.min.*). source maps (.*.map) are available for use with certain browsers' developer tools.

Documentation

The documentation is powered by a system called Catalog, which is a React app that renders the documentation. The source for the documentation is in the folder ./catalog.

The documentation for Catalog is available at https://docs.catalog.style/configuration/pages

Contributing

This requires you to have node and yarn installed on your machine. All commands are run in this folder.

Use Node version 10.18.0 Install all dependencies:

yarn

Start the development environment:

yarn watch

This will start a server on http://localhost:4000 with the documentation site, as well as watch for changes in the CSS Library.

CSS Library

All source SCSS files for the CSS Library are available in the /scss folder. Import the new _component_name.scss file in the main.scss file

@import "components/component_name";

Deployment

Connecting to Google Container Cloud - digitaldesign.vattenfall.com

Make sure you have gcloud command line tools installed.

Login to google cloud and configure the project

gcloud auth login

Run the deployment script (you will need the Private SSL key, it's stored in the password manager):

./deploy.sh

The disk may occassionally fill up due to old Docker images. This can cause unexpected behaviour, and is hard to debug as no error messages may appear on Google Cloud. To prevent this, be sure to occasionally prune the unused Docker images by ssh (in the hamburger menu on gcloud go to "Compute Engine -> "VM instances" then press the instance you want to manage. Under "remote access" press SSH) paste the command: docker image prune -a . If the disk happens to already be full, just increase the disk space temporarily on Google Cloud, (Left menu -> Disks -> vf-docker-instance -> Edit -> [increase size] ), then prune the images.

Docker

You can also run this repo as a docker image.

Build the docker image:

docker build -t vattenfallds .

Start a docker container with the previously built image, binding port 4040

docker run -p 4040:80 vattenfallds