Add Gruntfile and package.json to ui directory

Those files are used when running WebUI unit tests from command line.

- Gruntfile specifies grunt task which can run the webui tests.
- symlink to src/freeipa/package.json where are specified npm packages
  which are required for running those test.
  There is only symlink to not duplicite package.json file

Related: https://pagure.io/freeipa/issue/7278
Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
Pavel Vomacka 2017-11-21 08:53:21 +01:00 committed by Christian Heimes
parent 8b25ac88e1
commit c48ac2819b
3 changed files with 63 additions and 34 deletions

11
install/ui/Gruntfile.js Normal file
View File

@ -0,0 +1,11 @@
module.exports = function(grunt) {
grunt.initConfig({
qunit: {
all: [
'test/all_tests.html'
]
}
});
grunt.loadNpmTasks('grunt-contrib-qunit');
};

1
install/ui/package.json Symbolic link
View File

@ -0,0 +1 @@
src/freeipa/package.json

View File

@ -1,36 +1,53 @@
{
"name": "freeipa",
"description": "Web UI for FreeIPA, an integrated security information management solution.",
"version": "1.0",
"keywords": ["FreeIPA","Identity management", "Red Hat", "Web UI"],
"maintainers": [{
"name": "Petr Vobornik"
}],
"contributors": [{
"name": "Petr Vobornik"
},{
"name": "Endi Sukma Dewata"
},{
"name": "Adam Young"
},{
"name": "Pavel Zuna"
},{
"name": "Ana Krivokapic"
}],
"licenses": [{
"type": "GPLv3",
"url": "http://www.gnu.org/licenses/gpl-3.0.html"
}],
"bugs": "https://fedorahosted.org/freeipa/",
"repositories": [{
"type": "git",
"url": "git://git.fedorahosted.org/git/freeipa.git ",
"path": "install/ui/js/freeipa"
}],
"dependencies": {
"dojo": "~1.8.1"
"name": "freeipa",
"description": "Web UI for FreeIPA, an integrated security information management solution.",
"version": "4.6.90",
"keywords": [
"FreeIPA",
"Identity management",
"Red Hat",
"Web UI"
],
"maintainers": [
{
"name": "Petr Vobornik"
}
],
"contributors": [
{
"name": "Pavel Vomacka"
},
"main": "src",
"homepage": "http://freeipa.org/",
"dojoBuild": "freeipa.profile.js"
}
{
"name": "Petr Vobornik"
},
{
"name": "Endi Sukma Dewata"
},
{
"name": "Adam Young"
},
{
"name": "Pavel Zuna"
},
{
"name": "Ana Krivokapic"
}
],
"license": "GPL-3.0",
"bugs": "https://pagure.io/freeipa/issues",
"repository": {
"type": "git",
"url": "https://pagure.io/freeipa.git",
"path": "install/ui/js/freeipa"
},
"devDependencies": {
"grunt": "^1.0.1",
"grunt-contrib-qunit": "^2.0.0"
},
"dependencies": {
"dojo": "~1.8.1"
},
"main": "src",
"homepage": "http://freeipa.org/",
"dojoBuild": "freeipa.profile.js"
}