[owncloud-devel] Makefile used in core, with composer, bower for dependencies and future build tasks

Vincent Petry pvince81 at owncloud.com
Fri Sep 2 10:38:31 GMT 2016


The "ownloud/core" repository now relies on a Makefile to pull
dependencies instead of using the "3rdparty" submodule and also comes
with many additional commands.

This means that now composer.json and composer.lock are living in core.

If you are working on master, please run "make" there to setup the
dependencies. No need to run "git submodule update" any more.

A few interesting commands:
- "make": pulls composer and bower dependencies (locked down)
- "make clean": cleans up dependencies, useful for starting over or when
switching to older branches
- "make test-php": run the PHP unit tests with sqlite (replaces
"./autotest.sh sqlite" (configurable through make variables)
- "make test-js": run the Javascript unit tests (replaces "./autotest-js.sh"
- "make test-external": runs one of the external storage tests
(configurable through make variables)
- "make dist": builds a minimal owncloud-core tarball with only core
apps in "build/dist/core", stripped of unwanted files

Some ideas for the near future:
- building documentation from owncloud/documentation repository
- precompile handlebars templates (currently hard-coded in many JS
files): https://github.com/owncloud/core/issues/26006
- minifying/concatenating JS files:
- move more scripts and generators like l10n, mimetype mappings, etc



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.owncloud.org/pipermail/devel/attachments/20160902/3813fd4b/attachment.sig>

More information about the Devel mailing list