Skip to content
This repository was archived by the owner on May 22, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ deplo%: _deploy_apex
@$(DONE)

# verify
verif%: _verify_lintspaces _verify_eslint _verify_scss_lint
verif%: _verify_lintspaces _verify_eslint _verify_scss_lint _verify_yaml
@$(DONE)

# build (includes build-production)
Expand Down Expand Up @@ -88,6 +88,9 @@ _verify_eslint:
_verify_lintspaces:
@if [ -e .editorconfig ] && [ -e package.json ]; then $(call GLOB) | xargs lintspaces -e .editorconfig -i js-comments,html-comments && $(DONE); fi

_verify_yaml:
@if [ -e package.json ] && [ "$(shell $(call GLOB,'*.yml'))" != "" ]; then $(call GLOB,'*.yml') | xargs js-yaml > /dev/null && $(DONE); fi

_verify_scss_lint:
# HACK: Use backticks rather than xargs because xargs swallow exit codes (everything becomes 1 and stoopidly scss-lint exits with 1 if warnings, 2 if errors)
@if [ -e .scss-lint.yml ]; then { scss-lint -c ./.scss-lint.yml `$(call GLOB,'*.scss')`; if [ $$? -ne 0 -a $$? -ne 1 ]; then exit 1; fi; $(DONE); } fi
Expand Down