Skip to content

Commit

Permalink
Examples, readme
Browse files Browse the repository at this point in the history
  • Loading branch information
cortesi committed Feb 2, 2016
1 parent 0e3452c commit dec4e0a
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ If you use modd, you should also look at
Devd integrates with modd, allowing you to trigger in-browser livereload with
modd.

# Examples

File |
-------------------------------------------- | -------
[frontend.conf](./examples/frontend.conf) | A front-end project using React + Browserify + Babel. Modd and devd replace many functions of Gulp/Grunt.
[go.conf](./examples/go.conf) | Run Go tests on change.
[python.conf](./examples/python.conf) | A Python + Redis project, with devd managing livereload.


# Install

Expand Down
3 changes: 3 additions & 0 deletions examples/go.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# A basic modd.conf file for Go development.

# Run go test on ALL modules on startup, and subsequently only on modules
# containing changes.
**/*.go {
prep: go test @dirmods
}
20 changes: 20 additions & 0 deletions examples/python.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# An example from a Python project. The project also contains a front-end,
# managed similar to the example in frontend.conf

# Run redis on startup, and restart it whenever its config file changes
cnf/redis.conf {
daemon: redis-server ./cnf/redis.conf
}

# Run the test suite if a source or test file changes
src/**/*.py tests/** {
prep: nosetests ./tests
}

# Start the server, and restart it whenever a source file changes
# Devd is used in reverse proxy mode to manage livereload
src/**/*.py ./server {
# Server runs on port localhost:8080
daemon: ./server
daemon: devd -olm http://localhost:8080
}

0 comments on commit dec4e0a

Please sign in to comment.