From c3f92995dfd8e30f8daad4010bc75be88a61913e Mon Sep 17 00:00:00 2001 From: rosen-vladimirov Date: Wed, 17 Feb 2016 23:44:48 +0200 Subject: [PATCH 1/2] Fix livesync of TypeScript projects Pass .js.map and .ts as excluded patterns for livesync. Fix livesync of TypeScript projects - make sure gaze does not trigger any livesync logic in case the file that's changed is excluded via any pattern from livesync data. Currently when .ts file is change, gaze detects changes for .ts, .js and .js.map files and fails as only .js files exist in platforms dir. --- lib/common | 2 +- lib/services/livesync/livesync-service.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/common b/lib/common index d22c5cadca..9ea72d51ec 160000 --- a/lib/common +++ b/lib/common @@ -1 +1 @@ -Subproject commit d22c5cadcabf7d89bf41558a59d477be2635efe2 +Subproject commit 9ea72d51ec24537f15bd6d8f72de0bc0eb20d0cc diff --git a/lib/services/livesync/livesync-service.ts b/lib/services/livesync/livesync-service.ts index 8eb83a9c40..6a81215557 100644 --- a/lib/services/livesync/livesync-service.ts +++ b/lib/services/livesync/livesync-service.ts @@ -53,11 +53,12 @@ class LiveSyncService implements ILiveSyncService { let platformData = this.$platformsData.getPlatformData(platformLowerCase); this.ensureAndroidFrameworkVersion(platformData).wait(); - let liveSyncData = { + let liveSyncData: ILiveSyncData = { platform: platform, appIdentifier: this.$projectData.projectId, projectFilesPath: path.join(platformData.appDestinationDirectoryPath, constants.APP_FOLDER_NAME), syncWorkingDirectory: path.join(this.$projectData.projectDir, constants.APP_FOLDER_NAME), + excludedProjectDirsAndFiles: ["**/*.js.map", "**/*.ts"] }; this.$liveSyncServiceBase.sync(liveSyncData).wait(); }).future()(); From 79eb4643bb1196e8bd18ac33d2574ffd055a306d Mon Sep 17 00:00:00 2001 From: rosen-vladimirov Date: Thu, 18 Feb 2016 10:55:17 +0200 Subject: [PATCH 2/2] Set version to 1.6.1 Set version to 1.6.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 86929a1908..b88da43b6e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "nativescript", "preferGlobal": true, - "version": "1.6.0", + "version": "1.6.1", "author": "Telerik ", "description": "Command-line interface for building NativeScript projects", "bin": {