{"action":"created","comment":{"url":"https://api.github.com/repos/Icenium/icenium-cli/pulls/comments/22660541","id":22660541,"diff_hunk":"@@ -0,0 +1,112 @@\n+///<reference path=\"../.d.ts\"/>\n+\"use strict\";\n+\n+import path = require(\"path\");\n+import util = require(\"util\");\n+\n+import frameworkProjectBaseLib = require(\"./framework-project-base\");\n+import helpers = require(\"../common/helpers\");\n+\n+export class MobileWebSiteProject extends frameworkProjectBaseLib.FrameworkProjectBase implements Project.IFrameworkProject {\n+\tconstructor(private $config: IConfiguration,\n+\t\t$fs: IFileSystem,\n+\t\t$logger: ILogger,\n+\t\tprivate $projectConstants: Project.IProjectConstants,\n+\t\tprivate $projectFilesManager: Project.IProjectFilesManager,\n+\t\tprivate $templatesService: ITemplatesService,\n+\t\t$resources: IResourceLoader) {\n+\t\tsuper($logger, $fs, $resources);\n+\t}\n+\n+\tpublic get name(): string {\n+\t\treturn this.$projectConstants.TARGET_FRAMEWORK_IDENTIFIERS.MobileWebSite;\n+\t}\n+\n+\tpublic get capabilities(): IProjectCapabilities {\n+\t\treturn {\n+\t\t\tbuild: false,\n+\t\t\tbuildCompanion: false,\n+\t\t\tdeploy: false,\n+\t\t\tsimulate: true,\n+\t\t\tlivesync: false,\n+\t\t\tlivesyncCompanion: false,\n+\t\t\tupdateKendo: false\n+\t\t};\n+\t}\n+\n+\tpublic get defaultProjectTemplate(): string {\n+\t\treturn this.$config.DEFAULT_WEBSITE_PROJECT_TEMPLATE;\n+\t}\n+\n+\tpublic get liveSyncUrl(): string {\n+\t\treturn \"\";\n+\t}\n+\n+\tpublic get requiredAndroidApiLevel(): number {\n+\t\treturn 10;  // 2.3 Gingerbread\n+\t}\n+\n+\tpublic get configFiles():  Project.IConfigurationFile[] {\n+\t\treturn [];\n+\t}\n+\n+\tpublic getProjectTargets(projectDir: string): IFuture<string[]> {\n+\t\tvar result: string[] = [];\n+\t\treturn (() => { return result; }).future<string[]>()();\n+\t}\n+\n+\tpublic getTemplateFilename(name: string): string {\n+\t\treturn util.format(\"Telerik.Mobile.MobileWebSite.%s.zip\", name);\n+\t}\n+\n+\tpublic alterPropertiesForNewProject(properties: any, projectName: string): void {\n+\t\tthis.alterPropertiesForNewProjectBase(properties, projectName);\n+\t}\n+\n+\tpublic projectTemplatesString(): IFuture<string> {\n+\t\treturn this.$templatesService.getTemplatesString(/.*Telerik\\.Mobile\\.MobileWebsite\\.(.+)\\.zip/);\n+\t}\n+\n+\tpublic getProjectFileSchema(): IFuture<any> {\n+\t\treturn (() => { }).future<any>()();\n+\t}","path":"lib/project/web-site-project.ts","position":72,"original_position":72,"commit_id":"f2d9da5e268b8b5d97eac7083a7209719013687d","original_commit_id":"f2d9da5e268b8b5d97eac7083a7209719013687d","user":{"login":"teobugslayer","id":5443453,"avatar_url":"https://avatars.githubusercontent.com/u/5443453?v=3","gravatar_id":"","url":"https://api.github.com/users/teobugslayer","html_url":"https://github.com/teobugslayer","followers_url":"https://api.github.com/users/teobugslayer/followers","following_url":"https://api.github.com/users/teobugslayer/following{/other_user}","gists_url":"https://api.github.com/users/teobugslayer/gists{/gist_id}","starred_url":"https://api.github.com/users/teobugslayer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/teobugslayer/subscriptions","organizations_url":"https://api.github.com/users/teobugslayer/orgs","repos_url":"https://api.github.com/users/teobugslayer/repos","events_url":"https://api.github.com/users/teobugslayer/events{/privacy}","received_events_url":"https://api.github.com/users/teobugslayer/received_events","type":"User","site_admin":false},"body":"Why this function is not implemented? It should return the mobile web site schema, like the other classes do.","created_at":"2015-01-08T16:09:15Z","updated_at":"2015-01-08T16:09:15Z","html_url":"https://github.com/Icenium/icenium-cli/pull/650#discussion_r22660541","pull_request_url":"https://api.github.com/repos/Icenium/icenium-cli/pulls/650","_links":{"self":{"href":"https://api.github.com/repos/Icenium/icenium-cli/pulls/comments/22660541"},"html":{"href":"https://github.com/Icenium/icenium-cli/pull/650#discussion_r22660541"},"pull_request":{"href":"https://api.github.com/repos/Icenium/icenium-cli/pulls/650"}}},"pull_request":{"url":"https://api.github.com/repos/Icenium/icenium-cli/pulls/650","id":27010570,"html_url":"https://github.com/Icenium/icenium-cli/pull/650","diff_url":"https://github.com/Icenium/icenium-cli/pull/650.diff","patch_url":"https://github.com/Icenium/icenium-cli/pull/650.patch","issue_url":"https://api.github.com/repos/Icenium/icenium-cli/issues/650","number":650,"state":"open","locked":false,"title":"Refactor project class","user":{"login":"Fatme","id":760518,"avatar_url":"https://avatars.githubusercontent.com/u/760518?v=3","gravatar_id":"","url":"https://api.github.com/users/Fatme","html_url":"https://github.com/Fatme","followers_url":"https://api.github.com/users/Fatme/followers","following_url":"https://api.github.com/users/Fatme/following{/other_user}","gists_url":"https://api.github.com/users/Fatme/gists{/gist_id}","starred_url":"https://api.github.com/users/Fatme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fatme/subscriptions","organizations_url":"https://api.github.com/users/Fatme/orgs","repos_url":"https://api.github.com/users/Fatme/repos","events_url":"https://api.github.com/users/Fatme/events{/privacy}","received_events_url":"https://api.github.com/users/Fatme/received_events","type":"User","site_admin":false},"body":"http://teampulse.telerik.com/view#item/283024 \r\nShould be merged after this PR https://github.com/telerik/mobile-cli-lib/pull/131","created_at":"2015-01-08T06:51:13Z","updated_at":"2015-01-08T16:09:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6b7f4172147c4082987a18bca7ed95b84c6f56af","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Icenium/icenium-cli/pulls/650/commits","review_comments_url":"https://api.github.com/repos/Icenium/icenium-cli/pulls/650/comments","review_comment_url":"https://api.github.com/repos/Icenium/icenium-cli/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Icenium/icenium-cli/issues/650/comments","statuses_url":"https://api.github.com/repos/Icenium/icenium-cli/statuses/f2d9da5e268b8b5d97eac7083a7209719013687d","head":{"label":"Icenium:fatme/refactor-project","ref":"fatme/refactor-project","sha":"f2d9da5e268b8b5d97eac7083a7209719013687d","user":{"login":"Icenium","id":1152554,"avatar_url":"https://avatars.githubusercontent.com/u/1152554?v=3","gravatar_id":"","url":"https://api.github.com/users/Icenium","html_url":"https://github.com/Icenium","followers_url":"https://api.github.com/users/Icenium/followers","following_url":"https://api.github.com/users/Icenium/following{/other_user}","gists_url":"https://api.github.com/users/Icenium/gists{/gist_id}","starred_url":"https://api.github.com/users/Icenium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Icenium/subscriptions","organizations_url":"https://api.github.com/users/Icenium/orgs","repos_url":"https://api.github.com/users/Icenium/repos","events_url":"https://api.github.com/users/Icenium/events{/privacy}","received_events_url":"https://api.github.com/users/Icenium/received_events","type":"Organization","site_admin":false},"repo":{"id":14398834,"name":"icenium-cli","full_name":"Icenium/icenium-cli","owner":{"login":"Icenium","id":1152554,"avatar_url":"https://avatars.githubusercontent.com/u/1152554?v=3","gravatar_id":"","url":"https://api.github.com/users/Icenium","html_url":"https://github.com/Icenium","followers_url":"https://api.github.com/users/Icenium/followers","following_url":"https://api.github.com/users/Icenium/following{/other_user}","gists_url":"https://api.github.com/users/Icenium/gists{/gist_id}","starred_url":"https://api.github.com/users/Icenium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Icenium/subscriptions","organizations_url":"https://api.github.com/users/Icenium/orgs","repos_url":"https://api.github.com/users/Icenium/repos","events_url":"https://api.github.com/users/Icenium/events{/privacy}","received_events_url":"https://api.github.com/users/Icenium/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Icenium/icenium-cli","description":"Cross Platform Command Line Interface for Telerik AppBuilder","fork":false,"url":"https://api.github.com/repos/Icenium/icenium-cli","forks_url":"https://api.github.com/repos/Icenium/icenium-cli/forks","keys_url":"https://api.github.com/repos/Icenium/icenium-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Icenium/icenium-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Icenium/icenium-cli/teams","hooks_url":"https://api.github.com/repos/Icenium/icenium-cli/hooks","issue_events_url":"https://api.github.com/repos/Icenium/icenium-cli/issues/events{/number}","events_url":"https://api.github.com/repos/Icenium/icenium-cli/events","assignees_url":"https://api.github.com/repos/Icenium/icenium-cli/assignees{/user}","branches_url":"https://api.github.com/repos/Icenium/icenium-cli/branches{/branch}","tags_url":"https://api.github.com/repos/Icenium/icenium-cli/tags","blobs_url":"https://api.github.com/repos/Icenium/icenium-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Icenium/icenium-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Icenium/icenium-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/Icenium/icenium-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Icenium/icenium-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/Icenium/icenium-cli/languages","stargazers_url":"https://api.github.com/repos/Icenium/icenium-cli/stargazers","contributors_url":"https://api.github.com/repos/Icenium/icenium-cli/contributors","subscribers_url":"https://api.github.com/repos/Icenium/icenium-cli/subscribers","subscription_url":"https://api.github.com/repos/Icenium/icenium-cli/subscription","commits_url":"https://api.github.com/repos/Icenium/icenium-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/Icenium/icenium-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/Icenium/icenium-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/Icenium/icenium-cli/issues/comments/{number}","contents_url":"https://api.github.com/repos/Icenium/icenium-cli/contents/{+path}","compare_url":"https://api.github.com/repos/Icenium/icenium-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Icenium/icenium-cli/merges","archive_url":"https://api.github.com/repos/Icenium/icenium-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Icenium/icenium-cli/downloads","issues_url":"https://api.github.com/repos/Icenium/icenium-cli/issues{/number}","pulls_url":"https://api.github.com/repos/Icenium/icenium-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/Icenium/icenium-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/Icenium/icenium-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Icenium/icenium-cli/labels{/name}","releases_url":"https://api.github.com/repos/Icenium/icenium-cli/releases{/id}","created_at":"2013-11-14T15:27:18Z","updated_at":"2015-01-08T09:14:33Z","pushed_at":"2015-01-08T16:08:38Z","git_url":"git://github.com/Icenium/icenium-cli.git","ssh_url":"git@github.com:Icenium/icenium-cli.git","clone_url":"https://github.com/Icenium/icenium-cli.git","svn_url":"https://github.com/Icenium/icenium-cli","homepage":"","size":32942,"stargazers_count":16,"watchers_count":16,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":9,"forks":3,"open_issues":9,"watchers":16,"default_branch":"master"}},"base":{"label":"Icenium:master","ref":"master","sha":"2219bf7ca3befafb1b8ac929b926a6c8c2ad9cdc","user":{"login":"Icenium","id":1152554,"avatar_url":"https://avatars.githubusercontent.com/u/1152554?v=3","gravatar_id":"","url":"https://api.github.com/users/Icenium","html_url":"https://github.com/Icenium","followers_url":"https://api.github.com/users/Icenium/followers","following_url":"https://api.github.com/users/Icenium/following{/other_user}","gists_url":"https://api.github.com/users/Icenium/gists{/gist_id}","starred_url":"https://api.github.com/users/Icenium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Icenium/subscriptions","organizations_url":"https://api.github.com/users/Icenium/orgs","repos_url":"https://api.github.com/users/Icenium/repos","events_url":"https://api.github.com/users/Icenium/events{/privacy}","received_events_url":"https://api.github.com/users/Icenium/received_events","type":"Organization","site_admin":false},"repo":{"id":14398834,"name":"icenium-cli","full_name":"Icenium/icenium-cli","owner":{"login":"Icenium","id":1152554,"avatar_url":"https://avatars.githubusercontent.com/u/1152554?v=3","gravatar_id":"","url":"https://api.github.com/users/Icenium","html_url":"https://github.com/Icenium","followers_url":"https://api.github.com/users/Icenium/followers","following_url":"https://api.github.com/users/Icenium/following{/other_user}","gists_url":"https://api.github.com/users/Icenium/gists{/gist_id}","starred_url":"https://api.github.com/users/Icenium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Icenium/subscriptions","organizations_url":"https://api.github.com/users/Icenium/orgs","repos_url":"https://api.github.com/users/Icenium/repos","events_url":"https://api.github.com/users/Icenium/events{/privacy}","received_events_url":"https://api.github.com/users/Icenium/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Icenium/icenium-cli","description":"Cross Platform Command Line Interface for Telerik AppBuilder","fork":false,"url":"https://api.github.com/repos/Icenium/icenium-cli","forks_url":"https://api.github.com/repos/Icenium/icenium-cli/forks","keys_url":"https://api.github.com/repos/Icenium/icenium-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Icenium/icenium-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Icenium/icenium-cli/teams","hooks_url":"https://api.github.com/repos/Icenium/icenium-cli/hooks","issue_events_url":"https://api.github.com/repos/Icenium/icenium-cli/issues/events{/number}","events_url":"https://api.github.com/repos/Icenium/icenium-cli/events","assignees_url":"https://api.github.com/repos/Icenium/icenium-cli/assignees{/user}","branches_url":"https://api.github.com/repos/Icenium/icenium-cli/branches{/branch}","tags_url":"https://api.github.com/repos/Icenium/icenium-cli/tags","blobs_url":"https://api.github.com/repos/Icenium/icenium-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Icenium/icenium-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Icenium/icenium-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/Icenium/icenium-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Icenium/icenium-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/Icenium/icenium-cli/languages","stargazers_url":"https://api.github.com/repos/Icenium/icenium-cli/stargazers","contributors_url":"https://api.github.com/repos/Icenium/icenium-cli/contributors","subscribers_url":"https://api.github.com/repos/Icenium/icenium-cli/subscribers","subscription_url":"https://api.github.com/repos/Icenium/icenium-cli/subscription","commits_url":"https://api.github.com/repos/Icenium/icenium-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/Icenium/icenium-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/Icenium/icenium-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/Icenium/icenium-cli/issues/comments/{number}","contents_url":"https://api.github.com/repos/Icenium/icenium-cli/contents/{+path}","compare_url":"https://api.github.com/repos/Icenium/icenium-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Icenium/icenium-cli/merges","archive_url":"https://api.github.com/repos/Icenium/icenium-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Icenium/icenium-cli/downloads","issues_url":"https://api.github.com/repos/Icenium/icenium-cli/issues{/number}","pulls_url":"https://api.github.com/repos/Icenium/icenium-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/Icenium/icenium-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/Icenium/icenium-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Icenium/icenium-cli/labels{/name}","releases_url":"https://api.github.com/repos/Icenium/icenium-cli/releases{/id}","created_at":"2013-11-14T15:27:18Z","updated_at":"2015-01-08T09:14:33Z","pushed_at":"2015-01-08T16:08:38Z","git_url":"git://github.com/Icenium/icenium-cli.git","ssh_url":"git@github.com:Icenium/icenium-cli.git","clone_url":"https://github.com/Icenium/icenium-cli.git","svn_url":"https://github.com/Icenium/icenium-cli","homepage":"","size":32942,"stargazers_count":16,"watchers_count":16,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":9,"forks":3,"open_issues":9,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Icenium/icenium-cli/pulls/650"},"html":{"href":"https://github.com/Icenium/icenium-cli/pull/650"},"issue":{"href":"https://api.github.com/repos/Icenium/icenium-cli/issues/650"},"comments":{"href":"https://api.github.com/repos/Icenium/icenium-cli/issues/650/comments"},"review_comments":{"href":"https://api.github.com/repos/Icenium/icenium-cli/pulls/650/comments"},"review_comment":{"href":"https://api.github.com/repos/Icenium/icenium-cli/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Icenium/icenium-cli/pulls/650/commits"},"statuses":{"href":"https://api.github.com/repos/Icenium/icenium-cli/statuses/f2d9da5e268b8b5d97eac7083a7209719013687d"}}}}