Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Merge pull request #44 from vrockai/gulpFix
Browse files Browse the repository at this point in the history
Fixed bug in gulpfile.js + updated console readme
  • Loading branch information
mtho11 committed Mar 13, 2015
2 parents e4c25d4 + a49192c commit 45b91e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 8 additions & 4 deletions ui/README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,24 @@ is executed. If you want to delete the whole target directory, please use the `r

In that case, the http://nodejs.org/[Node.js] is downloaded again, together with relevant modules.

After the console is built, you can access it by traversing to the the build target (./console/target) directory:
After the console is built, you can access it by traversing to the the build target (./console/target/gulp-build) directory:

`cd console/target`
`cd console/target/gulp-build`

and running the appropriate gulp (default) target:

`gulp`

After those steps, the console is available on http://localhost:2772/[http://localhost:2772/]
After those steps, the console is available on http://localhost:2772/[http://localhost:2772/], but be aware that
it's only a front-end and you need the server running for console to work properly. The advantage of this approach is,
that is scans for file changes in the source directory and apply them directly into the target directory, which is
suitable for console developing since it doesn't require the whole maven build to see the actual changes in the console UI.

== Dev Install

You can still re-build the console using only java-script based tools. Please do that only after maven build and
only within the build target (./console/target) directory.
only within the build target (./console/target/gulp-build) directory. These steps are rarely used and if you're not
an hawkular console developer you most probably won't need it.

Assuming the node.js is already installed:

Expand Down
4 changes: 0 additions & 4 deletions ui/console/src/main/scripts/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,6 @@ gulp.task('watch', ['build'], function () {
gulp.start(['tslint-watch', 'tsc', 'template', 'concat', 'clean']);
});

plugins.watch([config.less], function () {
gulp.start(['less']);
});

/* If something in the src folder changes, just copy it and let the handlers above handle the situation */
plugins.watch(['../../src/main/scripts/**/*'], function () {
gulp.src('../../src/main/scripts/**/*')
Expand Down

0 comments on commit 45b91e7

Please sign in to comment.