Watcher utility to help when developing on Liferay 7.0
This tool requires Node.js. I've only tested it at version 6.6.0, but it should work with newer versions. Please open an issue if you run into any problems.
[sudo] npm install -g liferay-osgi-watch
We try to stick with a zero configuration approach. In most cases, all that's needed is:
lwatch
Since v2.0.0, we introduced an optional configuration file called .lwatch.json
that, when needed, should be placed at the root of the module's folder. The file contents are expected to be on a JSON format. An example of what configurations can be overriden can be seen here.
One example of why you would need to add this file is if you have your gogo shell running at a different port other than the default 11311. Say you have it at 11312. All you need to do is create a .lwatch.json
file with the following content:
{
"gogoPort": 11312
}
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature