Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including boruto with all npm packages installed. Try it out:

boruto lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("boruto/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

boruto v2.3.0

The tool for web development

The tool for web development

pug + stylus + es6

npm node GitHub tag GitHub release npm GitHub license

Workflow

Workflow

Installation

npm i boruto -g

Usage

Initialization
boruto init [directory]
paramdesc
[directory]Set the dir for initialization
Debug
boruto server [directory]
paramdesc
[directory]Set the dir for server
Dist
boruto dist [directory]
参数说明
[directory]Set the dir for dist

.borutorc

The config file for boruto

{
  "server": {
    "extDirs": [],
    "serveStatic": [],
    "port": 8080,
    "open": false
  },
  "dist": {
    "distDir": "dist",
    "compress": true,
    "requirejsConfig": "app/scripts/config.js",
    "amdOptimizationDir": [
      "app/scripts"
    ],
    "templateDir": [
      "app/scripts/_template"
    ],
    "moduleDir": []
  }
}

Boruto's server use browsersync, so you can find more options in https://browsersync.io/docs/options/

License

MIT

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free