mirror of https://github.com/sualko/cloud_bbb
add build command
parent
4b23a0cb5e
commit
09ce9a4795
|
@ -4,3 +4,4 @@
|
||||||
/vendor/
|
/vendor/
|
||||||
node_modules/
|
node_modules/
|
||||||
.php_cs.cache
|
.php_cs.cache
|
||||||
|
/archive/
|
||||||
|
|
22
Makefile
22
Makefile
|
@ -9,7 +9,7 @@ all: dev-setup lint build-js-production test
|
||||||
build: install-composer-deps build-js
|
build: install-composer-deps build-js
|
||||||
|
|
||||||
# Dev env management
|
# Dev env management
|
||||||
dev-setup: clean clean-dev install-composer-deps-dev yarn-init
|
dev-setup: clean clean-dev install-composer-deps-dev js-init
|
||||||
|
|
||||||
composer.phar:
|
composer.phar:
|
||||||
curl -sS https://getcomposer.org/installer | php
|
curl -sS https://getcomposer.org/installer | php
|
||||||
|
@ -20,34 +20,34 @@ install-composer-deps: composer.phar
|
||||||
install-composer-deps-dev: composer.phar
|
install-composer-deps-dev: composer.phar
|
||||||
php composer.phar install -o
|
php composer.phar install -o
|
||||||
|
|
||||||
yarn-init:
|
js-init:
|
||||||
yarn install
|
yarn install
|
||||||
|
|
||||||
yarn-update:
|
yarn-update:
|
||||||
yarn update
|
yarn update
|
||||||
|
|
||||||
# Building
|
# Building
|
||||||
build-js:
|
build-js: js-init
|
||||||
yarn run dev
|
yarn run dev
|
||||||
|
|
||||||
build-js-production:
|
build-js-production: js-init
|
||||||
yarn run build
|
yarn run build
|
||||||
|
|
||||||
watch-js:
|
watch-js: js-init
|
||||||
yarn run watch
|
yarn run watch
|
||||||
|
|
||||||
# Linting
|
# Linting
|
||||||
lint:
|
lint: js-init
|
||||||
yarn run lint
|
yarn run lint
|
||||||
|
|
||||||
lint-fix:
|
lint-fix: js-init
|
||||||
yarn run lint:fix
|
yarn run lint:fix
|
||||||
|
|
||||||
# Style linting
|
# Style linting
|
||||||
stylelint:
|
stylelint: js-init
|
||||||
yarn run stylelint
|
yarn run stylelint
|
||||||
|
|
||||||
stylelint-fix:
|
stylelint-fix: js-init
|
||||||
yarn run stylelint:fix
|
yarn run stylelint:fix
|
||||||
|
|
||||||
phplint:
|
phplint:
|
||||||
|
@ -63,6 +63,10 @@ clean:
|
||||||
clean-dev:
|
clean-dev:
|
||||||
rm -rf node_modules
|
rm -rf node_modules
|
||||||
|
|
||||||
|
pack:
|
||||||
|
mkdir -p archive
|
||||||
|
tar --exclude='./Makefile' --exclude='./webpack*' --exclude='./.*' --exclude='./ts' --exclude='./tests' --exclude='./node_modules' --exclude='./archive' -zcvf ./archive/cloud_bbb.tar.gz . --transform s/^./bigbluebutton/
|
||||||
|
|
||||||
# Tests
|
# Tests
|
||||||
test:
|
test:
|
||||||
./vendor/phpunit/phpunit/phpunit -c phpunit.xml
|
./vendor/phpunit/phpunit/phpunit -c phpunit.xml
|
||||||
|
|
Loading…
Reference in New Issue