mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00

UPM Website 
GitHub Pages URL: https://upm.mraa.io
Dependencies:
- NodeJs
- Gulp
- Python, specifically Python 2!
- Ruby
- Sass
- Bundler
- A bunch of other stuff installed through bundle and ruby gems
Prepare Dev Environment:
- Run
npm install
, in the same directory as the code. This will install all the dependencies automatically - Run
bundler install
to install Gems dependencies automatically
Gulp Tasks:
gulp clean
: to clean local build directories and resourcesgulp build
: to generate the build for production using _config.yml, deploys to /_sitegulp build:local
: to generated the build using _config_dev.ymlgulp serve
: runs the app locally, using the _config_dev.yml file
Global.yml
- Urls defined for fetching images, source code, and apis
- Whenever there are changes in facets.json/sensordetail.json files, increment the value in ajaxVersion to refresh the cache
- Whenever there are changes in css/js resources, increment the value in resourceVersion to refresh the cache
_assets/gulp_config/paths.js
- Set paths.sensorDataSrc to the root of UPM /src
Static Content:
- The sensor data is kept under /_assets/content/sensorDetail.json
To generate this file with
jq
and latestupm
sources use:find upm/src/ -iname "*.json" | sort | xargs jq -s -c '.' >sensorDetail.json
- The facets data is kept under /_assets/content/facets.json
- If images are missing, copy it over from _assets/gulp_config/images to _/site/assets/images
Miscellaneous:
- _config_dev.yml has configurable properties for local
- _config.yml has properties for production deployment
- CNAME corresponds to the mapped cname in DNS provider
Site Deployment using Travis CI
Documentation can be found here
Description
Languages
C++
47.7%
C
46.4%
CMake
2.3%
SWIG
1.9%
Python
0.6%
Other
1.1%