diff --git a/README.md b/README.md index a76b4bc..5ec733c 100755 --- a/README.md +++ b/README.md @@ -4,12 +4,12 @@ > __Puer - more than a live-reload server , built for efficient frontend development__ +[![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/leeluolee/puer?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [δΈ­ζ–‡ζŒ‡ε—](http://leeluolee.github.io/2014/10/24/use-puer-helpus-developer-frontend/) ##Features -[![Gitter](https://badges.gitter.im/Join Chat.svg)](https://gitter.im/leeluolee/puer?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) 1. __create static server__ at target dir (default in current dir) diff --git a/package.json b/package.json index d2ce9c5..b77b824 100755 --- a/package.json +++ b/package.json @@ -1,12 +1,19 @@ { "name": "puer", - "description": "a tool to build static autoreload(livereload) server", + "description": "more than a live-reload server , built for efficient frontend development", "author": "leeluolee", - "version": "1.0.7", + "version": "1.0.8", "repository": { "type": "git", "url": "https://github.com/leeluolee/puer" }, + "keywords": [ + "live-reload", + "server", + "proxy", + "frontend", + "tool" + ], "main": "./lib/index.js", "bin": { "puer": "./bin/puer" diff --git a/src/cli.coffee b/src/cli.coffee index bbb126b..a06784b 100755 --- a/src/cli.coffee +++ b/src/cli.coffee @@ -16,7 +16,7 @@ exports.run = (args) => parser.on "-i --inspect", "start weinre server and debug all puer page", (dir) -> option.inspect = true parser.on "-x --exclude", "exclude file under watching(must be a regexp), default: ''", (dir) -> - ignored = reg.replace /^\/|\/$/g, "" + ignored = dir.replace /^\/|\/$/g, "" option.ignored = new RegExp ignored parser.on "-a --addon ", "your addon's path", (file) -> option.addon = sysPath.resolve pwd, file @@ -35,6 +35,7 @@ exports.run = (args) => """ console.log man parser.run args + console.log(option) puer(option) if not option.help