Code Monkey home page Code Monkey logo

bootprint-monorepo's Introduction

bootprint

NPM version Travis Build Status Coverage Status Greenkeeper badge

Converts json and yaml into a static html page using Handlebars and Bootstrap

Bootprint logo

Bootprint is a tool for converting JSON-files into static HTML-pages using {less}, Bootstrap and Handlebars.

It is designed with flexibility in mind:

  • You can easily modify the styling by providing your own {less}-files.
  • You can easily replace the Handlebars template and any register partial
  • You can include custom handlebars-helpers or override existing ones.
  • You can create packages with default-configurations, publish them on npm and use them as base for further customizations.

Installation

npm install -g bootprint

Usage

After installing bootprint perform the following steps

# Install template module
npm install -g bootprint-openapi
# Run bootprint with the template
bootprint openapi http://petstore.swagger.io/v2/swagger.json target

The directory "target" should now contain a file index.html and main.css which contain a readable form of the Swagger-Petstore-Example.

Further documentation Documentation

Available modules

License

bootprint is published under the MIT-license.

See LICENSE for details.

Release-Notes

For release notes, see CHANGELOG.md

Contributing guidelines

See CONTRIBUTING.md.

bootprint-monorepo's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bootprint-monorepo's Issues

[bootprint-openapi] Add npx command to readme?

You can skip the global install by doing:

npx -p bootprint-openapi -p bootprint bootprint openapi http://petstore.swagger.io/v2/swagger.json output-folder

That said, npx does not appear to cache any packages if they're specified explicitly at the command line, as above, so the above command does use extra data transfer if you need to run it more than once.

bootprint-openapi has peerDependency to old bootprint

When installing bootprint-openapi via npm install -g bootprint bootprint-openapi I get the following error:

npm WARN [email protected] requires a peer of bootprint@^2.0.1 but none was installed.

Installing with npm install -g [email protected] bootprint-openapi in turn results in

npm WARN [email protected] requires a peer of bootprint@^4.0.1 but none was installed.
npm WARN [email protected] requires a peer of bootprint@^4.0.1 but none was installed.

I assume the peerDependency from [email protected] to [email protected] is a typo and should instead read [email protected] (since it has been updated just 10 days ago)?

Ability to change output file name & disable CSS building

Hi love the project!

I'm looking at using it to build Markdown documents based off JSON schemas.

I can create decent markdown documents easy enough using the handle bar templates and a few helpers but I can't find a nice way to do two things.

  1. Change the output file name
  2. Disable CSS creation.

Based on reading the code it looks like this isn't possible as both engines are created and configured in bootprint itself? Am I reading / not understanding correctly?

Cheers for any help in advance.

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.