Merge pull request #3 from cloudbees/topic/run_devtools

script to run dev tools automatically
This commit is contained in:
Michael Neale 2016-02-01 17:42:59 +11:00
commit 7d85f15ff8
2 changed files with 30 additions and 1 deletions

View File

@ -53,7 +53,13 @@ $ mvn hpi:run
## To do javascript development
If you wish to make changes to blueocean.js, then you will need to run:
If you wish to make changes to blueocean.js, then you will need to install gulp (http://gulpjs.com/), and then either run:
```
$ ./dev_core.sh
```
or the following:
```
$ gulp rebundle

23
dev_core.sh Executable file
View File

@ -0,0 +1,23 @@
#!/bin/bash
set -eu
echo "*"
echo "* This will use gulp to watch for changes"
echo "* and run mvn hpi:run on the core module."
echo "*"
echo "* Ensure you have gulp installed: http://gulpjs.com/"
trap ctrl_c INT
function ctrl_c() {
echo "** CLEANUP"
kill $MVN_PID
echo "CLEANUP finished."
}
cd core
mvn hpi:run &
MVN_PID=$!
echo "** Starting gulp to watch for changes"
gulp rebundle