Merge pull request #3 from cloudbees/topic/run_devtools
script to run dev tools automatically
This commit is contained in:
commit
7d85f15ff8
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue