• Stars
    star
    2,051
  • Rank 22,535 (Top 0.5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 11 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The Node version of Pattern Lab

Pattern Lab Logo

Pattern Lab

This monorepo contains the core of Pattern Lab / Node and all related engines, UI kits, plugins, and utilities. Pattern Lab helps you and your team build thoughtful, pattern-driven user interfaces using atomic design principles.

If you'd like to see what a front-end project built with Pattern Lab looks like, check out this online demo of Pattern Lab output.

Continuous Integration CodeQL current release license Coverage Status code style: prettier node (scoped) Join the chat at Gitter Join the chat at Discord

Docs @ Netlify Status

Pattern Lab Preview @ Netlify Status

Using Pattern Lab

Refer to the core usage guidelines

Installation

As of Pattern Lab Node 3.0.0, installation of Editions is accomplished via the command line interface.

The below assumes a new directory and project is required. This is likely what you want to do if starting from scratch. You could also run this within an existing project. The CLI will ask you for the installation location.

  1. Open a terminal window and follow along below:
    mkdir new-project
    cd new-project
    npm create pattern-lab

    If you get an error stating that npx is not installed, ensure you are on npm 5.2.0 or later by running npm -v or install it globally with npm install -g npx. Learn more about npx.

  2. Follow the on-screen prompts to choose your Edition and a Starter Kit should you want one.
  • If you chose edition-node, new commands in the "scripts" will be added to your package.json.
  • If you chose edition-node-gulp, a gulpfile.js will be added to your project.

Notice that @pattern-lab/cli was installed as a dependency. Learn how to further use the cli in your own project.

Ecosystem

Pattern Lab Ecosystem

Core, and Editions, are part of the Pattern Lab Ecosystem. With this architecture, we encourage people to write and maintain their own Editions, Starter kits, and even PatternEngines.

Changelog

Each package within this monorepo has its own changelog. Below are the main ones to watch:

Support for Pattern Lab

Pattern Lab / Node wouldn't be what it is today without the support of the community. It will always be free and open source. Continued development is made possible in part from the support of contributors.

Thanks to Netlify for building tooling and hosting.

Node Support Policy

We only support actively maintained versions of Node.

We specifically limit our support to maintenance versions of Node, not because this package won't work on other versions, but because we have a limited amount of time, and supporting the oldest maintenance offers the greatest return on that investment while still providing the lowest standard level for installations on any possible actively maintained environment out there.

This package may work correctly on newer versions of Node. It may even be possible to use this package on older versions of Node. However, that's more unlikely as we'll make every effort to take advantage of features available in the oldest maintenance Node version we support.

As each Node maintenance version reaches its end-of-life, we will replace that version from the node engines property of our package's package.json file with the newer oldest one. As this replacement would be considered a breaking change, we will publish a new major version of this package. We will not accept any requests to support an end-of-life version of Node. Any merge requests or issues supporting an end-of-life version of Node will be closed.

And we might even update the minor and patch version of that supported maintenance Node version regularly, without making this a breaking change than as it should be in everybody's interest even also to follow this concept of using patched software as their development system basis, especially on those older Node versions.

We will accept code that allows this package to run on newer, non-maintenance versions of Node. Furthermore, we will attempt to ensure our changes work on the latest version of Node. To help in that commitment, we even test that out by ourselves and get feedback from the community regularly regarding all LTS versions of Node and the most recent Node release called current.

JavaScript package managers like e.g. NVM should allow you to install this package with any version of Node, with, at most, a warning if your version of Node does not fall within the range specified by our node engines property. If you encounter issues installing this package, please report the issue to your package manager.

This policy has been adapted from https://github.com/conventional-changelog/conventional-changelog#node-support-policy.

Contributing

Refer to the contribution guidelines.

More Repositories

1

patternlab-php

The PHP version of Pattern Lab
PHP
3,055
star
2

edition-node-gulp

ARCHIVED - The gulp wrapper around patternlab-node core, providing tasks to interact with the core library and move supporting frontend assets.
JavaScript
279
star
3

edition-php-twig-standard

Pattern Lab Standard Edition for Twig
PHP
103
star
4

patternengine-php-twig

Twig-based PatternEngine for Pattern Lab.
PHP
78
star
5

website

Pattern Lab's website: patternlab.io
HTML
57
star
6

patternengine-node-react

ARCHIVED - The React engine for Patternlab/Node
JavaScript
50
star
7

patternlab-php-core

This repository provides the core functionality for Pattern Lab. It is meant to be used from within an Edition with a PatternEngine and StarterKit.
PHP
43
star
8

edition-node-grunt

The grunt wrapper around patternlab-node core, providing tasks to interact with the core library and move supporting frontend assets.
JavaScript
38
star
9

styleguidekit-assets-default

The static assets for the default StyleguideKit for Pattern Lab. Contains styles and mark-up for Pattern Lab's front-end.
JavaScript
35
star
10

starterkit-mustache-demo

The Mustache-based demo StarterKit for Pattern Lab.
31
star
11

starterkit-mustache-bootstrap

A Bootstrap starter kit for Pattern Lab
23
star
12

patternlab-node-cli

Moved to https://github.com/pattern-lab/patternlab-node/tree/dev/packages/cli
JavaScript
21
star
13

plugin-drupal-twig-components

PHP
17
star
14

the-spec

The specification for implementing Pattern Lab in various languages. This way there can be common core functionality and common shared assets.
16
star
15

starterkit-mustache-materialdesign

A Material Design starter kit for Pattern Lab
15
star
16

plugin-php-data-inheritance

The Data Inheritance Plugin allows patterns to inherit data from patterns within its lineage.
PHP
13
star
17

starterkit-mustache-foundation

A Foundation starter kit for Pattern Lab
11
star
18

starterkit-twig-demo

Pattern Lab's Demo StarterKit for Twig.
10
star
19

starterkit-handlebars-vanilla

A vanilla starterkit that includes a basic scaffolding and a few patterns to demonstrate a full page, but not a full-blown demo
9
star
20

edition-node

ARCHIVED - The pure wrapper around Pattern Lab Node Core, the default pattern engine, and supporting frontend assets.
JavaScript
9
star
21

patternengine-node-mustache

ARCHIVED - The Mustache engine for Patternlab/Node
JavaScript
7
star
22

patternengine-node-twig

ARCHIVED - The Twig engine for Patternlab/Node
JavaScript
7
star
23

plugin-php-reload

Automatic Browser Reload Support for Pattern Lab
PHP
7
star
24

plugin-php-faker

The Faker Plugin adds Faker support to Pattern Lab.
PHP
7
star
25

styleguidekit-twig-default

The default Twig-based StyleguideKit for Pattern Lab. Contains styles and mark-up for Pattern Lab's front-end.
HTML
7
star
26

starterkit-mustache-base

Pattern Lab's Base StarterKit for Mustache.
5
star
27

plugin-node-tab

ARCHIVED - The Tab plugin allows you to define additional code tabs to the pattern viewer / modal.
JavaScript
5
star
28

uikit-bare

A mostly empty starter UI to build around Pattern Lab Node output
CSS
4
star
29

patternengine-node-nunjucks

ARCHIVED
JavaScript
2
star
30

plugin-php-twig-extensions

Experimental implementation of the default Twig extensions.
PHP
2
star
31

starterkit-mustache-acidtest

Cross-platform acid tests for Pattern Lab
2
star
32

patternengine-node-underscore

ARCHIVED - The Underscore engine for Patternlab/Node
JavaScript
1
star
33

styleguidekit-mustache-default

The default Mustache StyleguideKit provides the basic front-end assets when using the Mustache PatternEngine.
HTML
1
star