Socket
Socket
Sign inDemoInstall

mdn-bob

Package Overview
Dependencies
190
Maintainers
5
Versions
155
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mdn-bob

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


Version published
Weekly downloads
183
increased by771.43%
Maintainers
5
Install size
28.4 MB
Created
Weekly downloads
 

Changelog

Source

2.2.0 (2022-04-27)

Features

  • editor: allow setting defaultTab in tabbed examples (#758) (7bc449d)

Readme

Source

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

Keywords

FAQs

Last updated on 27 Apr 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc