Coder Social home page Coder Social logo

hydraner / patternlab-v3-poc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from drupal-pattern-lab/patternlab-v3-poc

0.0 0.0 0.0 1.49 MB

Pattern Lab Monorepo being used to prototype some Pattern Lab v3 Concepts

JavaScript 14.93% PHP 76.41% CSS 5.15% HTML 3.51%

patternlab-v3-poc's Introduction

Build Status

Experimental Pattern Lab Monorepo + POC for Pattern Lab v3 Ideas

To run:

  1. npm run setup to bootstrap lerna + install composer dependencies (make sure symlinks between packages/pattern-lab and the vendor folder are created)
  2. Run npm run start in one tap + npm run start:styleguidekit in a second tab (temporary workaround to duplicate watch tasks) to start the PL-specific build tasks + watch the Pattern Lab styleguidekit assets pl3 folder for changes

Prerequistes

First Time Install

Run this command (Assuming you wanted it in a directory called FOLDERNAME):

composer create-project --repository '{ "type": "vcs", "url": "https://github.com/drupal-pattern-lab/edition-php-drupal-standard" }' pattern-lab/edition-drupal-standard

Select a starterkit from menu. If asked about replacing files, do it.

Commit new files generated.

Using It

After installing and committing, others cloning the repo need to run composer install to install dependencies.

Helpful Commands

These are some helpful commands you can use on the command line for working with Pattern Lab.

One line start

This will compile PL and watch for changes while running the local server:

composer start

Generate Pattern Lab

To generate the front-end for Pattern Lab type:

php core/console --generate

Start a server to view Pattern Lab

You can use PHP's built-in web server to review your Pattern Lab project in a browser. In a separate window type:

php core/console --server

Then open http://localhost:8080 in your browser.

Install a StarterKit

To install a near-empty StarterKit as a starting point for your project type:

php core/console --starterkit --init

To install a specific StarterKit from GitHub type:

php core/console --starterkit --install <starterkit-vendor/starterkit-name>

Updating Pattern Lab

composer update

Other Documentation

These are crucial pieces that contains documentation that is good to understand:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.