Giter Site home page Giter Site logo

styleguidist-demo's Introduction

Styleguidist Demo

Introduction

Requirements

Installation

yarn install

Build and serve the code locally

yarn start

Opening the code in a browser

This page utilizes a scout architecture. To see other deployed versions, you can type styleguide=${HASH} in the styleguide app's url. This will cause the scout to pull the styleguide code from the styleguide-dev bucket as opposed to the styleguide-prod bucket.

If you type styleguide=dev, it will pull your locally served version. See below on how to serve your own styleguide code locally.

Development

Run yarn start

Then go to https://localhost:6060

Testing

You can do most of your development with the styleguide locally. Once done, you can deploy it to a dev bucket and share the scout hash with a collaborator to get feedback on the new features you've written.

TODO: Using styleguide=dev on an app that imports it as a dependency.

Releasing new versions

This is possibly the most important part of the documentation. Please don't try releasing until you've read this section.

This section assumes you know what semver is. If you don't know what it is, please read through it!

Once you've decided if you are releasing a patch, minor or major version of the styleguide, go into package.json and bump the version number. This must be part of your commit that contains the changes.

After merging into master, go to the "Releases" tab on the styleguide's github page. Click on "Draft a new release" and follow the prompts.

Once the styleguide has been released with a new version, you may upgrade anything that depends on styleguide to have the new version. This will give you the new code in your actual app.

styleguidist-demo's People

Contributors

msholty-fd avatar harrygogonis avatar

Watchers

James Cloos 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.