mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
39 lines
661 B
Bash
Executable File
39 lines
661 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
|
|
show_help() {
|
|
echo "Usage: ./scripts/lint.sh -ban word_to_ban"
|
|
echo ""
|
|
echo "-ban (optional)"
|
|
}
|
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
cd "$DIR/../"
|
|
|
|
echo "====== lint Lib ====="
|
|
|
|
npm run lint-lib || exit 1
|
|
|
|
echo "====== lint E2E ====="
|
|
|
|
npm run lint-e2e || exit 1
|
|
|
|
echo "====== lint Demo shell ====="
|
|
|
|
ng lint dev || exit 1
|
|
|
|
echo "====== spellcheck ====="
|
|
|
|
npm run spellcheck || exit 1
|
|
|
|
echo "====== styleLint ====="
|
|
|
|
npm run stylelint || exit 1
|
|
|
|
echo "====== exclude-word ====="
|
|
|
|
if grep "envalfresco" . -R --exclude-dir={node_modules,.history,.idea,scripts}; then
|
|
echo not permitted word
|
|
exit 1
|
|
fi
|