Scripts
The scripts
section of the package.json
contains few handy scripts to automate some common operations. You can run any of the desired script like:
npm run <script-name>
For example, to run androidStagingDebug
:
npm run androidStagingDebug
or, using npm:
npm run androidStagingDebug
#
androidDevelopmentDebugIt will run the debug
android build with development
varient.
#
androidTestingDebugIt will run the debug
android build with testing
varient.
#
androidStagingDebugIt will run the debug
android build with staging
varient.
#
androidProductionDebugIt will run the debug
android build with production
varient.
#
iosDevelopmentDebugIt will run the debug
iOS build with development
scheme.
#
iosTestingDebugIt will run the debug
iOS build with testing
scheme.
#
iosStagingDebugIt will run the debug
iOS build with staging
scheme.
#
iosProductionDebugIt will run the debug
iOS build with production
scheme.
#
startIt will start the Metro Bundler
.
#
testIt will run all of the test cases.
#
test:watchIt will run the all of the test cases or the specified test case(after the test
command) in watch
mode. It will automatically re-run the test cases if any of the test case
or the .js
file will be changed.
#
lintIt will check the whole codebase for the lint
issues.
#
postinstallThese are the set of tasks which will run after every dependency installation. These tasks are:
- If you are running the project on MacOS, the it will automatically install the
pods
in theios
directory. If you are not on a MacOS machine, then it will skip the installing the pods.
#
uninstallIt will run all of the tasks mentioned in the postinstall
script above after uninstalling any dependency.