Skip to content
Snippets Groups Projects
Commit df7a7560 authored by Christoph Wurst's avatar Christoph Wurst Committed by Christoph Wurst
Browse files

update developer setup info

delete obsolete ubuntu install file
use Makefile on travis
parent ed6d5bec
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ cache:
before_install:
- composer self-update
- composer install
- make install-composer-deps
- wget https://raw.githubusercontent.com/owncloud/administration/master/travis-ci/before_install.sh
- bash ./before_install.sh mail $CORE_BRANCH $DB
- cd ../core
......@@ -37,8 +37,7 @@ before_install:
before_script:
- cd apps/mail
- sh -c "if [ '$TEST_JS' = 'TRUE' ]; then npm install --deps; fi"
- sh -c "if [ '$TEST_JS' = 'TRUE' ]; then npm run-script bower_deps; fi"
- sh -c "if [ '$TEST_JS' = 'TRUE' ]; then make dev-setup; fi"
script:
# Test lint
......
......@@ -72,13 +72,14 @@ namespace inbox {
## Developer setup info
Just clone this repo into your apps directory ([ownCloud core installation needed](https://doc.owncloud.org/server/8.1/developer_manual/general/devenv.html)). Additionally you need Composer to install PHP dependencies and npm to get the Javascript dependencies – run this from inside the mail folder:
Just clone this repo into your apps directory ([ownCloud core installation needed](https://doc.owncloud.org/server/8.2/developer_manual/general/devenv.html)). Additionally, [npm](https://docs.npmjs.com/getting-started/installing-node) is needed for installing JavaScript dependencies. On Debian and Ubuntu Systems it can be installed with the following command:
```bash
sudo install node nodejs-legacy
curl -sS https://getcomposer.org/installer | php
php composer.phar install
```
Debian/Ubuntu people, just execute `install_ubuntu.sh`
Once npm is installed, PHP and JavaScript dependencies can be installed by running
```bash
make optimize-js
```
### Nightly builds
......
#!/bin/bash
# install node.js
sudo apt-get install nodejs-legacy npm -y
# get composer
curl -sS https://getcomposer.org/installer | php
# install composer dependencies
php composer.phar install
# JavaScript Development
All source files are stored inside this directory or subdirectories of it. With the help of [requirejs](http://www.requirejs.org/)
any .js and .html template file is loaded into the browser asynchronously if needed. Make sure you have
[debug mode](https://doc.owncloud.org/server/8.2/developer_manual/general/devenv.html#enabling-debug-mode) enabled in your development
setup because this loads source files instead of the compressed one.
## Optimizing file loading for production use
While it's convenient to be able to change any source file and see those changes on the next page load, it takes some
time to load 50+ files right after the browser has loaded the page. Fortunately, requirejs has an optimizer which can
be easily executed with the Makefile in the root of this repository. Simply run
```bash
make opimize-js
```
inside the project's root directory. This combines and compresses all used JavaScript source files and HTML template
files into one file: ``js/mail.min.js``. If [debug mode](https://doc.owncloud.org/server/8.2/developer_manual/general/devenv.html#enabling-debug-mode)
is disabled, this compressed file is then used.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment