Giter Site home page Giter Site logo

bob's Introduction

BoB

Build Status Commitizen friendly

Builder of Bits aka The MDN Web Docs interactive examples, example builder

Source Folder Structure

-editor # All files related to the interactive examples editor
|--> css
|--> js
|--> media # media used only by the editor
|--> tmpl
-live-examples # All example related files and media
|--> css-examples
|--> fonts # fonts used by the editor and examples
|--> html-examples
|--> js-examples
|--> media # media used only by the examples

Generated Folder Structure

-docs
|--> css # All editor related CSS
|--> js # All editor related JS
|--> live-examples # All custom CSS and JS for the examples
|--> media # All media and fonts for the examples
|--> pages # All generated interactive example pages
|----> css # All CSS examples
|----> js # All JS examples
|----> tabbed # All examples using the tabbed UI

Using Commitizen CLI

This project uses Commitizen to ensure all pull requests follow the same format, and to ensure predictable releases with semantic-release.

To use this flow, add files as you normally would with git add ., and when you are ready to commit, simply type git commit and follow the prompts. You can read more on the Conventional Changelog format on its repository.

Testing Bob locally inside Interactive Examples

Bob is used to build the interactive-example pages and is installed as a dependency inside the interactive-examples repo. When working on changes to Bob, there is often a need to test the changes by running Bob inside the interactive-examples repo locally. To do this, use the following command:

npx install-local ~/path/to/repo/bob && node node_modules/.bin/mdn-bob

bob's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar elchi3 avatar exe-boss avatar gusted avatar ikarasz avatar jaideepghosh avatar kenrick95 avatar mozilla-github-standards avatar peterbe avatar renovate-bot avatar renovate[bot] avatar snyk-bot 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.