Title: Project build for the OData library for JavaScript
Notice: Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
.
http://www.apache.org/licenses/LICENSE-2.0
.
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
# Building the Olingo OData Client for JavaScript
### Test tool prerequisites
Open your (git-)bash and navigate to the folder
``olingo-odata4-js/``
Entry the *grunt -version* command to show the version of the globaly installed grund-client and the local grunt installation:
$ grunt -version
grunt-cli v0.1.13
grunt v0.4.5
### Build
To build the odatajs library use the grunt task chain **build**.
**``grunt build``**
This task builds the odatajs library
The files are created in the ./_build folder:
* /doc-src
Documentation
* /lib
The ODataJs library
* /tmp
Folder for temporary build artefacts. E.g. logfile from the license-check
**``grunt release``**
This task builds the odatajs library and creates the files for the release
The release files are created in the ./_dist/odatajs- folder:
* odatajs-version-doc.zip
Documentation, "/doc" directory zipped to file **odatajs-version-doc.zip**
* odatajs-version-lib.zip
Library, zipped "/lib" directory to file **odatajs-version-lib.zip**
* odatajs-version-sources.zip
Sources, zipped "/sources" directory to file **odatajs-version-sources.zip**
**``release-sign``**
Signs the zipped files in the /_dist folder. The signing files are also stored in the /_dist folder.
### Sign the NuGet package
The odatajs..nupkg filed needs to be signed manually.
* md5
>openssl dgst -md5 odatajs.4.0.0.nupkg > odatajs.4.0.0.nupkg.md5*
* sha512
>gpg --print-md SHA512 odatajs.4.0.0.nupkg > odatajs.4.0.0.nupkg.sha512
* asc
>gpg --armor --detach-sign odatajs.4.0.0.nupkg
### Check the license headers
Please ensure that the rat tool is properly installed (see project-setup documentaion) and run
**``grunt license-check``**
The license-check log files are created in the ./_build/tmp directory.