layout: post author:
name: Steve Gill
url: https://twitter.com/stevesgill
title: "Tools Released!" categories: news
We just released a small update to our tools!
--production flag by default. This means that when the commands cordova platform add android or cordova plugin add cordova-plugin-device are run, under the hood we are running npm install cordova-android --production. The --production flag only installs dependencies from package.json and skips devDependencies. This should speed up installs (especially when installing local copies of platforms and plugins). You can turn the flag off by passing the --noprod flag or setting it off globally via cordova config set production false.--save-exact flag. This will allow to save an exact version of a platform or plugin instead of a range. cordova platform add android@6.3.0 --save-exact. You can also set it true by default in your global config via cordova config set save-exact truecordova-node-xcode under the apache cordova banner. It was originally created and used as a dependency for cordova-lib, but now is being used by many other projects as well. We have decided to give the project a major release to 1.0.0. This is to represent stability for the project in terms of semver. No breaking change has happened from the previous release.npm@5+.--link option.cordova platform save.raw from cordova-lib API calls. If you consume cordova-lib as a node module, please update your API calls! You can see an example of the change at https://github.com/apache/cordova-cli/commit/0a42092971dc8fe2f483bd42c3b9de26fdec677c.To update your cordova CLI:
npm install -g cordova@latest
Please report any issues you find at issues.cordova.io!
--save_exact, --production flagsindex.js and test to fix cordova plugin searchplugin add from restore-util.jsvariable-merge.js to deal with plugin.xml variables for uninstallgetPlatformApiFunction and update tests accordinglyconfig.xml if package.json doesn't contain dependency for platformnohookscordova platform savesave.js and rebasedjshint to eslintaddHelper testsREADME to reflect new reposplugman.emit() to events.emit()spec-cordova/ and spec-plugman/ into a single spec/ dir. - put jasmine config and helper modules in top-level spec dir. - changed package.json npm run scripts to reflect purposes of tasks. remove npm run ci. Updated README to reflect package.json npm run script changes.prepare.spec.jsraw from api calls.fetch, common and serve into their own reposnode_modulespackage.json repo items to github mirrors instead of apache repos site--link option--noprod and --production flags as options, --noprod turns off our auto adding of --production flag--save-exact flag to cli and unit testeslint and removed jshintsearchpath as a config optionpackage.json repo items to github mirrors instead of apache repos siteBrowserify, fetch, and autosave and include options with a more detailed description..raw from cordova-lib callssaveexact as an option and updated fetch testeslint and removing jshintgit urlappveyor imagenode_modulespackageJson to github mirrors--link optionaddTo/removeFrom*PbxGroup methodsremoveFromFrameworksPbxGroupisArray so that strings don't cause an error when calling .filterBrowserifypackage.json repo items to github mirrors instead of apache reposeslint to repobugs entry to package.json.