more docs
This commit is contained in:
parent
d3466f03da
commit
e6ea40fbaa
11
README.md
11
README.md
@ -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 doesn’t look for new versions of cached files.
|
||||
|
||||
Attribution & License
|
||||
---------------------
|
||||
|
||||
|
7
autobuild.sh
Executable file
7
autobuild.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user