A tiny compiler for HTML that adds imports, slots/fills and markdown tags.


Keywords
markdown, posthtml, html, docs generator
License
MIT
Install
npm install xm@0.1.176

Documentation

XM

This is how separate bower.json and package.json into few xm.json files

Usage

Create few xm.json files

app/
  components/
    user/
      xm.json
      ...
    hotel/
      xm.json
    room/
      xm.json

xm.json body

{
    "node_modules": {
        "socket.io": "latest"
    },
    "node_modules_dev": {

    },
    "bower_components": {
        "socket.io": "latest"
    },
    "bower_components_dev": {

    }
}

Install

npm install -g xm

Run

Extend bower.json and package.json from xm.json files

xm update

xm update

Clean all dependencies from bower.json and package.json used by any xm.json file

xm clean

xm clean

Advanced functionality for component model organisation

Commands:

  • update - Find all xm.json and update package.json and bower.json
  • clean - Find all dependencies in package.json and bower.json used by any xm. json and remove it
  • new - Init new component in app/components
  • install - install new component into app/components from github
  • remove - remove the component from app/components
  • publish - publish the component from app/components into github