Giter Site home page Giter Site logo

js's Introduction

My Monorepo Experiment with Git and JavaScript

Just my personal choices:

Develop

Dependencies

  • git
  • Node.js (tested on 12)
  • ncc
  • GNU make or BSD make
  • TypeScript (tested on 3.7) and ESLint
  • Prettier and lefthook
  • vscode or any other IDEs/editors supporting ESLint and TypeScript with JSDoc commented types

Coding

git clone https://github.com/weakish/js.git
cd js
make install-deps # install dependencies
make # packaging with ncc

Markdowntation

Serve your documentation with zero-configuration and without client side JavaScript. Inspired by GitHub Pages and docsify.

Features

Inspired by GitHub Pages and docsify.

  • Simple (97 CLOC) and lightweight (1380kB compiled as a single file).
  • No statically built html files.
  • No JavaScript at client side.
  • Zero configuration.

Usage

Download the index.js file at GitHub releases page, and put it under your documentation directory with markdown files. Now just run node index.js and you can access your documentation site at http://127.0.0.1:3000

Matching Routes

Suppose you run node index.js under docs directory, then:

docs/README.md        => http://127.0.0.1:3000
docs/guide.md         => http://127.0.0.1:3000/guide/
docs/zh-cn/README.md  => http://127.0.0.1:3000/zh-cn/
docs/zh-cn/guide.md   => http://127.0.0.1:3000/zh-cn/guide/

js's People

Contributors

weakish avatar

Stargazers

Alain Armand avatar Paweł Lesiecki avatar Bazyli Brzóska avatar

Watchers

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