From bc3ad393ea9e5cc787eefe40c4144c48391f1a7b Mon Sep 17 00:00:00 2001 From: Dimitar Topuzov Date: Fri, 9 Oct 2015 17:29:07 +0300 Subject: [PATCH 1/3] Add grunt task --- gruntfile.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/gruntfile.js b/gruntfile.js index c0e2773ed..69b261ef0 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -537,6 +537,22 @@ module.exports = function(grunt) { "pack-definitions", "get-ready-packages" ])); + + grunt.registerTask("just-build", ((typeof(grunt.option('runtslint')) != "undefined" && !grunt.option('runtslint')) ? [] : ["tslint:build"]).concat([ + "clean:build", + "shell:getGitSHA", + + "collect-apps-raw-files", + "collect-definitions-raw-files", + "collect-modules-raw-files", + + "compile-ts", + "distribute-apps-files", + "distribute-ts-apps-files", + "distribute-definition-files", + + "pack-modules" + ])); grunt.registerTask("testEnv", function() { console.log('fafla', process.env.NODE_PATH); From 563ab6657e54cc08a766e6c459c1a2ab4c842360 Mon Sep 17 00:00:00 2001 From: Dimitar Topuzov Date: Fri, 9 Oct 2015 17:38:26 +0300 Subject: [PATCH 2/3] Update gruntfile.js --- gruntfile.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/gruntfile.js b/gruntfile.js index 69b261ef0..dae465869 100644 --- a/gruntfile.js +++ b/gruntfile.js @@ -519,19 +519,8 @@ module.exports = function(grunt) { ]); grunt.registerTask("default", ((typeof(grunt.option('runtslint')) != "undefined" && !grunt.option('runtslint')) ? [] : ["tslint:build"]).concat([ - "clean:build", - "shell:getGitSHA", - - "collect-apps-raw-files", - "collect-definitions-raw-files", - "collect-modules-raw-files", - - "compile-ts", - "distribute-apps-files", - "distribute-ts-apps-files", - "distribute-definition-files", - - "pack-modules", + "just-build", + "pack-apps", "pack-ts-apps", "pack-definitions", From 4f62758a356d124f996e8e1cd4404d95c18e0dde Mon Sep 17 00:00:00 2001 From: Dimitar Topuzov Date: Fri, 9 Oct 2015 18:03:53 +0300 Subject: [PATCH 3/3] Fix failing unit tests --- apps/tests/http-tests.ts | 2 +- apps/tests/xml-declaration/mainPage.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/tests/http-tests.ts b/apps/tests/http-tests.ts index 25df556a3..5e560912b 100644 --- a/apps/tests/http-tests.ts +++ b/apps/tests/http-tests.ts @@ -532,7 +532,7 @@ export var test_request_jsonAsContentSentAndReceivedProperly = function (done) { export var test_getString_FromVariousUrls_ShouldWorkProperly = function (done) { var urls = [ - "http://api.openweathermap.org/data/2.5/find?q=London,uk", + "http://it-ebooks-api.info/v1/book/1615005640", "http://www.telerik.com", "https://spreadsheets.google.com/tq?key=1tJ64Y8hje0ui4ap9U33h3KWwpxT_-JuVMSZzxD2Er8k" ]; diff --git a/apps/tests/xml-declaration/mainPage.ts b/apps/tests/xml-declaration/mainPage.ts index 20f79a4c7..ad2eb702b 100644 --- a/apps/tests/xml-declaration/mainPage.ts +++ b/apps/tests/xml-declaration/mainPage.ts @@ -39,7 +39,7 @@ export function buttonTap(args: observable.EventData) { } } - http.getString("http://api.openweathermap.org/data/2.5/find?q=London,uk").then(r=> { + http.getString("http://it-ebooks-api.info/v1/book/1615005640").then(r=> { console.log("R: " + r) });