Giter Club home page Giter Club logo

patternlab's Introduction

Energised Agent Component Pattern Library

Prerequisites

The Energised Agent Component Pattern Library uses Node for core processing, npm to manage project dependencies, and gulp.js to run tasks and interface with the core library. Node version 4 or higher suffices. You can follow the directions for installing Node on the Node website if you haven't done so already. Installation of Node will include npm.

It's also highly recommended that you install gulp globally.

Installing

Install git locally https://git-scm.com/book/en/v2/Getting-Started-Installing-Git

npm is a dependency management and package system which can pull in all of the Energised Agent Component Pattern Library's dependencies for you. To accomplish this:

  • download or git clone this repository to an install location.

  • run the following

    cd install/location - (Change directory to the root of the installed directory)
    npm install
    

Running npm install from a directory containing a package.json file will download all dependencies defined within.

Helpful Commands

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

These commands assume a global installation of gulp 4.X, instead of a local installation.

List all of the available commands

To list all available commands type:

gulp patternlab:help

Generate Energised Agent Component Pattern Library

To generate the front-end for Energised Agent Component Pattern Library type:

gulp patternlab:build

Watch for changes and re-generate Energised Agent Component Pattern Library

To watch for changes, re-generate the front-end, and server it via a BrowserSync server, type:

gulp patternlab:serve

BrowserSync should open http://localhost:3000 in your browser.

Edit files

Documentation on how to use/edit Components are available here http://patternlab.io/docs/index.html

Publish changes to paddeee.github.io

  • commit changes in git

    git add .
    git commit -m 'Add commit message here'
    git push origin master
    
  • make sure changes in the source files have been compiled to the public directory

    gulp patternlab:build
    
  • push the changes to GitHub pages (paddeee.github.io)

    cd public
    git add .
    git commit -m 'Add commit message here'
    git push origin master
    cd ..
    

patternlab's People

Contributors

paddeee avatar

Watchers

James Cloos avatar Damian McNulty avatar

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.