Coder Social home page Coder Social logo

event-blueprint's Introduction

Event Blueprint Styleguide

build status Coverage Status

Prerequisites

Installation

Clone the repo to a folder, open a command window and run the following command. Requires you to have node installed.

$ npm install

Conventions

For the styleguide to work correctly, you must structure your template files and sample-data files like so (using handlebars for example):

  • src/
    • templates/
      • foo/
        • bar.handlebars
      • sample-data/
        • bar.json
      • partials/
        • baz.handlebars

Usage

This styleguide comes with a couple of commands. It is designed for you to use any library, framework or workflow you'd like to use. Just edit the gulpfile.js in the root, to accommodate any changes you have. Be aware not to change the tasks connected to compiling the styleguide though.

Edit the styleguide layout

You can edit the layout of the styleguide, by editing these files:

  • app/src/css
  • app/src/javascript
  • app/templates/layout.handlebars
  • app/templates/partials/navigation.handlebars

All files inside app/templates/partials will be compiled as well, so feel free to use partials inside app/templates/layout.handlebars.

Important! The partial reference {{> template}} must be present inside app/templates/layout.handlebars, as the app relies on this file during routing.

Launching the styleguide

Run the following command

gulp

This command generates a project.json file from the project information-object inside the project, as well as the directory structure from src/templates, and compiles an index.html file for the www/ folder - and launches a node server, so you can access the styleguide. Neato.

Accessing the styleguide

Open your favorite browser and navigate to http://localhost:3000

Why?

There's a lot of styleguide-frameworks out there, but I haven't come across one that ran on node, and by design is language-agnostic. Hence this styleguide-app, which is pure node/json/handlebars-based - run it everywhere :)

Roadmap

  • I'm planning a lot of features. Will update the list of upcoming features here.

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.