{"action":"opened","issue":{"url":"https://api.github.com/repos/paper/cocos2d/issues/1","labels_url":"https://api.github.com/repos/paper/cocos2d/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/paper/cocos2d/issues/1/comments","events_url":"https://api.github.com/repos/paper/cocos2d/issues/1/events","html_url":"https://github.com/paper/cocos2d/issues/1","id":79724307,"number":1,"title":"2.2 用Cocos Console工作流开发网页/原生平台游戏（JSB开发环境简介）","user":{"login":"paper","id":293908,"avatar_url":"https://avatars.githubusercontent.com/u/293908?v=3","gravatar_id":"","url":"https://api.github.com/users/paper","html_url":"https://github.com/paper","followers_url":"https://api.github.com/users/paper/followers","following_url":"https://api.github.com/users/paper/following{/other_user}","gists_url":"https://api.github.com/users/paper/gists{/gist_id}","starred_url":"https://api.github.com/users/paper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paper/subscriptions","organizations_url":"https://api.github.com/users/paper/orgs","repos_url":"https://api.github.com/users/paper/repos","events_url":"https://api.github.com/users/paper/events{/privacy}","received_events_url":"https://api.github.com/users/paper/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-23T04:33:06Z","updated_at":"2015-05-23T04:33:06Z","closed_at":null,"body":"http://cn.cocos2d-x.org/article/index?type=cocos2d-x&url=/doc/cocos-docs-master/manual/framework/cocos2d-js/2-working-environment-and-workflow/2-2-cross-native-browser-game-with-cocos-console/zh.md\r\n\r\n```\r\ncocos new -l js ProjectName\r\n\r\n// 在项目目录下打开终端并执行\r\n// -p指示目标平台，包括web，ios，mac，android，win32，每次编译请选择其中之一\r\ncocos compile -p web|ios|mac|android|win32\r\n \r\n// 除此之外，还可以选择编译模式：-m debug|release\r\n// Web平台还可以添加--advanced来使用Closure Compiler的高级混淆功能对代码进行混淆\r\ncocos compile -p android -m release\r\ncocos compile -p web -m release --advanced\r\n \r\n// 将compile命令替换为run即可在模拟器或真机上运行游戏\r\ncocos run -p web\r\ncocos run -p ios\r\n```"}}