[Libreoffice-commits] online.git: .gitignore loleaflet/Makefile.am
Henry Castro (via logerrit)
logerrit at kemper.freedesktop.org
Fri Apr 17 12:26:19 UTC 2020
.gitignore | 2 ++
loleaflet/Makefile.am | 16 ++++++++++++++++
2 files changed, 18 insertions(+)
New commits:
commit cf61a5cf945e3f33df7b26d32bd3487ce270fcd7
Author: Henry Castro <hcastro at collabora.com>
AuthorDate: Sun Apr 5 09:47:27 2020 -0400
Commit: Henry Castro <hcastro at collabora.com>
CommitDate: Fri Apr 17 14:26:02 2020 +0200
loleaflet: generate jsconfig.json
Very useful with vim plugin YouCompleteMe
with a TSServer-based completion engine for
JavaScript and TypeScript
Change-Id: Ib2961940f171691e10c2af10ebb911283ee1ff20
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91861
Tested-by: Henry Castro <hcastro at collabora.com>
Reviewed-by: Henry Castro <hcastro at collabora.com>
diff --git a/.gitignore b/.gitignore
index 97d8e383b..77bc70bb5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -58,6 +58,8 @@ loolwsd.log
loleaflet/build/dist
loleaflet/dist
loleaflet/npm-shrinkwrap.json
+loleaflet/jsconfig.json
+loleaflet/admin/jsconfig.json
connect
lokitclient
diff --git a/loleaflet/Makefile.am b/loleaflet/Makefile.am
index 87286367f..3554ee1d3 100644
--- a/loleaflet/Makefile.am
+++ b/loleaflet/Makefile.am
@@ -584,6 +584,22 @@ clean-local:
rm -rf node_modules
rm -rf $(builddir)/dist
rm -rf $(builddir)/build/dist
+ @rm -f $(abs_srcdir)/jsconfig.json
+ @rm -f $(abs_srcdir)/admin/jsconfig.json
ctags:
@$(CTAGS) --language-force=JavaScript $(LOLEAFLET_JS_SRC) $(srcdir)/js/global.js
+
+$(abs_srcdir)/jsconfig.json:
+ @printf "{\n \
+ \"compilerOptions\" : {},\n \
+ \"include\" : [\"src/**/*\", \"js/**/*\"],\n \
+ \"exclude\" : [\"node_modules\", \"admin/**/*\"]\n}" > $@
+
+$(abs_srcdir)/admin/jsconfig.json:
+ @printf "{\n \
+ \"compilerOptions\" : {},\n \
+ \"include\" : [\"./**/*\"],\n \
+ \"exclude\" : [\"node_modules\"]\n}" > $@
+
+jsconfig: $(abs_srcdir)/jsconfig.json $(abs_srcdir)/admin/jsconfig.json
More information about the Libreoffice-commits
mailing list