avoscloud 命令可以监视代码变化自动重启,是一个不错的功能,然而它在 lib/runtime.jsgetMonconfig 方法中写死了只对 'js json' 两个扩展名监视。

这使得我如果使用 CoffeeScript 开发的话就没有自动重启了。

建议增加 coffee 扩展名。

      getMonconfig: function(args) {
        return {
          exec: this.exec,
          ignore: [
            '.git',
            'node_modules/**/node_modules'
          ],
          "env": {
            LC_APP_ID: app.appId,
            LC_APP_KEY: masterKey,
            LC_APP_MASTER_KEY: masterKey,
            LC_APP_PORT: run.getPort()
          },
          ext: 'js json',  // <-- 这里写死了只监视 js 和 json
          script: 'server.js',
          args: args
        };

您可以提交 PR,感谢。

@dennis 好,我才想起这个工具是开源的,哈哈