No description
Find a file
2024-09-10 11:51:01 +02:00
.github/workflows ci: Update workflows 2024-09-10 11:50:49 +02:00
appinfo Fix code style 2022-06-28 14:50:34 +02:00
css Create skeleton app VOFederation 2022-06-13 18:26:22 +02:00
docs Add documentation stub 2022-06-28 15:53:34 +02:00
img Create skeleton app VOFederation 2022-06-13 18:26:22 +02:00
js Create skeleton app VOFederation 2022-06-13 18:26:22 +02:00
lib/Controller chore: composer run cs:fix 2024-04-29 16:31:48 +02:00
templates Update APP_ID and namespace 2022-06-13 19:15:17 +02:00
tests chore: composer run cs:fix 2024-04-29 16:31:48 +02:00
.gitignore Add .gitignore from nextcloud/app-tutorial 2022-06-28 14:53:49 +02:00
.php-cs-fixer.dist.php Add php-cs configuration file 2022-06-28 14:50:34 +02:00
.travis.yml Update APP_ID and namespace 2022-06-13 19:15:17 +02:00
composer.json Add dev dependencies 2022-06-28 14:50:34 +02:00
COPYING Create skeleton app VOFederation 2022-06-13 18:26:22 +02:00
Makefile Create skeleton app VOFederation 2022-06-13 18:26:22 +02:00
mkdocs.yml Add documentation stub 2022-06-28 15:53:34 +02:00
phpunit.integration.xml Create skeleton app VOFederation 2022-06-13 18:26:22 +02:00
phpunit.xml Create skeleton app VOFederation 2022-06-13 18:26:22 +02:00
README.md Update APP_ID and namespace 2022-06-13 19:15:17 +02:00

VO Federation

Place this app in nextcloud/apps/

Building the app

The app can be built by using the provided Makefile by running:

make

This requires the following things to be present:

  • make
  • which
  • tar: for building the archive
  • curl: used if phpunit and composer are not installed to fetch them from the web
  • npm: for building and testing everything JS, only required if a package.json is placed inside the js/ folder

The make command will install or update Composer dependencies if a composer.json is present and also npm run build if a package.json is present in the js/ folder. The npm build script should use local paths for build systems and package managers, so people that simply want to build the app won't need to install npm libraries globally, e.g.:

package.json:

"scripts": {
    "test": "node node_modules/gulp-cli/bin/gulp.js karma",
    "prebuild": "npm install && node_modules/bower/bin/bower install && node_modules/bower/bin/bower update",
    "build": "node node_modules/gulp-cli/bin/gulp.js"
}

Publish to App Store

First get an account for the App Store then run:

make && make appstore

The archive is located in build/artifacts/appstore and can then be uploaded to the App Store.

Running tests

You can use the provided Makefile to run all tests by using:

make test

This will run the PHP unit and integration tests and if a package.json is present in the js/ folder will execute npm run test

Of course you can also install PHPUnit and use the configurations directly:

phpunit -c phpunit.xml

or:

phpunit -c phpunit.integration.xml

for integration tests