Skip to content

Commit 93095b3

Browse files
committed
Introduce :RescriptBuildWorld and :RescriptCleanWorld
1 parent ed862fe commit 93095b3

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

doc/rescript.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,16 @@ COMMANDS *rescript-commands*
118118
after writing your new .res file, otherwise the compiler will not compile.
119119

120120
*:RescriptBuild*
121-
Builds your current project with g:rescript_build_exe
121+
Builds your current project with g:rescript_build_exe (without -make-world
122+
flag)
123+
124+
*:RescriptBuildWorld*
125+
Builds your current project with g:rescript_build_exe (with -make-world).
126+
This is useful for building your ReScript dependencies as well.
127+
128+
*:RescriptCleanWorld*
129+
Cleans all project files + all ReScript dependencies. This is useful for
130+
fixing stale caches (e.g. when upgrading ReScript versions).
122131

123132
*:RescriptTypeHint*
124133
Uses the g:rescript_editor_support_exe executable to extract

plugin/rescript.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ let g:loaded_vim_rescript = 1
55

66
command! RescriptFormat call rescript#Format()
77
command! RescriptBuild call rescript#BuildProject()
8+
command! RescriptBuildWorld call rescript#BuildProject("-make-world")
9+
command! RescriptCleanWorld call rescript#BuildProject("-clean-world")
810
command! RescriptTypeHint call rescript#TypeHint()
911
command! RescriptInfo call rescript#Info()
1012
command! RescriptJumpToDefinition call rescript#JumpToDefinition()

0 commit comments

Comments
 (0)