summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2021-12-29 12:24:04 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2021-12-29 12:24:04 +0100
commit2136ba277253cda96a7f276ce419d2ec55a6b3c7 (patch)
tree6bd55d7dfd370d46d984a510d78cd435ab7b91f5
parent273e95ddb2a1684a7aecd0e20459059df4773d7d (diff)
Fix dev setup errors
* Drop non-existent phpunit integration tests * Do not run php tests for a dev setup * Replace Makefile one-line commands with the simple npm command Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
-rw-r--r--Makefile30
-rw-r--r--README.md19
2 files changed, 13 insertions, 36 deletions
diff --git a/Makefile b/Makefile
index c056d9d4..43a88474 100644
--- a/Makefile
+++ b/Makefile
@@ -9,14 +9,11 @@ source_package_name=$(source_build_directory)/$(app_name)
appstore_build_directory=$(CURDIR)/build/artifacts
appstore_package_name=$(appstore_build_directory)/$(app_name)
-all: dev-setup lint build-js-production install-composer-deps-dev test-php
+all: dev-setup lint build-js-production install-composer-deps-dev
# Dev env management
dev-setup: clean clean-dev install-npm-deps-dev
-npm-update:
- npm update
-
composer.phar:
curl -sS https://getcomposer.org/installer | php
@@ -31,34 +28,9 @@ install-composer-deps: composer.phar
install-composer-deps-dev: composer.phar
php composer.phar install -o
-# Building
-build-js:
- npm run dev
-
-build-js-production:
- npm run build
-
-watch-js:
- npm run watch
-
-# Testing
-test:
- npm run test
-
test-watch:
npm run test:watch
-test-coverage:
- npm run test:coverage
-
-test-php:
- php composer.phar run test:unit
- php composer.phar run test:integration
-
-test-php-coverage:
- php composer.phar run test:unit -- --coverage-clover=coverage-unit.xml
- php composer.phar run test:integration -- --coverage-clover=coverage-integration.xml
-
# Linting
lint:
npm run lint
diff --git a/README.md b/README.md
index 72331e45..64471293 100644
--- a/README.md
+++ b/README.md
@@ -36,26 +36,31 @@ If you'd like to join, just go through the [issue list](https://github.com/nextc
``` bash
# set up and build for production
-make
+npm ci
+npm run build
# install dependencies
-make dev-setup
+npm ci
# build for dev and watch changes
-make watch-js
+npm run watch
# build for dev
-make build-js
+npm run dev
# build for production with minification
-make build-js-production
+npm run build
```
## Running tests
-You can use the provided Makefile to run all tests by using:
+You can run all front-end tests by using:
```
-make test
+# run tests once
+npm run test
+
+# run tests continuously after every change
+npm run test:watch
```
## :v: Code of conduct