Merge pull request #913 from NativeScript/UpdateGrunt

Add grunt task
This commit is contained in:
dtopuzov
2015-10-12 09:13:54 +03:00
3 changed files with 13 additions and 8 deletions

View File

@@ -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"
];

View File

@@ -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)
});

View File

@@ -519,6 +519,15 @@ module.exports = function(grunt) {
]);
grunt.registerTask("default", ((typeof(grunt.option('runtslint')) != "undefined" && !grunt.option('runtslint')) ? [] : ["tslint:build"]).concat([
"just-build",
"pack-apps",
"pack-ts-apps",
"pack-definitions",
"get-ready-packages"
]));
grunt.registerTask("just-build", ((typeof(grunt.option('runtslint')) != "undefined" && !grunt.option('runtslint')) ? [] : ["tslint:build"]).concat([
"clean:build",
"shell:getGitSHA",
@@ -531,12 +540,8 @@ module.exports = function(grunt) {
"distribute-ts-apps-files",
"distribute-definition-files",
"pack-modules",
"pack-apps",
"pack-ts-apps",
"pack-definitions",
"get-ready-packages"
]));
"pack-modules"
]));
grunt.registerTask("testEnv", function() {
console.log('fafla', process.env.NODE_PATH);