Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@holisticon/nativescript-buildhelper

Package Overview
Dependencies
Maintainers
2
Versions
226
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@holisticon/nativescript-buildhelper - npm Package Compare versions

Comparing version 0.1.0-develop-6 to 0.1.0-develop-7

12

lib/buildnumbering.js

@@ -6,2 +6,3 @@ #!/usr/bin/env node

var path = require("path");
var util = require("util");
var child_process_1 = require("child_process");

@@ -11,2 +12,4 @@ // Adds the build number to app versioning

var ARGS = process.argv.slice(2);
var DEBUG_ENV = 'holisticon_tns';
var debugLog = util.debuglog(DEBUG_ENV);
var xmlParser = new xml2js.Parser(), builder = new xml2js.Builder(), manifestPath = 'app/App_Resources/Android/AndroidManifest.xml', plistPath = 'app/App_Resources/iOS/Info.plist', buildNo = ARGS[0] || process.env['BUILD_NUMBER'] || 1, packageJSON = require(path.resolve('.', 'package.json'));

@@ -16,8 +19,11 @@ console.log('Updating with build number: ' + buildNo);

if (!error) {
var manifestXML = fs.readFileSync(manifestPath);
xmlParser.parseString(path.resolve('.', manifestPath), function (err, manifestData) {
var manifestXML_1 = fs.readFileSync(manifestPath);
debugLog('Using following manifest: ', manifestXML_1);
xmlParser.parseString(manifestXML_1, function (err, manifestData) {
var appId = packageJSON.nativescript.id, version = packageJSON.version;
manifestData.manifest.$['android:versionCode'] = buildNo;
manifestData.manifest.$['android:versionName'] = version;
fs.writeFile(manifestPath, builder.buildObject(manifestData), function (err) {
var updatedManifest = builder.buildObject(manifestData);
debugLog('Updating manifest with: ', manifestXML_1);
fs.writeFile(manifestPath, updatedManifest, function (err) {
if (err)

@@ -24,0 +30,0 @@ throw err;

{
"name": "@holisticon/nativescript-buildhelper",
"version": "0.1.0-develop-6",
"version": "0.1.0-develop-7",
"description": "Basic NPM package for helping on automate releasing of NativeScript Apps",

@@ -17,2 +17,3 @@ "bin": {

"postclean": "",
"debug": "node --debug-brk node_modules/jasmine-node/lib/jasmine-node/cli.js test/specs/*.spec.js",
"e2e": "jasmine-node test/e2e/*.spec.js --junitreport --output target/e2e-reports/ --verbose --color",

@@ -19,0 +20,0 @@ "jsdoc": "jsdoc -c ./jsdoc.json -t ./node_modules/ink-docstrap/template -R README.md ./etc",

@@ -43,1 +43,19 @@ # NativeScript Build Helper

Unset = Snapshots only in Release mode
### Advanced Usage
#### Debugging
If you need to debug the tests use the node-inspector:
```
npm run debug
node-inspector --web-port=8282
```
You can then open chrome at *http://127.0.0.1:8282/?port=5858* for debugging.
If you want to have verbose logging add NODE_DEBUG=holisticon_tns:
```
NODE_DEBUG=holisticon_tns node tns-buldnumbering
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc