Advertisement
nonameolsson

Untitled

Apr 18th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.77 KB | None | 0 0
  1. void reinstall_steps() {
  2.     exec {
  3.         workingDir = "${rootDir}/.."
  4.         println "Clear watchman watches"
  5.         executable "sh"
  6.         args "-c", "watchman watch-del-all"
  7.         println "Done!"
  8.     }
  9.     exec {
  10.         println "Delete the `node_modules` folder"
  11.         workingDir = "${rootDir}/.."
  12.         executable "sh"
  13.         args "-c", "rm -rf node_modules"
  14.         println "Done!"
  15.     }
  16.     exec {
  17.         println "Install node modules"
  18.         workingDir "${rootDir}/.."
  19.         executable "sh"
  20.         args "-c", "npm install"
  21.         println "Done!"
  22.     }
  23.     exec {
  24.         println "Reset packager cache"
  25.         workingDir = System.env.TMPDIR
  26.         executable "sh"
  27.         args "-c", "rm -fr /react-*"
  28.         println "Done!"
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement