Currently, I am immersed in an angular js project and I have a desire to streamline the execution of the following two commands.
./node_modules/protractor/bin/webdriver-manager update
./node_modules/protractor/bin/webdriver-manager start
The challenge lies in the fact that my angular project on github is relatively small. Although I have included all necessary dependencies in my package.json file, when my friend cloned the project from git, he faced an issue where protractor installed successfully but webdriver did not start without running the aforementioned commands. As a solution, I aim to create a script to automate this process and even incorporate protractor ./conf.js
.
In my research, I have learned about the option to write an npm script, however, I struggled to find comprehensive documentation regarding where to include the script and how to execute it. Your input and suggestions are greatly appreciated.