node package manager


TUQU Frontend Develop TOOLS

Usage: pin [options]


-h, --help           output usage information
-V, --version        output the version number
-i, --init           init a new project.
-l, --listen <port>  start pin server, listen <port> (< 1024 needs sudo).
-s, --server <port>  start static server, listen <port> (< 1024 needs sudo).
-p, --pack           pack & min code for release.
-v, --new_version    generate new version number.
--no-compress        pack code do not compress.\d{12})/path/to/the/file

// css image domain replacement

// async load script, with min file packed
/*@pack */

// datauri root path
/*@datauri */

release log:

  • update uglifyjs to 2
  • update clean-css
  • clean code
  • auto filter duplicate files
  • LESS support

pinrc config file:

    "sftp": {
        "host": "",
        "user": "yanh",
        "port": "22",
        "remote_path": "/home/yanh/env/web/kantuban",
        "ssh_key_file": "~/.ssh/id_rsa"
    "media": {
        "datauri": "../../icons"
        // "source": ["", ""]
    "static": "static",
    "less": {
        "_src_/less/release": "_src_/styles/release"