Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
kantuban fe tools
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin new step
lib
test/document_write
.gitignore
.jshintrc
README.md
package.json

README.md

Usage: pin [options]

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.

http://pintupinqu.com/(\d{12})/path/to/the/file
>>> http://pintupinqu.com/_src_/path/to/the/file


// css image domain replacement
/*@source image1.kantuban.com image1.kantuban.com*/

// 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": "192.168.0.186",
        "user": "yanh",
        "port": "22",
        "remote_path": "/home/yanh/env/web/kantuban",
        "ssh_key_file": "~/.ssh/id_rsa"
    },
    "media": {
        "datauri": "../../icons"
        // "source": ["image1.kantuban.com", "image2.kantuban.com"]
    },
    "static": "static",
    "less": {
        "_src_/less/release": "_src_/styles/release"
    }
}
Something went wrong with that request. Please try again.