summaryrefslogtreecommitdiff
path: root/doc/development
diff options
context:
space:
mode:
authorTim Zallmann <tzallmann@gitlab.com>2018-05-26 20:01:02 +0200
committerLukas Eipert <leipert@gitlab.com>2018-06-15 12:43:03 +0200
commit930baeb92af0dbd97931f8308dec6664819863dc (patch)
tree1a25676466209734c26e6e823eda1e6450e96cd9 /doc/development
parent5f3a219e14c27bb2e3a305f8c9170aaca3220be1 (diff)
downloadgitlab-ce-930baeb92af0dbd97931f8308dec6664819863dc.tar.gz
Added possibility to run prettier against one specific directory to make our conversion easier
Diffstat (limited to 'doc/development')
-rw-r--r--doc/development/new_fe_guide/style/prettier.md14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/development/new_fe_guide/style/prettier.md b/doc/development/new_fe_guide/style/prettier.md
index eb18189282b..6395af6f815 100644
--- a/doc/development/new_fe_guide/style/prettier.md
+++ b/doc/development/new_fe_guide/style/prettier.md
@@ -43,3 +43,17 @@ yarn prettier-all-save
Formats all files in the repository with Prettier. (This should only be used to test global rule updates otherwise you would end up with huge MR's).
The source of these Yarn scripts can be found in `/scripts/frontend/prettier.js`.
+
+### Scripts during Conversion period
+
+```
+node ./scripts/frontend/prettier.js check ./vendor/
+```
+
+This will go over all files in a specific folder check it.
+
+```
+node ./scripts/frontend/prettier.js save ./vendor/
+```
+
+This will go over all files in a specific folder and save it.