22
Making Eclipse with HTML and JavaScript fun again! Max Rydahl Andersen Consulting Engineer, Red Hat 2015-03-11 EclipseCon, San Francisco

Making Eclipse with HTML and JavaScript fun again! · Live Reload • Live reload of changes - No refresh needed • Uses defacto standard LiveReload protocol • Use with remote/local

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Making Eclipse with HTML and JavaScript fun again! · Live Reload • Live reload of changes - No refresh needed • Uses defacto standard LiveReload protocol • Use with remote/local

Making Eclipse with HTML and JavaScript fun

again!Max Rydahl Andersen

Consulting Engineer, Red Hat 2015-03-11 EclipseCon, San Francisco

Page 2: Making Eclipse with HTML and JavaScript fun again! · Live Reload • Live reload of changes - No refresh needed • Uses defacto standard LiveReload protocol • Use with remote/local

Full disclosure• Worked on Eclipse tooling 10+ years

• Leading JBoss Tools project and JBoss Developer Studio product

• 2014 Eclipse Board Member - Sustaining Member representative

• 2015 - Red Hat Strategic Developer Board member

• Want to make Eclipse better

• …but I’m also a user of plenty other tools :)

Page 3: Making Eclipse with HTML and JavaScript fun again! · Live Reload • Live reload of changes - No refresh needed • Uses defacto standard LiveReload protocol • Use with remote/local

This talk1.What we have done

2.What we would like to do

Page 4: Making Eclipse with HTML and JavaScript fun again! · Live Reload • Live reload of changes - No refresh needed • Uses defacto standard LiveReload protocol • Use with remote/local

Do you use Eclipse for web/javascript development ?

Page 5: Making Eclipse with HTML and JavaScript fun again! · Live Reload • Live reload of changes - No refresh needed • Uses defacto standard LiveReload protocol • Use with remote/local

HTMLLive Reload

JavaScriptCordova

AngularJS

JQuery

BrowserSim

Deployment REST

Page 6: Making Eclipse with HTML and JavaScript fun again! · Live Reload • Live reload of changes - No refresh needed • Uses defacto standard LiveReload protocol • Use with remote/local

HTML5 JavaScript

Demo

Page 7: Making Eclipse with HTML and JavaScript fun again! · Live Reload • Live reload of changes - No refresh needed • Uses defacto standard LiveReload protocol • Use with remote/local

HTML 5

• Using native browser

• Runs a “mini” server in background for serving out content

• Live Preview with source navigation

• Works with JavaScript

Page 8: Making Eclipse with HTML and JavaScript fun again! · Live Reload • Live reload of changes - No refresh needed • Uses defacto standard LiveReload protocol • Use with remote/local

JavaScript

• Forced Less False positive/negative error markers in JSDT

• Integrated Tern for JavaScript content assist

• Zero-config for Eclipse JSDT projects

• Easy to extend with additional frameworks

Page 9: Making Eclipse with HTML and JavaScript fun again! · Live Reload • Live reload of changes - No refresh needed • Uses defacto standard LiveReload protocol • Use with remote/local

JavaScript

Page 10: Making Eclipse with HTML and JavaScript fun again! · Live Reload • Live reload of changes - No refresh needed • Uses defacto standard LiveReload protocol • Use with remote/local

Live Reload BrowserSim

Demo

Page 11: Making Eclipse with HTML and JavaScript fun again! · Live Reload • Live reload of changes - No refresh needed • Uses defacto standard LiveReload protocol • Use with remote/local

Live Reload• Live reload of changes - No refresh needed

• Uses defacto standard LiveReload protocol

• Use with remote/local server or static file content

• Use any device that has browser with web socket support

• Use with non-html too (i.e. asciidoc)

Page 12: Making Eclipse with HTML and JavaScript fun again! · Live Reload • Live reload of changes - No refresh needed • Uses defacto standard LiveReload protocol • Use with remote/local

(Mobile) Browser Simulator

• Quick/fast Simulation of web browsers

• Skinned - great for screenshots

• Simulate Rotate/touch events

• Connect chrome debugger

• Synchronized browsing

Page 13: Making Eclipse with HTML and JavaScript fun again! · Live Reload • Live reload of changes - No refresh needed • Uses defacto standard LiveReload protocol • Use with remote/local

AngularJS• Use eclipse-angularjs - based on tern

• Angello Zerr

• Automatically available if angularjs detected in editor

• Content assist/Angular expressions

• Early Access - in progress

Page 14: Making Eclipse with HTML and JavaScript fun again! · Live Reload • Live reload of changes - No refresh needed • Uses defacto standard LiveReload protocol • Use with remote/local

AngularJS++

Page 15: Making Eclipse with HTML and JavaScript fun again! · Live Reload • Live reload of changes - No refresh needed • Uses defacto standard LiveReload protocol • Use with remote/local

AngularJS++

Page 16: Making Eclipse with HTML and JavaScript fun again! · Live Reload • Live reload of changes - No refresh needed • Uses defacto standard LiveReload protocol • Use with remote/local

How are we making Eclipse more fun to use for

javascript/html development

Page 17: Making Eclipse with HTML and JavaScript fun again! · Live Reload • Live reload of changes - No refresh needed • Uses defacto standard LiveReload protocol • Use with remote/local

Red Hat is now leading Eclipse JSDT

Victor Rubezhny [email protected]

@redhat.com

Page 18: Making Eclipse with HTML and JavaScript fun again! · Live Reload • Live reload of changes - No refresh needed • Uses defacto standard LiveReload protocol • Use with remote/local

What have been done ?

• Better html attribute validation

• Fixed (some parts of) JavaScript Parser

• Tern/JSDT integration

Page 19: Making Eclipse with HTML and JavaScript fun again! · Live Reload • Live reload of changes - No refresh needed • Uses defacto standard LiveReload protocol • Use with remote/local

What been looked at

• bower contribution from Obeo

• easy import (contributed to Mars incubator)

Page 20: Making Eclipse with HTML and JavaScript fun again! · Live Reload • Live reload of changes - No refresh needed • Uses defacto standard LiveReload protocol • Use with remote/local

What would we like to look at ?

• npm/bower (jgit shallow clone roadblock)

• make javascript parser/validation/content assist pluggable/externalizable

• More dynamic content assist

• orion/tern @ eclipse ?

• revive JSDT Debug

• Be useful and at least less annoying

• …your ideas/contributions ?

Page 21: Making Eclipse with HTML and JavaScript fun again! · Live Reload • Live reload of changes - No refresh needed • Uses defacto standard LiveReload protocol • Use with remote/local

Speak Up ! [email protected]

What do you want/need ? What can you do to help ?

:) @maxandersen

http://tools.jboss.org

Speak Up ! [email protected]

What do you want/need ? What can you do to help ?

:) @maxandersen

http://tools.jboss.org

Page 22: Making Eclipse with HTML and JavaScript fun again! · Live Reload • Live reload of changes - No refresh needed • Uses defacto standard LiveReload protocol • Use with remote/local

+1 0 -1

Sign in: www.eclipsecon.org

Evaluate the sessions