package-xml
Advanced tools
Comparing version 1.0.7 to 1.1.0
@@ -27,4 +27,3 @@ var xml = require('libxmljs') | ||
} catch (error) { | ||
console.error('No Package Name defined or available. Please use the -n "PACKAGE NAME" option to define the Package name.') | ||
process.exit() | ||
self.package_name = null | ||
} | ||
@@ -42,4 +41,3 @@ } | ||
} catch (error) { | ||
console.error('No Api Version defined or available. Please use the -v "37.0" option to define the Package version.') | ||
process.exit() | ||
self.api_version = "37.0" | ||
} | ||
@@ -46,0 +44,0 @@ } |
{ | ||
"name": "package-xml", | ||
"version": "1.0.7", | ||
"version": "1.1.0", | ||
"description": "Build a Salesforce Package.xml file from a src directory", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
# Package.xml generator in JavaScript | ||
`npm install package-xml -g` | ||
change directories to you project directory, which contains your src folder | ||
`package-xml -D ./src -n PackageName -v 37.0` | ||
Options: | ||
change directories to you project directory, which contains your src folder and run | ||
`package-xml` | ||
or, the long version... | ||
`package-xml -D "./src" -n "PackageName" -v "37.0"` | ||
## Options: (No options are required) | ||
* If no directory is provided, it will default to ./src | ||
* If there is no version, it will use version 37 (Summer 16) | ||
* If no name is provided, the package will not have a name | ||
``` | ||
-D, --dir The path to the source directory containing your SFDC files and | ||
metadata. Your package.xml file will end up here. | ||
[string] [required] [default: "./src"] | ||
[string] [default: "./src"] | ||
-v, --version The Saleforce API Version you wish to target with this package. | ||
[string] [required] [default: "37.0"] | ||
-n, --name The name of the package. [string] [required] | ||
[string] [default: "37.0"] | ||
-n, --name The name of the package. | ||
[string] | ||
``` | ||
34409
26
980