Getting started with Chrome Dev Editor

转自:https://github.com/GoogleChrome/chromedeveditor/blob/master/doc/GettingStarted.md

Installation

  • Install Chrome Dev Editor on Chrome
  • Open Chrome Dev Editor from the Chrome App Launcher or chrome://apps

Git workflow

  • Click on the Menu icon and select Git Clone...
  • Provide the Repository URL (eg: https://github.com/srsaroop/todomvc)
  • Click CLONE
  • The project will cloned into the Files view on the left
  • Right-click the project on the Files view and you can see more Git options
    • Create branch…
    • Switch branch…
    • Commit changes…
    • Push to origin…
  • When you make change to files in the project, blue markers will appear on the Files view to indicate files that are modified.
  • To commit and push changes:
    • Right-click the project and select Commit changes…
    • Enter your name, email and commit message and click COMMIT
    • Right-click the project and select Push to origin...

Chrome App workflow (including Mobile)

  • Create a new project from the JavaScript Chrome App template or clone from an existing Git repository (eg:https://github.com/srsaroop/todomvc)
  • Click the Run icon to run the Chrome App
  • Chrome App for Mobile workflow: Chrome Apps can now run on Android devices using a toolchain based on Apache Cordova.
    • On your Android device:

      • Enable off-store installs: Settings > Security > Device Administration > Unknown sources > allow installation of apps from sources other than the Play Store
      • Enable developer options: Settings > About phone > Build number > Tap 7 times Enable USB debugging:Settings > Developer options > DEBUGGING > USB debugging
      • Install the latest Chrome App Developer tool for Mobile (App Dev Tool) on your Android device
        • On your Android device, open https://bit.ly/cradt
        • On your Android device, click on the green button to download the latest version ofChromeAppDeveloperTool-debug.apk
        • Click OK on the popup dialog to download the APK
        • Once the download is complete, click on the notification for the download
        • Click Install and open the App Dev Tool
    • Connect your Android device to your computer with a USB cable
    • Click Deploy to Mobile… and deploy via USB
    • Click OK on the authorization dialog on your Android device
    • Your Chrome App should launch on the App Dev Tool
    • Double two-finger tap to go back to the main App Dev Tool menu
    • Use chrome://inspect to remote debug your Chrome App
      • Once you open the Devtools inspector (with Discover USB Devices checked), it will claim the phone‘s USB interface and will not release it. CDE will not be able to re-deploy the application. This is an issue we‘re looking into. As a work-around for now, uncheck Discover USB Devices in DevTools and close the chrome://inspect page. This will force Devtools to give up the USB interface and CDE will be able to deploy to the phone again.
  • To publish your Chrome App to the Chrome Web Store, click on the Menu icon and select Publish to Chrome Web Store...

Dart workflow

  • Create a new project from the Dart Web App template or clone from an existing Git repository
  • Pub workflow. The CDE has built-in support for Pub, Dart’s package manager. We automatically run Pub when your project is first created or imported. After that, pub is only run when the user explicitly invokes pub get or pub update. This can be done via the context menu on the Dart project or the pubspec.yaml file.
  • Dart analysis. Dart analysis runs automatically as you edit your code! Syntax and semantic errors are called out in the editing area and in the files view. In addition, the CDE can optional display an outline of your Dart file’s contents. This helps to quickly understand the contents of a file and navigate within it.
  • Running a Web App. To run your web app, just hit the Run button on the toolbar or right click on a file in the files view and select ‘Run’. This will open a new tab in the system browser with the contents of your web app, served up from the CDE. You can keep this tab open and refresh it as you make changes in the CDE and see those reflected in your application.
  • Running on Dartium vs Chrome. When serving a Dart app up to regular Chrome, the CDE’s built in web server will compile your Dart files to JavaScript on the fly. This is great for seeing your application run and allows you to use any browser to develop. For larger applications however, it can lead to delays as the CDE compiles new versions on your application. An alternative workflow is to run your application in Dartium, a special version of Chromium with the Dart VM included. No compilation will be required to view your app; your development cycle will be much shorter (and your app will run faster too!). You can download Dartium from http://www.dartlang.org/tools/download.html. In order to use it to develop, simply hit ‘Run’ and copy the URL for your application from Chrome to Dartium.

Polymer workflow

  • Creating a new custom JavaScript Polymer element

    • Create a new project from the JavaScript Polymer custom template
    • CDE automatically does the following:
      • Installs Polymer and its dependencies via Bower. You should be able to see the installed folders in bower_components.
      • Creates HTML and CSS for the custom HTML element named <name>-polymer
      • Creates demo.html, which uses the <name>-polymer element
      • Creates a top-level index.html, which wraps around demo.html
    • Click the Run icon to run the app.
  • Using an existing core Polymer element
    • Create a new project from the JavaScript Web App using Polymer
    • CDE automatically does the following:
      • Installs Polymer and its dependencies using Bower. You should be able to see the installed folders in bower_components.
      • Installs core Polymer elements in bower_components.
      • index.html that uses a sample element: core-header-panel
    • Click the Run icon to run the app.
时间: 2024-12-28 00:53:28

Getting started with Chrome Dev Editor的相关文章

Chrome Dev Editor:一个新的JavaScript和Dart IDE

在Google IO 2014期间,一位Google工程师带来了Chrome Dev Editor(CDE).该IDE用于创建面向桌面和移动设备的Chrome应用程序和Web应用程序.CDE支持JavaScript和Dart. Chrome Dev Editor是Google试图简化开发的又一款工具,它本身就是作为一个Chrome应用程序构建.它可以从Chrome Web商店安装,而且带有若干模板,用于为使用Polymer的JavaScript应用程序.Polymer组件.Web Starter

Chrome Dev Tools :成为更高效的开发人员

原文出处 http://blog.jobbole.com/22065/ 实时CSS Style编辑 选择一个Dom,可以对Dom进行编辑和操作,实时修改Css Style, 同时CssStyle可以保存变更历史版本. 保存变更历史版本: 同时支持可以在Chrome 载入的Css文件正文中自由的修改. 网络交互 当一个页面载入时,所有发出的请求可以在“Network”里监听到,同时下面有”All”, “Documents”, ”Stylesheets”, “Images”, “Scripts”,

chrome dev tools

chrome dev tools介绍一下Chrome dev tools 的基本使用和一些意想不到的小技巧 Chrome Developer Tools 是Chrome内嵌的一系列编辑和调试的工具.可以有效的追踪布局的问题,为javascript设置断点并对程序进行优化 ====打开方式====Ctrl+Shift+I  打开/关闭调试工具.(显示的是上次关前的tab)Ctrl+Shift+J  打开/关闭调试工具的Console页Ctrl+Shift+C  打开调试工具Elements页 在此

谷歌 Chrome Dev Tools 浅析 – 成为更高效的 Developer

Google Chrome在招来了FireFox,FireBug的项目组领导人John J. Barton后,Chrome Dev Tools也变的越来越好用,越来越方便了.本文根据Google I/O上对Chrome Dev Tools的介绍(http://www.youtube.com/watch?v=N8SS-rUEZPg),和相关PPT:http://chrome-devtools-io2011.appspot.com/template/index.html 整理而来.(参照的Chrom

chrome dev debug network 的timeline说明

原文:http://www.cnblogs.com/yjf512/p/3668877.html 在使用chrome的时候F12的开发者工具中有个network,其中对每个请求有个timeline的说明,当鼠标放上去会有下面的显示: 这里面的几个指标在说明在chrome使用文档有说明: 下面我用人类的语言理解下: Proxy 与代理服务器的连接时间. 比如我使用了switch proxy搭建了一个gae,本地启动的goagent就是proxy server.我的所有页面请求都和这个goagent进

[Tools] Create your own mobile emulator device by using Chrome dev tool

Using the New Device Emulation Interface The Device Emulation interface changed a bit with the newer version of Chrome Dev Tools. Here are the instructions for emulating the required device characteristics in the new UI: Select Edit from the Responsi

页面性能分析-Chrome Dev Tools

一.分析面板介绍 进行页面性能快速分析的主要是图中圈出来的几个模块功能: Network : 页面中各种资源请求的情况,这里能看到资源的名称.状态.使用的协议(http1/http2/quic...).资源类型.资源大小.资源时间线等情况 Performance : 页面各项性能指标的火焰图,这里能看到白屏时间.FPS.资源加载时间线.longtask.内存变化曲线等等信息 Memory : 可以记录某个时刻的页面内存情况,一般用于分析内存泄露 JavaScript Profiler : 可以记

关于Chrome Dev Tool

★注意点一:函数名,方法名要拼写准确;

谷歌 Chrome Dev Tools查找JavaScript

1.使用Ctrl+Shift+F, 打开查找窗口, 查找支持正则表达式: 2.查找函数定义:Ctrl + Shift + o 3.查找文件: Ctrl + o 4.. 实时修改 JavaScript代码 页面外链JavaScript文件在 Script Panel中可以直接修改,改完后Ctrl + s 保存, 会立即生效,但是不支持 Html 页面中 JavaScript 修改,经过 Pretty print 格式化的JavaScript也不支持实时修改. 5. 自建Script文件 在Cons