Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lesion/cordova-version-sync
A stupid script to sync your config.xml package version with npm package version specified in your package.json
https://github.com/lesion/cordova-version-sync
cordova npm-version version-sync
Last synced: 2 months ago
JSON representation
A stupid script to sync your config.xml package version with npm package version specified in your package.json
- Host: GitHub
- URL: https://github.com/lesion/cordova-version-sync
- Owner: lesion
- Created: 2017-09-14T17:04:43.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-14T17:16:44.000Z (over 7 years ago)
- Last Synced: 2024-09-19T01:48:31.833Z (4 months ago)
- Topics: cordova, npm-version, version-sync
- Language: JavaScript
- Size: 1.95 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## cordova-version-sync
This script will sync your config.xml package version with npm package version
specified in your package.json.### Usage
you can specify a `version` key in your npm package.json `scripts`
with this script in it:> If preversion, version, or postversion are in the scripts property
> of the package.json, they will be executed as part of running npm version.
[https://docs.npmjs.com/cli/version](https://docs.npmjs.com/cli/version)`npm install cordova-version-sync --save-dev`
then edit package.json to the script:
// somewhere in your package.json
```
"scripts": {
"dev": "node webpack/dev-server.js",
"build": "node webpack/build.js",
"version": "cordova-version-sync"
},
```now you can use `npm version` command and config.xml will follow !