Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chef-ui-library

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chef-ui-library

UI library for Chef

  • 0.0.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Chef UI Library

User Interface (UI) Design patterns are recurring solutions that solve common design problems. The Chef UI Library aims to have the standard patterns used in the Chef UI available for use within Engineering so we can spend more time providing delight for our customers in other areas.

Stencil is a simple compiler for generating Web Components. Web Components is an emerging standard that is designed to make it easy to create reusable UI patterns using APIs that are native to the browser. One clear advantage of this is that the components we make here have no ties to a single library or frontend framework.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Installing

A step by step series of examples that tell you have to get a development env running

Running just the Stencil Library

To ensure you're using the correct version of node, install NVM and run nvm use from /chef-ui-library. It will direct you to install the correct version if necessary.

Navigate to /chef-ui-library and run npm install

npm install

then run npm start to run a live-reload server at http://localhost:3333

npm start

Developing against Automate UI and the Hab Studio

Please see the extensive "getting started" docs for developing against the habitat dev env alongside a local instance of Automate UI.

Re-Generating Documentation

Documentation that describes the atoms and molecules present within the UI library is generated from javadoc style comments using TypeDoc. Technically TypeDoc generates some json metadata that is then read by an internal Stencil component to display said atoms and molecules in the development environment. That metadata is automatically generated when npm start is run. Atoms and molecules are automatically updated when their code is updated, but the documentation generation can be expensive and is therefore done on demand. If you update any internal docs then you need to either restart the development server or run npm run docs to regenerate the necessary metadata.

Running and Developing patterns within Automate UI

  • Section coming soon

The Sandbox

You will note the sandbox.html file in the src directory. This was added to help make prototyping easier. When developing your new atom, molecule or template use the sandbox as a place to test your work. DO NOT commit any of your scratch work to the repo. To make it easier not to forget that; run git update-index --assume-unchanged src/sandbox.html from the root of the library. This command tells git to ignore any changes to the file. To undo the command and make git aware of changes to the sandbox; run git update-index --no-assume-unchanged src/sandbox.html.

The sandbox can be viewed at http://localhost:3333/sandbox.html

Running the tests

Lint Tests

  • Sass: npm run lint.sass
  • Typescript: npm run lint.ts

Unit Tests

Stencil comes with Jest built-in - read more about it at Testing Section of the Stencil Site.

  • Run once: npm test
  • Re-run every time you save a file: npm run test.watch

Built With

FAQs

Package last updated on 15 Aug 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc