New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using TypeScript in Zeppelin frontend webapp #321
Conversation
@bzz |
Why are you commenting the process of minify ,uglify and concat the js? |
it was my mistake, reverted by additional commit. On Sun Feb 08 2015 at 2:24:08 PM Anthony Corbacho notifications@github.com
|
I've setup initial structures for each controllers (nav, notebook, paragraph) |
Would be pretty cool if that kind of base interfaces were generated when we create controllers using yeoman. Got a few questions after checking the code:
Not much more to say, it looks like a good job. However I would have prefered if the refactoring was done in a different commit, it gets confusing when we try to understand the changes in synthax of typescript :) |
@corneadoug I'll try not modifying other codes when doing this kind of big code migrating job in the future, for code review readability. And also try yoman integration soon! |
BTW, why the travis build fail on zeppelin-server? Do I need to merge master branch? |
…ent/add-typescript Conflicts: zeppelin-web/app/scripts/controllers/interpreter.js
manually merged #330 |
…ent/add-typescript Conflicts: zeppelin-web/app/scripts/controllers/interpreter.js zeppelin-web/app/scripts/controllers/main.js zeppelin-web/app/scripts/controllers/nav.js zeppelin-web/app/scripts/controllers/notebook.js zeppelin-web/app/scripts/controllers/paragraph.js
Anyone can help fixing the travis build? ADD: |
Cool, glad you solved it! |
I'd like to finalize my changes with this PR, please review this branch! |
Here's my work log
|
The refactoring looks pretty nice, the code dividing too. |
@corneadoug For building, testing, code generation (yeoman), it's quite unfamiliar to me so it will be cool if experts help or assist me. |
I've updated docs about generating codes via yeoman. Also it generates ts codes under script/controller/ but current ts code location is script/ts/controller. |
…escript Conflicts: spark/src/main/java/com/nflabs/zeppelin/spark/SparkSqlInterpreter.java
While PR brings a lot of change, every other PR that make update on zeppelin-web is going to conflict with this PR. This branch is working well. I think it's better to merge and handle remaining issue separately. Before more PR conflicts with it. |
no, I would like to handle everything before merging.
|
@anthonycorbacho |
What is the point of going to typescript is its to break the way we the app
|
@corneadoug Would you comment more on toolings and testing? What kind of tools and tests are we using now?
|
I will help on this PR this week end to finish the merge to typescript. We are using grunt and yoman. On the test we are using jshint that can be replaced by tslint and I guess Basically the scenario we want are:
Bonus/Can be done in a different PR
|
@corneadoug I watched Angular2 (alpha) demo today, http://youtu.be/uD6Okha_Yj0?t=8m51s It implies Angular2 will adopt ATScript ( @bzz mentioned it on mailing list, it's Typescript superset), it will be good for us to prepare Typescript or at least, we can think we're going to right way! |
@swkimme Since we moved to Apache Foundation, we should probably move this PR, however I was thinking of doing a bit a code cleaning, especially since GSOC2015 will start soon, and we may have somebody working on the Visualization part. (currently the .js code is really messy, I guess you know it since you split some in this PR) There also has been quite some changes since we started this PR, and lot of code to transform in classes anyway, as well as a bit of research to do. What do you say, I start refactoring on basic AngularJS on the Apache Foundation git. And then we recreate a PR to switch to typescript? |
Good! I guess you're an expert on frontend, I'll agree whatever you're On Fri, Apr 3, 2015 at 10:49 AM CORNEAU Damien notifications@github.com
|
I will create a PR for basic angularjs code refactoring, I will use some of the modifications you did in this PR. Once it's done, let's create a PR for typescript. I will setup the folder structure and front-end build tools, then we can work together to migrate code to typescript (Since there will be a lot of classes to do) |
Agreed. On 2015년 4월 3일 (금) 12:04 CORNEAU Damien notifications@github.com wrote:
|
As discussed in this @dev thread this is the intial step on using TypeScript
TODOs: