You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@olingo.apache.org by ch...@apache.org on 2014/09/29 08:53:17 UTC
git commit: [OLINGO-437] js: create nuget package.
Repository: olingo-odata4-js
Updated Branches:
refs/heads/master 076a5ad15 -> d37c4df92
[OLINGO-437] js: create nuget package.
Project: http://git-wip-us.apache.org/repos/asf/olingo-odata4-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/olingo-odata4-js/commit/d37c4df9
Tree: http://git-wip-us.apache.org/repos/asf/olingo-odata4-js/tree/d37c4df9
Diff: http://git-wip-us.apache.org/repos/asf/olingo-odata4-js/diff/d37c4df9
Branch: refs/heads/master
Commit: d37c4df9249ab75b6cca5149becafbe7ad7199be
Parents: 076a5ad
Author: challenh <ch...@microsoft.com>
Authored: Mon Sep 29 14:51:10 2014 +0800
Committer: challenh <ch...@microsoft.com>
Committed: Mon Sep 29 14:51:10 2014 +0800
----------------------------------------------------------------------
odatajs/Gruntfile.js | 9 ++++++++-
odatajs/grunt-config/nugetpack.nuspec | 23 +++++++++++++++++++++++
odatajs/package.json | 1 +
3 files changed, 32 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/olingo-odata4-js/blob/d37c4df9/odatajs/Gruntfile.js
----------------------------------------------------------------------
diff --git a/odatajs/Gruntfile.js b/odatajs/Gruntfile.js
index 58e0633..b3c9cee 100644
--- a/odatajs/Gruntfile.js
+++ b/odatajs/Gruntfile.js
@@ -73,6 +73,12 @@ module.exports = function(grunt) {
options: { destination: 'build/doc-test', verbose : false }
}
},
+ "nugetpack" : { // create nuget pagckage
+ dist: {
+ src: 'grunt-config/nugetpack.nuspec',
+ dest: 'build/'
+ }
+ },
"npm-clean": {
options: {force: true},
"build": {
@@ -120,6 +126,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.loadNpmTasks('grunt-curl');
grunt.loadNpmTasks("grunt-jsdoc");
+ grunt.loadNpmTasks("grunt-nuget");
// Start Qunit tests direcly in node js, internally qunit (npm qunit)
// is used, no phantomjs instance required
@@ -148,7 +155,7 @@ module.exports = function(grunt) {
grunt.registerTask('doc-test', ['clearEnv', 'jsdoc:test']);
// Build the odatajs library
- grunt.registerTask('build', ['clean:lib','browserify:src', 'uglify:build', 'concat']);
+ grunt.registerTask('build', ['clean:lib','browserify:src', 'uglify:build', 'concat', 'nugetpack']);
grunt.registerTask('test-browser', ['configureProxies:test-browser', 'connect:test-browser']);
grunt.registerTask('test-node', ['node-qunit:default-tests']);
http://git-wip-us.apache.org/repos/asf/olingo-odata4-js/blob/d37c4df9/odatajs/grunt-config/nugetpack.nuspec
----------------------------------------------------------------------
diff --git a/odatajs/grunt-config/nugetpack.nuspec b/odatajs/grunt-config/nugetpack.nuspec
new file mode 100644
index 0000000..2ec4438
--- /dev/null
+++ b/odatajs/grunt-config/nugetpack.nuspec
@@ -0,0 +1,23 @@
+<?xml version="1.0"?>
+<package xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <metadata xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
+ <title>Olingo OData Client for JavaScript</title>
+ <id>odatajs</id>
+ <tags>restful api open protocol odata client javascript node.js</tags>
+ <version>4.0.0-beta-01</version>
+ <authors>Kobler-Morris Sven, Challen He, Bing Li</authors>
+ <owners>Apache Olingo</owners>
+ <licenseUrl>http://www.apache.org/licenses/LICENSE-2.0</licenseUrl>
+ <projectUrl>http://olingo.apache.org/</projectUrl>
+ <iconUrl>http://olingo.apache.org/img/OlingoOrangeTM.png</iconUrl>
+ <requireLicenseAcceptance>true</requireLicenseAcceptance>
+ <summary>JavaScript library to easily interact with OData V4 service.</summary>
+ <description>odatajs is a lightweight cross-browser JavaScript library that will enable web browser and node.js to consume and interact with OData V4 service.</description>
+ <releaseNotes>
+ This odatajs library for OData V4 is a new version based on datajs(http://datajs.codeplex.com/) which is for OData.
+ </releaseNotes>
+ </metadata>
+ <files>
+ <file src="..\build\lib\*" target="odatajs\" />
+ </files>
+</package>
http://git-wip-us.apache.org/repos/asf/olingo-odata4-js/blob/d37c4df9/odatajs/package.json
----------------------------------------------------------------------
diff --git a/odatajs/package.json b/odatajs/package.json
index e7a122e..8f1e577 100644
--- a/odatajs/package.json
+++ b/odatajs/package.json
@@ -42,6 +42,7 @@
"grunt-contrib-uglify": "^0.4.0",
"grunt-curl": "^2.0.2",
"grunt-jsdoc": "^0.5.6",
+ "grunt-nuget": "^0.1.3",
"through": "^2.3.4"
}
}