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.
- On your Android device:
- 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 getorpub update. This can be done via the context menu on the Dart project or thepubspec.yamlfile. - 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 arounddemo.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.htmlthat uses a sample element:core-header-panel
- Click the Run icon to run the app.
Getting started with Chrome Dev Editor的更多相关文章
- Chrome Dev Editor:一个新的JavaScript和Dart IDE
在Google IO 2014期间,一位Google工程师带来了Chrome Dev Editor(CDE).该IDE用于创建面向桌面和移动设备的Chrome应用程序和Web应用程序.CDE支持Jav ...
- Chrome Dev Tools :成为更高效的开发人员
原文出处 http://blog.jobbole.com/22065/ 实时CSS Style编辑 选择一个Dom,可以对Dom进行编辑和操作,实时修改Css Style, 同时CssStyle可以保 ...
- chrome dev tools
chrome dev tools介绍一下Chrome dev tools 的基本使用和一些意想不到的小技巧.\\Chrome Developer Tools 是Chrome内嵌的一系列编辑和调试的工具 ...
- [Debug] Debug Node.js Application by using Chrome Dev tools
For example you have a server.js file, and you want to debug some problems; What you can do is: node ...
- [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 ...
- [Debug] How to Debug a NestJs Backend using the Chrome Dev Tools
TO debug NestJS code with Chrome dev tool, we can run: node --inspect-brk dist/rest-api/src/main.js ...
- 前端性能优化之利用 Chrome Dev Tools 进行页面性能分析
背景 我们经常使用 Chrome Dev Tools 来开发调试,但是很少知道怎么利用它来分析页面性能,这篇文章,我将详细说明怎样利用 Chrome Dev Tools 进行页面性能分析及性能报告数据 ...
- 15个你不得不知道的Chrome dev tools的小技巧
转载自:https://www.imooc.com/article/2559 谷歌浏览器如今是Web开发者们所使用的最流行的网页浏览器.伴随每六个星期一次的发布周期和不断扩大的强大的开发功能,Chro ...
- chrome dev debug network 的timeline说明
在使用chrome的时候F12的开发者工具中有个network,其中对每个请求有个timeline的说明,当鼠标放上去会有下面的显示: 这里面的几个指标在说明在chrome使用文档有说明: 下面我用人 ...
随机推荐
- [BZOJ1563][NOI2009]诗人小G(决策单调性优化DP)
模板题. 每个决策点都有一个作用区间,后来的决策点可能会比先前的优.于是对于每个决策点二分到它会比谁在什么时候更优,得到新的决策点集合与区间. #include<cstdio> #incl ...
- [USACO 2016 Dec Gold] Tutorial
Link: 传送门 A: 贪心从小到大插入,用并查集维护连通性 #include <bits/stdc++.h> using namespace std; #define X first ...
- 【构造】Codeforces Round #405 (rated, Div. 1, based on VK Cup 2017 Round 1) A. Bear and Different Names
如果某个位置i是Y,直接直到i+m-1为止填上新的数字. 如果是N,直接把a[i+m-1]填和a[i]相同即可,这样不影响其他段的答案. 当然如果前面没有过Y的话,都填上0就行了. #include& ...
- 【高斯消元】BZOJ1013-[JSOI2008]球形空间产生器sphere
[题目大意] 给出n维空间中给出n+1个点的坐标,求出球心坐标. [思路] 令球心坐标为x1,x2...xn,假设当前第i个点坐标为a1,a2...,an,第i+1个点坐标为b1,b2...,bn,则 ...
- [POJ3728]The merchant
题目大意: 给你一棵n个结点的带权树,有q组询问,问你从u到v的路径上最大值与最小值的差(最大值在最小值后面). 思路: 首先考虑路径上合并两个子路径u->t和t->v时的情况. 假设我们 ...
- Eclipse 4.5插件安装以及其他设置
eclipse安装Veloeclipse.ui_2.0.8 在help-> install new software ->workwith中输入The Eclipse Project ...
- Problem D: 判断上否上三角矩阵
#include<stdio.h> int main() { ][],i,j; while(scanf("%d",&n)!=EOF) { ; //flag用来做 ...
- NAND Flash大容量存储器K9F1G08U的坏块管理方法
转: http://www.360doc.com/content/11/0915/10/7715138_148381804.shtml 在进行数据存储的时候,我们需要保证数据的完整性,而NAND Fl ...
- js模板引擎-art-template常用
art-template javascript 模板引擎 分为原生语法和简洁语法,本文主要是讲简洁语法 基础数据渲染 输出HTML 流程控制 遍历 调用自定义函数方法 子模板引入 基础数据渲染 一.引 ...
- 2011年排名前七位的Linux操作系统。
下面列出了2011年排名前七位的Linux操作系统. Ubuntu Ubuntu 是一个由全球化的专业开发团队建造的操作系统.它包含了所有您需要的应用程序:浏览器.Office 套件.多媒体程序.即时 ...