Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[fix] renamed to opa-watch
  • Loading branch information
OpaOnWindowsNow committed Sep 14, 2012
1 parent 7eda1a1 commit 75c3147
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 20 deletions.
6 changes: 3 additions & 3 deletions BUILD
Expand Up @@ -3,9 +3,9 @@
# To build from source (opa > 1.0.6): # To build from source (opa > 1.0.6):
echo Build echo Build
mkdir -p _build mkdir -p _build
opa opa-dynamic.opack -o opa-dynamic.exe opa opa-watch.opack -o opa-watch.exe


# Then to continuously build opa-dynamic: # Then to continuously build opa-watch:
# (avoid the launch it otherwise it will cycle) # (avoid the launch it otherwise it will cycle)
# echo Continuous build # echo Continuous build
# ./opa-dynamic.exe --src-dir ../opa-dynamic --command "opa *.opack -o opa-dynamic.exe" & # ./opa-watch.exe --src-dir ../opa-watch --command "opa *.opack -o opa-watch.exe" &
27 changes: 14 additions & 13 deletions README.md
@@ -1,12 +1,13 @@
opa-dynamic opa-watch
=========== ===========


## What is *opa-dynamic*?
*opa-dynamic* provides a project-based 'verify & launch loop' for Opa. ## What is *opa-watch*?
*opa-watch* provides a project-based 'verify & launch loop' for Opa.
This makes developpement with Opa even more fun and more productive. This makes developpement with Opa even more fun and more productive.


Each time you do a modification on your project, your project is automatically verified by the *Opa* compiler (syntax, semantics, client/server distribution ...) and launched. Each time you do a modification on your project, your project is automatically verified by the *Opa* compiler (syntax, semantics, client/server distribution ...) and launched.
*opa-dynamic* is editor-independant so it will work in any environment. *opa-watch* is editor-independant so it will work in any environment.




## Is my project supported? ## Is my project supported?
Expand All @@ -15,9 +16,9 @@ It can be easily customized to work with most projects.




## How to use it? ## How to use it?
Assuming your project is compatible with *opa-dynamic*, in a terminal, start *opa-dynamic*: Assuming your project is compatible with *opa-watch*, in a terminal, start *opa-watch*:


`opa-dynamic --src-dir path/opa_project` `opa-watch --src-dir path/opa_project`
Or just without argument when launched in the current directory. Or just without argument when launched in the current directory.


You will be notifed of compilation error if any. You will be notifed of compilation error if any.
Expand Down Expand Up @@ -65,8 +66,8 @@ If `make` builds your project and `make run` launches or relaunches your project


## My Makefile is not supported, what should I do? ## My Makefile is not supported, what should I do?
Assuming `make target1` is compiling your project, generating `target1.exe`. Assuming `make target1` is compiling your project, generating `target1.exe`.
You can run: You can do:
`opa-dynamic --src-dir path/opa_project --command "make target1.exe" --command "killall target1 && target1.exe"` `opa-watch --src-dir path/opa_project --command "make target1.exe" --command "killall target1 && target1.exe"`
See "How to use with project with custom build rules?" for explanations. See "How to use with project with custom build rules?" for explanations.




Expand All @@ -76,24 +77,24 @@ You can give the list of commands to build and launch your project.
Ensure that relaunching is supported by terminating a previously launched version. Ensure that relaunching is supported by terminating a previously launched version.
The last command is assumed to be the launch command and its termination is not waited for. (if not, use `--no-launch`) The last command is assumed to be the launch command and its termination is not waited for. (if not, use `--no-launch`)
For instance: For instance:
`opa-dynamic --src-dir path/opa_project --command "build_command" --command "killall launch.exe" --comand "launch.exe"` `opa-watch --src-dir path/opa_project --command "build_command" --command "killall launch.exe" --comand "launch.exe"`


## How to use specific opa options without specifying `--command`? ## How to use specific opa options without specifying `--command`?
You can use `--opa-opt`. You can use `--opa-opt`.
For instance if your project is in classic syntax: For instance if your project is in classic syntax:
`opa-dynamic --src-dir path/opa_project --opa-opt "--parser classic"` `opa-watch --src-dir path/opa_project --opa-opt "--parser classic"`


## How to avoid the `--src-dir` option? ## How to avoid the `--src-dir` option?
The current directory will be use if `--src-dir` is omitted. The current directory will be use if `--src-dir` is omitted.


## Are Mac and Windows supported? ## Are Mac and Windows supported?
*opa-dynamic* should work but the notification feature is not supported yet. *opa-watch* should work but the notification feature is not working yet.


## Can notification appeared in my favorite text editor? ## Can notification appeared in my favorite text editor?
We plan to support notification in emacs and Sublime Text, and to provide a simple way to have it on other editor. We plan to support notification in emacs and Sublime Text, and to provide a simple way to have it on other editor.


## Can I make opa-dynamic better? ## Can I make opa-watch better?
With pleasure. Please contribute bug fixes, doc fixes and new features! With pleasure. Please contribute bug fixes, doc fixes and new features!


## What is the license? ## What is the license?
*opa-dynamic* is released under the MIT license. *opa-watch* is released under the MIT license.
2 changes: 0 additions & 2 deletions opa-dynamic.conf

This file was deleted.

2 changes: 2 additions & 0 deletions opa-watch.conf
@@ -0,0 +1,2 @@
opa-watch:
opa-watch.opa
2 changes: 1 addition & 1 deletion opa-dynamic.opa → opa-watch.opa
@@ -1,4 +1,4 @@
/** opa-dynamic /** opa-watch
* Monitor a directory conataining a project, recompiles it and relaunch it when needed * Monitor a directory conataining a project, recompiles it and relaunch it when needed
*/ */


Expand Down
2 changes: 1 addition & 1 deletion opa-dynamic.opack → opa-watch.opack
@@ -1,4 +1,4 @@
--conf opa-dynamic.conf --conf opa-watch.conf
--conf-opa-files --conf-opa-files


--parser classic --parser classic
Expand Down

0 comments on commit 75c3147

Please sign in to comment.