mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-07 18:56:26 +02:00
Piston lint
This commit is contained in:
parent
d61fb8ec5b
commit
f2c91acbe6
57 changed files with 1121 additions and 893 deletions
12
piston
12
piston
|
@ -38,6 +38,7 @@ case $1 in
|
|||
echo " clean-repo Remove all packages from local repo"
|
||||
echo " build-pkg <package> <version> Build a package"
|
||||
echo " rebuild Build and restart the docker container"
|
||||
echo " lint Lint the codebase using prettier"
|
||||
|
||||
else
|
||||
|
||||
|
@ -53,7 +54,11 @@ case $1 in
|
|||
logs) docker_compose logs -f ;;
|
||||
|
||||
restart) docker_compose restart ;;
|
||||
start) docker_compose up -d ;;
|
||||
start)
|
||||
rm -f .git/hooks/pre-commit
|
||||
ln -s $(realpath $(dirname "$0"))/pre-commit .git/hooks/pre-commit
|
||||
docker_compose up -d
|
||||
;;
|
||||
stop) docker_compose down ;;
|
||||
bash) docker_compose exec api /bin/bash ;;
|
||||
|
||||
|
@ -75,6 +80,11 @@ case $1 in
|
|||
docker build repo -t piston-repo-builder
|
||||
docker run --rm -v "$(realpath $(dirname "$0")):/piston" piston-repo-builder --no-server $PKGSLUG
|
||||
;;
|
||||
|
||||
lint)
|
||||
npm install
|
||||
npx prettier --ignore-unknown --write .
|
||||
;;
|
||||
*)
|
||||
cd cli
|
||||
npm i > /dev/null
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue