diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -157,15 +157,23 @@ composer_dependencies: clean | |||
157 | composer install --no-dev --prefer-dist | 157 | composer install --no-dev --prefer-dist |
158 | find vendor/ -name ".git" -type d -exec rm -rf {} + | 158 | find vendor/ -name ".git" -type d -exec rm -rf {} + |
159 | 159 | ||
160 | ### download 3rd-party frontend libraries | ||
161 | frontend_dependencies: | ||
162 | yarn install | ||
163 | |||
164 | ### Build frontend dependencies | ||
165 | build_frontend: frontend_dependencies | ||
166 | yarn run build | ||
167 | |||
160 | ### generate a release tarball and include 3rd-party dependencies and translations | 168 | ### generate a release tarball and include 3rd-party dependencies and translations |
161 | release_tar: composer_dependencies htmldoc translate | 169 | release_tar: composer_dependencies htmldoc translate build_frontend |
162 | git archive --prefix=$(ARCHIVE_PREFIX) -o $(ARCHIVE_VERSION).tar HEAD | 170 | git archive --prefix=$(ARCHIVE_PREFIX) -o $(ARCHIVE_VERSION).tar HEAD |
163 | tar rvf $(ARCHIVE_VERSION).tar --transform "s|^vendor|$(ARCHIVE_PREFIX)vendor|" vendor/ | 171 | tar rvf $(ARCHIVE_VERSION).tar --transform "s|^vendor|$(ARCHIVE_PREFIX)vendor|" vendor/ |
164 | tar rvf $(ARCHIVE_VERSION).tar --transform "s|^doc/html|$(ARCHIVE_PREFIX)doc/html|" doc/html/ | 172 | tar rvf $(ARCHIVE_VERSION).tar --transform "s|^doc/html|$(ARCHIVE_PREFIX)doc/html|" doc/html/ |
165 | gzip $(ARCHIVE_VERSION).tar | 173 | gzip $(ARCHIVE_VERSION).tar |
166 | 174 | ||
167 | ### generate a release zip and include 3rd-party dependencies and translations | 175 | ### generate a release zip and include 3rd-party dependencies and translations |
168 | release_zip: composer_dependencies htmldoc translate | 176 | release_zip: composer_dependencies htmldoc translate build_frontend |
169 | git archive --prefix=$(ARCHIVE_PREFIX) -o $(ARCHIVE_VERSION).zip -9 HEAD | 177 | git archive --prefix=$(ARCHIVE_PREFIX) -o $(ARCHIVE_VERSION).zip -9 HEAD |
170 | mkdir -p $(ARCHIVE_PREFIX)/{doc,vendor} | 178 | mkdir -p $(ARCHIVE_PREFIX)/{doc,vendor} |
171 | rsync -a doc/html/ $(ARCHIVE_PREFIX)doc/html/ | 179 | rsync -a doc/html/ $(ARCHIVE_PREFIX)doc/html/ |
@@ -207,3 +215,8 @@ htmldoc: | |||
207 | ### Generate Shaarli's translation compiled file (.mo) | 215 | ### Generate Shaarli's translation compiled file (.mo) |
208 | translate: | 216 | translate: |
209 | @find inc/languages/ -name shaarli.po -execdir msgfmt shaarli.po -o shaarli.mo \; | 217 | @find inc/languages/ -name shaarli.po -execdir msgfmt shaarli.po -o shaarli.mo \; |
218 | |||
219 | ### Run ESLint check against Shaarli's JS files | ||
220 | eslint: | ||
221 | @yarn run eslint assets/vintage/js/ | ||
222 | @yarn run eslint assets/default/js/ | ||