Include npm related files into Makefile and .gitignore

Extedned Makefile in install/ui
 - $ make clean-local removes npm related files in the install/ui directory
Add node_modules and package-lock.json into .gitignore

Fixes: https://pagure.io/freeipa/issue/7278
Reviewed-By: Christian Heimes <cheimes@redhat.com>
This commit is contained in:
Pavel Vomacka 2017-11-24 11:58:58 +01:00 committed by Christian Heimes
parent 8aca1fe72a
commit 0f28c7e32e
2 changed files with 9 additions and 0 deletions

6
.gitignore vendored
View File

@ -96,6 +96,12 @@ freeipa2-dev-doc
/init/tmpfilesd/ipa.conf
!/install/ui/doc/Makefile.in
/install/ui/node_modules/
/install/ui/package-lock.json
# package-lock file can be commited, but it makes sense for npm packages.
# It stores informations about changes in node_modules. For now it is not
# very useful
# More info: https://docs.npmjs.com/files/package-lock.json
/install/ui/release
/install/ui/css/ipa.css
/install/ui/src/dojo

View File

@ -32,3 +32,6 @@ EXTRA_DIST = \
install-data-hook:
$(INSTALL) -d -m 755 $(DESTDIR)$(appdir)/js/plugins
clean-local:
rm -rf package-lock.json node_modules