FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
rescript/scripts/format.sh at master · rescript-lang/rescript · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
rescript-lang
/
rescript
Public
Notifications
You must be signed in to change notification settings
Fork
485
Star
7.4k
Code
Issues
120
Pull requests
47
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
rescript
/
scripts
/
format.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
20 lines (13 loc) · 688 Bytes
Breadcrumbs
rescript
/
scripts
/
format.sh
Copy path
File metadata and controls
executable file
·
20 lines (13 loc) · 688 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
set
-e
shopt
-s extglob
echo
Formatting OCaml code...
opam
exec
-- dune build @fmt --auto-promote
echo
Formatting ReScript code...
files=
$(
find packages tests -type f
\(
-name
"
*.res
"
-o -name
"
*.resi
"
\)
!
-name
"
syntaxErrors*
"
!
-name
"
generated_mocha_test.res
"
!
-path
"
tests/build_tests/super_errors/fixtures/break_keyword_binding.res
"
!
-path
"
tests/build_tests/super_errors_multi/fixtures/Iface_not_compiled/*
"
!
-path
"
tests/syntax_tests*
"
!
-path
"
tests/analysis_tests/tests*
"
!
-path
"
*/node_modules/*
"
)
./cli/rescript.js format
$files
echo
Formatting JS code...
yarn format
echo
Formatting Rust code...
cargo fmt --manifest-path rewatch/Cargo.toml
echo
Done.
Back
|
FazBrowse Home
|
New Git URL