more docs

This commit is contained in:
Stefan Breunig 2013-02-01 14:25:33 +01:00
parent d3466f03da
commit e6ea40fbaa
2 changed files with 18 additions and 0 deletions

View File

@ -39,6 +39,17 @@ Execute `./build.js` to effectively concatenate `main.js` with all the files in
`leaflet_google.js` contains some code to display Google Maps imagery with Leaflet, which is a slightly modified version [of this gist](https://gist.github.com/4504864). I tried to track down the original author, but failed.
My dev setup is like this:
- checked out git repository
- symlinked the user script to the version in the repo. It should work like this:
```sh
cd ~/.mozilla/firefox/<YOUR FF PROFILE>/scriptish_scripts/ingress-intel-total-conversion@breunigs
ln -s ~/<PATH TO REPO>/total-conversion-build.user.js ingress-intel-total-conversion@breunigs.user.js
```
- if you are working on styles or scripts that are normally served via HTTP, you can setup an HTTP server for the current directory at `http://0.0.0.0:8000` using `python -m SimpleHTTPServer`.
- run `./autobuild.sh` to re-build the user script whenever you make changes
- Focus the location bar and hit enter instead of reloading. This way your browser doesnt look for new versions of cached files.
Attribution & License
---------------------

7
autobuild.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
FORMAT=$(echo "\033[1;33m%w%f\033[0m written")
while inotifywait -qre close_write --exclude "total-conversion-build.user.js" --format "$FORMAT" .
do
./build.rb
done