make-it-snow v1.4.4
Snow
Simple cli for :
updating the package id in cordova config.xml file
updating the version in cordova config.xml file
updating the application name in cordova config.xml file
getting the version from cordova config.xml file
getting the package id from cordova config.xml file
getting the application name from cordova config.xml file
in a cordova mobile repo
Installing
npm install -g make-it-snowUsage
- For the package id update :
snow package <APP_IDENTIFIER>or
snow p <APP_IDENTIFIER>This command will replace the package id in your config.xml file with the specified APP_IDENTIFIER.
- For the version update :
snow version <APP_VERSION>or
snow v <APP_VERSION>This command will replace the version in your config.xml file with the specified APP_VERSION.
- For the app name update :
snow name <APP_NAME>or
snow n <APP_NAME>This command will replace the application name in your config.xml file with the specified APP_NAME.
- For the package get :
snow get-packageor
snow gpThis command will return as an output the current package id present in the config.xml.
- For the version get :
snow get-versionor
snow gvThis command will return as an output the current version present in the config.xml.
- For the name get :
snow get-nameor
snow gnThis command will return as an output the current app name present in the config.xml.
snow also accepts (applicable to all commands listed above) a --dir or -d option where -d stands for --dir, which can be used to specify the directory path of the config.xml in case of it is not present in the current repo.
Example :
snow v 2.0.0 -d src/main/appDevelopment
You will need node/yarn installed on your machine.
Installing dependencies:
yarnOnce you have dependencies installed you can do
yarn startThis will watch for changes and build the application in the build directory.
Tests
Running tests is easy:
yarn testOr in watch mode:
yarn run watch-testPublishing
If you have the right to publish, once a new version is created simply do:
yarn build
cd build
npm publish