Skip to content

Commit

Permalink
feat: Split init and update phase
Browse files Browse the repository at this point in the history
  • Loading branch information
3y3 committed Aug 10, 2024
1 parent d5755c2 commit b0e6a87
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions bin/lint
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,24 @@ while (( $# )); do
install|init ) :
INIT=1
;;
update ) :
UPDATE=1
;;
esac
shift
done

if [[ -n $INIT ]]; then
if [[ -n $INIT || -n $UPDATE]]; then
echo "[@diplodoc/lint] Add initial lint configs"

cp -r "$SRCDIR/scaffolding/" .

echo "[@diplodoc/lint] Extend package.json configuration"

node "$SRCDIR/scripts/modify-package.js"

echo "[@diplodoc/lint] Extend .ignore configuration"

node "$SRCDIR/scripts/modify-ignore.js"
fi

if [[ -n $INIT ]]; then
echo "[@diplodoc/lint] Extend package.json configuration"
node "$SRCDIR/scripts/modify-package.js"

$BINDIR/husky install

Expand Down

0 comments on commit b0e6a87

Please sign in to comment.