From 09ce9a47959f9643b6bda662277732e6f5c46e8b Mon Sep 17 00:00:00 2001 From: sualko Date: Sun, 26 Apr 2020 12:13:24 +0200 Subject: [PATCH] add build command --- .gitignore | 1 + Makefile | 22 +++++++++++++--------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index a52029c..9c5aa2d 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /vendor/ node_modules/ .php_cs.cache +/archive/ diff --git a/Makefile b/Makefile index 4c1446b..6d4e0bb 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ all: dev-setup lint build-js-production test build: install-composer-deps build-js # 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: curl -sS https://getcomposer.org/installer | php @@ -20,34 +20,34 @@ install-composer-deps: composer.phar install-composer-deps-dev: composer.phar php composer.phar install -o -yarn-init: +js-init: yarn install yarn-update: yarn update # Building -build-js: +build-js: js-init yarn run dev -build-js-production: +build-js-production: js-init yarn run build -watch-js: +watch-js: js-init yarn run watch # Linting -lint: +lint: js-init yarn run lint -lint-fix: +lint-fix: js-init yarn run lint:fix # Style linting -stylelint: +stylelint: js-init yarn run stylelint -stylelint-fix: +stylelint-fix: js-init yarn run stylelint:fix phplint: @@ -63,6 +63,10 @@ clean: clean-dev: 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 test: ./vendor/phpunit/phpunit/phpunit -c phpunit.xml