Added maven tasks
Project: http://git-wip-us.apache.org/repos/asf/ode-console/repo Commit: http://git-wip-us.apache.org/repos/asf/ode-console/commit/1c3875a2 Tree: http://git-wip-us.apache.org/repos/asf/ode-console/tree/1c3875a2 Diff: http://git-wip-us.apache.org/repos/asf/ode-console/diff/1c3875a2 Branch: refs/heads/master Commit: 1c3875a21fe51a148ca94cf5d59c25818464705f Parents: dd1fcba Author: sathwik <[email protected]> Authored: Wed Aug 31 14:49:31 2016 +0530 Committer: sathwik <[email protected]> Committed: Wed Aug 31 14:49:31 2016 +0530 ---------------------------------------------------------------------- gulp/maven.js | 23 +++++++++++++++++++++++ maven-config.json | 18 ++++++++++++++++++ package.json | 6 ++++-- src/index.html | 6 +++--- 4 files changed, 48 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ode-console/blob/1c3875a2/gulp/maven.js ---------------------------------------------------------------------- diff --git a/gulp/maven.js b/gulp/maven.js new file mode 100644 index 0000000..b185a1b --- /dev/null +++ b/gulp/maven.js @@ -0,0 +1,23 @@ +'use strict'; + +var gulp = require('gulp'), + maven = require('maven-deploy'), + config = require('../maven-config.json'); + +//install on local maven repo +gulp.task('install', function() { + maven.config(config); + return maven.install(); +}); + +//Snapshot release to Apache, used by CI server +gulp.task('snapshot', function() { + maven.config(config); + return maven.deploy('apache-snapshot-repo',true); +}); + +//Actual release to Apache repo +gulp.task('release', function() { + maven.config(config); + return maven.deploy('apache-release-repo'); +}); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ode-console/blob/1c3875a2/maven-config.json ---------------------------------------------------------------------- diff --git a/maven-config.json b/maven-config.json new file mode 100644 index 0000000..97fd649 --- /dev/null +++ b/maven-config.json @@ -0,0 +1,18 @@ +{ + "groupId" : "org.apache.ode", + "artifactId" : "{name}", + "buildDir" : "dist", + "finalName" : "{name}-{version}", + "type" : "zip", + "fileEncoding" : "utf-8", + "repositories" : [ + { + "id": "apache-snapshot-repo", + "url": "https://repository.apache.org/content/repositories/snapshots" + }, + { + "id": "apache-release-repo", + "url": "https://repository.apache.org/service/local/staging/deploy/maven2" + } + ] +} \ No newline at end of file http://git-wip-us.apache.org/repos/asf/ode-console/blob/1c3875a2/package.json ---------------------------------------------------------------------- diff --git a/package.json b/package.json index e86bcdd..e9be3f4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ode-console", - "version": "0.1.0", + "version": "0.1.0-SNAPSHOT", "dependencies": {}, "devDependencies": { "gulp": "~3.9.1", @@ -37,7 +37,9 @@ "chalk": "~1.1.3", "protractor": "~4.0.3", "uglify-save-license": "~0.4.1", - "jshint": "~2.9.3" + "jshint": "~2.9.3", + "gulp-zip": "~3.2.0", + "maven-deploy": "~1.5.0" }, "engines": { "node": ">=0.10.0" http://git-wip-us.apache.org/repos/asf/ode-console/blob/1c3875a2/src/index.html ---------------------------------------------------------------------- diff --git a/src/index.html b/src/index.html index 1ca17e9..cb94fe2 100644 --- a/src/index.html +++ b/src/index.html @@ -61,14 +61,14 @@ <!-- build:js({.tmp,src}) scripts/app.js --> <!-- inject:js --> + <script src="vendor/jquery.xpath.js"></script> + <script src="vendor/vkbeautify.js"></script> <script src="app/index.js"></script> <script src="app/really.directive.js"></script> <script src="app/soap.service.js"></script> <script src="app/st-select.directive.js"></script> - <script src="vendor/jquery.xpath.js"></script> - <script src="vendor/vkbeautify.js"></script> - <script src="app/dashboard/dashboard.controller.js"></script> <script src="components/navbar/navbar.controller.js"></script> + <script src="app/dashboard/dashboard.controller.js"></script> <script src="app/instance/instance.controller.js"></script> <script src="app/instance/instance.service.js"></script> <script src="app/instance/instanceactions.controller.js"></script>
