mirror of
https://gitnet.fr/deblan/gist.git
synced 2021-08-14 08:30:49 +02:00
Installation
This commit is contained in:
parent
3b931ffdd8
commit
17229de284
36
Makefile
Normal file
36
Makefile
Normal file
@ -0,0 +1,36 @@
|
||||
COMPOSER ?= composer
|
||||
BOWER ?= bower
|
||||
|
||||
all: composer
|
||||
all: bower
|
||||
|
||||
prod: COMPOSER_INSTALL_FLAGS += --no-dev
|
||||
prod: all optimize
|
||||
|
||||
composer:
|
||||
@echo
|
||||
#
|
||||
# Installing application's dependencies.
|
||||
#
|
||||
$(COMPOSER) install $(COMPOSER_INSTALL_FLAGS)
|
||||
bower:
|
||||
@echo
|
||||
#
|
||||
# Installing application's dependencies.
|
||||
#
|
||||
$(BOWER) install
|
||||
|
||||
optimize:
|
||||
@echo
|
||||
#
|
||||
# Optimizing Composer's autoloader, can take some time.
|
||||
#
|
||||
$(COMPOSER) dump-autoload --optimize
|
||||
|
||||
update:
|
||||
@echo
|
||||
#
|
||||
# Updating application's depencies.
|
||||
#
|
||||
$(COMPOSER) update
|
||||
$(BOWER) install
|
83
README.md
Normal file
83
README.md
Normal file
@ -0,0 +1,83 @@
|
||||
GIST
|
||||
====
|
||||
|
||||
GIST is an open-source application to share code.
|
||||
|
||||
Requirements
|
||||
------------
|
||||
|
||||
* PHP >= 5.4
|
||||
* GIT
|
||||
* Composer
|
||||
* Bower
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
$ git clone https://gitlab.deblan.org/deblan/gist.deblan.org.git
|
||||
$ cd gist.deblan.org.git
|
||||
$ make
|
||||
|
||||
Composer
|
||||
--------
|
||||
|
||||
Composer can maybe be downloaded from your system's repositories.
|
||||
Else, follow the next instructions:
|
||||
|
||||
### Download
|
||||
|
||||
# With cURL
|
||||
curl -sS https://getcomposer.org/installer | php
|
||||
|
||||
# With Wget
|
||||
wget -O - -q https://getcomposer.org/installer | php
|
||||
|
||||
You can now use it with `php composer.phar [arguments]`.
|
||||
|
||||
### Executable
|
||||
|
||||
mv composer.phar composer
|
||||
chmod +x composer
|
||||
|
||||
Use it with `./composer [arguments]`.
|
||||
|
||||
### Install
|
||||
|
||||
Assuming `~/bin` exists ans is in `$PATH`.
|
||||
|
||||
mv composer ~/bin
|
||||
|
||||
### Dependencies Installation (from `composer.lock`)
|
||||
|
||||
composer install
|
||||
|
||||
### Dependencies Update (will change `composer.lock`)
|
||||
|
||||
composer update
|
||||
|
||||
Bower
|
||||
-----
|
||||
|
||||
### Install
|
||||
|
||||
npm install -g bower
|
||||
|
||||
### Dependencies Installation (from `bower.json`)
|
||||
|
||||
bower install
|
||||
|
||||
### Dependencies Update (will change `bower.json`)
|
||||
|
||||
bower update
|
||||
|
||||
|
||||
Makefile
|
||||
--------
|
||||
|
||||
A Makefile is provided to automate some tasks.
|
||||
|
||||
* `make` will install application's dependencies via Composer,
|
||||
* `make prod` will install dependencies without developmenent requirements
|
||||
and run `make optimize`,
|
||||
* `make optimize` will run Composer's autoloader dump script with classmap
|
||||
only, without dynamic autoload rules,
|
Loading…
Reference in New Issue
Block a user