yamu

0.1.28 • Public • Published

a simple nodejs scaffold

npm Build Status Coverage Status

Features

  • http server with auto reloading
  • file watching and compiling
  • support typescript
  • produce a static website
  • ts-node unit test

Install

npm i -g yamu
yarn global add yamu

config default setting

package.json

{
    ...
    "config": {
        "dir: "src/d3", //default server folder
        "product": {
            "from": "browser"
        }
    }
    ...
}

Usage

server

yamu server 
yamu server <path>

built

built default folder (/src to /built)

yamu built

If package.json has key npm_package_config_product_from and npm_package_config_product_to,it will be built from npm_package_config_product_from to npm_package_config_product_to.

built custom folder

yamu built [src] [dest]

This will change two keys in tsconfig.json file ('outDir' and 'include')

postCss

pcss

yamu pcss -f path/to/file.pcss
yamu pcss -w path/to/file.pcss

others

npmrc

yamu npmrc

version

yamu -V
yamu --version

Readme

Keywords

none

Package Sidebar

Install

npm i yamu

Weekly Downloads

11

Version

0.1.28

License

MIT

Last publish

Collaborators

  • elona2011