Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void reinstall_steps() {
- exec {
- workingDir = "${rootDir}/.."
- println "Clear watchman watches"
- executable "sh"
- args "-c", "watchman watch-del-all"
- println "Done!"
- }
- exec {
- println "Delete the `node_modules` folder"
- workingDir = "${rootDir}/.."
- executable "sh"
- args "-c", "rm -rf node_modules"
- println "Done!"
- }
- exec {
- println "Install node modules"
- workingDir "${rootDir}/.."
- executable "sh"
- args "-c", "npm install"
- println "Done!"
- }
- exec {
- println "Reset packager cache"
- workingDir = System.env.TMPDIR
- executable "sh"
- args "-c", "rm -fr /react-*"
- println "Done!"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement