Repository: rave Updated Branches: refs/heads/angular b7786294e -> 1076dedaf
Introduces Grunt Project: http://git-wip-us.apache.org/repos/asf/rave/repo Commit: http://git-wip-us.apache.org/repos/asf/rave/commit/1076deda Tree: http://git-wip-us.apache.org/repos/asf/rave/tree/1076deda Diff: http://git-wip-us.apache.org/repos/asf/rave/diff/1076deda Branch: refs/heads/angular Commit: 1076dedaf7ad0e75c048e8ec8a7825cd5bf4182b Parents: b778629 Author: Jmeas <[email protected]> Authored: Thu Jul 3 15:16:44 2014 -0400 Committer: Jmeas <[email protected]> Committed: Tue Jul 15 09:15:16 2014 -0400 ---------------------------------------------------------------------- .gitignore | 1 + README.txt | 9 +++++---- gruntfile.js | 13 +++++++++++-- package.json | 21 +++++++++++++++++++++ 4 files changed, 38 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/rave/blob/1076deda/.gitignore ---------------------------------------------------------------------- diff --git a/.gitignore b/.gitignore index e7837ec..9790829 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ overlays/ target/ .DS_Store .vagrant/ +node_modules http://git-wip-us.apache.org/repos/asf/rave/blob/1076deda/README.txt ---------------------------------------------------------------------- diff --git a/README.txt b/README.txt index 2225e77..58f22fc 100644 --- a/README.txt +++ b/README.txt @@ -38,17 +38,18 @@ Building and running To setup the vagrant development environment: - Requirements: - Vagrant v1.6.3+, Ansible 1.6.5+ + Vagrant v1.6.3+, Ansible 1.6.5+, Node 0.10.0+, Grunt 0.4.0+ - Install the `vagrant-hostsupdater` plugin by performing `vagrant plugin install vagrant-hostsupdater`. - To build the virtual machine, simply run `vagrant up`. + - Run `npm install` from the root directory. + To run the apache rave application: - - SSH into the vagrant box - - Run the following command to start the rave portal - `sudo mvn cargo:run -f /rave/rave-portal/pom.xml` + - Run `grunt dev` from the command line. + - If this is your first time building, wait up to 20 minutes. Otherwise, give it 5minutes or so. - open url http://rave.dev:8080/portal in a browser - Login as user `canonical` with the password `canonical` http://git-wip-us.apache.org/repos/asf/rave/blob/1076deda/gruntfile.js ---------------------------------------------------------------------- diff --git a/gruntfile.js b/gruntfile.js index 68d2e15..d4eb600 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -2,8 +2,17 @@ module.exports = function(grunt) { require('load-grunt-tasks')(grunt); grunt.initConfig({ - + vagrantssh: { + server: { + commands: [ + 'sudo mvn cargo:run -f /rave/rave-portal/pom.xml', + ], + callback: function(grunt, output) { + grunt.log.writeln('The app is running at rave.dev:8080/portal.'); + } + } + } }); - grunt.registerTask('default', []); + grunt.registerTask('dev', ['vagrantssh']); }; http://git-wip-us.apache.org/repos/asf/rave/blob/1076deda/package.json ---------------------------------------------------------------------- diff --git a/package.json b/package.json new file mode 100644 index 0000000..91d8c43 --- /dev/null +++ b/package.json @@ -0,0 +1,21 @@ +{ + "name": "rave", + "version": "0.23.0", + "description": "A new web and social mashup engine that aggregates and serves web widgets.", + "main": "index.js", + "homepage": "https://rave.apache.org/", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "https://git-wip-us.apache.org/repos/asf/rave" + }, + "author": "", + "license": "Apache License 2.0", + "devDependencies": { + "grunt": "^0.4.5", + "grunt-vagrant-ssh": "^0.1.0", + "load-grunt-tasks": "^0.6.0" + } +}
