FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
uniswap_interface_sc/scripts/prettier.sh at main · stringcode86/uniswap_interface_sc · GitHub
stringcode86
/
uniswap_interface_sc
Public
forked from
Uniswap/interface
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
uniswap_interface_sc
/
scripts
/
prettier.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
20 lines (14 loc) · 427 Bytes
Breadcrumbs
uniswap_interface_sc
/
scripts
/
prettier.sh
Copy path
File metadata and controls
executable file
·
20 lines (14 loc) · 427 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!
/bin/bash
#
Default check
mode=
"
-c
"
#
Can change to write with "--write"
if
[[
"
$1
"
==
"
--write
"
]]
;
then
mode=
"
-w
"
fi
#
Store the directory from which the script was called
CALLER_DIR=
"
$(
pwd
)
"
#
Get the directory of the script
SCRIPT_DIR=
"
$(
cd
"
$(
dirname
"
${BASH_SOURCE[0]}
"
)
"
&&
pwd
)
"
#
Change to the script directory
cd
"
$SCRIPT_DIR
/..
"
./node_modules/.bin/prettier
$mode
$CALLER_DIR
--ignore-path .prettierignore
Back
|
FazBrowse Home
|
New Git URL