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

@tourstream/fti-portal-styleguide

v0.51.2

Published

Styleguide based on Pattern Lab grunt for FTI portal

Downloads

332

Readme

npm version npm downloads Build Status Demo License


FTI Portal Styleguide

Styleguide based on Pattern Lab for FTI portal

This demo page will show all implemented parts of the latest version (master branch) of this package. It creates asset files, style.css and bundle.js, which will be implemented into our portals.

Usage

There are different ways to use the Styleguide:

Link the source - CDN at Google Cloud Storage (GCS)

You can put the following snippet into the head of your HTML document. Use the version (Semver) for production, to have more control.

<link rel="stylesheet" href="https://assets.gcloud.fti-group.com/fti-portal-styleguide/<VERSION>/css/style.css">

Use "latest" for internal test purposes.

<link rel="stylesheet" href="https://assets.gcloud.fti-group.com/fti-portal-styleguide/latest/css/style.css">

Note: Some portals use an individual way to implement the Styleguide. Read their instructions.

Or NPM:

$ npm install @tourstream/fti-portal-styleguide --save

Install

It requires Node 10 or higher.

npm install

Development

Pattern Lab is based on Atomic Design. Start with atoms and work your way up to templates and pages. The SCSS files are component based. Use mixins, functions and placeholders to avoid duplicated code and keep the styles on the components for high readability. Component's own mixins come at the top of each component's file. We code mobile-first.

We handle our Javascript files component based, which will be automatically bundled in one exported bundle file.

Serve and Watch

npm run serve

Build

npm run build

You can find the files styles.css and styles.min.css at ./dist-master/fti-portal-styleguide/latest/css. Take that to test the styles inside your portal locally by replacing the old styles.

CSS Lint (Test)

npm run lint

Debug mode

The Styleguide turns on debug mode per default using a cookie. You can turn on debug mode on your portal by creating a cookie manually with debug=1 or by adding ?debug=1 to your url parameters. Follow the instructions inside the error handling.

Changelog

Changelog


Deployment

Staging

For feature branch deployment use Bamboo (Plan: FTI Styleguide / Styleguide). A branch is available on Bamboo after the branch is created on Github. https://assets.gcloud.fti-group.com/fti-portal-styleguide/staging/<BRANCH-NAME>/index.html

Production

After merge to master on master run

npm version <major|minor|patch|specific Semver version>

It requires ssh connection to Github. It will deploy to NPM and GCS using our Travis configuration.

Usage on your portal

Setup a build with Semver versioning to have control over your styles.

Styling Pattern Lab

Use ./source/css/pattern-scaffolding.css to customize Pattern Lab.


Pattern States

  1. #FF4136 inprogress: Element is in in progress on the developer side.
  2. #ffcc00 inreview: Element is in review on the developer side.
  3. #cc33ff undefined: Element is complete and usable, but element on Invision is not defined or isn't set as complete.
  4. #2ECC40 complete: Element is set as complete in styleguide and in Invision.

Structure and Documentation

SassDoc Documentation

  • Document your contribution
  • use media queries inside the classes, to increase documentation and readability
npm run docs

Look up the ./docs/ pages.

Debrecated: Visit Confluence to read more about the technical details of the styleguide.