Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_retention.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-08-08 22:37:05 +0300
committerJoas Schilling <coding@schilljs.com>2022-10-17 14:53:09 +0300
commit364f171b02386d947d09f5ad5ab461f2b2c101f8 (patch)
treeb171b03ae6a816ca9aaa6ead50f4c080221c458a /Makefile
parent77bff4948610dcaf660ea67b918f23c1eeed6475 (diff)
Clean package
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile53
1 files changed, 45 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 67c8566..0c5a37c 100644
--- a/Makefile
+++ b/Makefile
@@ -11,6 +11,39 @@ version+=master
all: appstore
+# Dev env management
+dev-setup: clean npm-init
+
+npm-init:
+ npm ci
+
+npm-update:
+ npm update
+
+# Building
+build-js:
+ npm run dev
+
+build-js-production:
+ npm run build
+
+watch-js:
+ npm run watch
+
+# Linting
+lint:
+ npm run lint
+
+lint-fix:
+ npm run lint:fix
+
+# Style linting
+stylelint:
+ npm run stylelint
+
+stylelint-fix:
+ npm run stylelint:fix
+
release: appstore create-tag
create-tag:
@@ -20,35 +53,39 @@ create-tag:
clean:
rm -rf $(build_dir)
rm -rf node_modules
+ rm -rf js
-appstore: clean
+appstore: dev-setup build-js-production
mkdir -p $(sign_dir)
rsync -a \
--exclude=/build \
- --exclude=/check-handlebars-templates.sh \
- --exclude=/compile-handlebars-templates.sh \
+ --exclude=/.eslintrc.js \
+ --exclude=/babel.config.js \
--exclude=/CONTRIBUTING.md \
--exclude=/composer.json \
--exclude=/composer.lock \
--exclude=/docs \
- --exclude=/.drone.yml \
--exclude=/.git \
--exclude=/.github \
- --exclude=/issue_template.md \
- --exclude=/l10n/l10n.pl \
- --exclude=/README.md \
--exclude=/.gitattributes \
--exclude=/.gitignore \
--exclude=/.l10nignore \
+ --exclude=/Makefile \
+ --exclude=/node_modules \
--exclude=/.php-cs-fixer.cache \
--exclude=/.php-cs-fixer.dist.php \
+ --exclude=/package.json \
+ --exclude=/package-lock.json \
--exclude=/psalm.xml \
+ --exclude=/README.md \
--exclude=/screenshots \
+ --exclude=/src \
+ --exclude=/stylelint.config.js \
--exclude=/tests \
--exclude=/translationfiles \
--exclude=/.tx \
--exclude=/vendor \
- --exclude=/Makefile \
+ --exclude=/webpack.config.js \
$(project_dir)/ $(sign_dir)/$(app_name)
tar -czf $(build_dir)/$(app_name).tar.gz \
-C $(sign_dir) $(app_name)