GithubHelp home page GithubHelp logo

alibaba / thera Goto Github PK

View Code? Open in Web Editor NEW
299.0 34.0 32.0 21.28 MB

Thera is an integrated development environment(IDE) powered by Alibaba.com aimed for improving mobile hybrid solution develop experience, such as weex, luaview, react native.

Home Page: https://github.com/alibaba/Thera

License: Other

Shell 0.14% CoffeeScript 41.75% CSS 0.81% JavaScript 20.67% Batchfile 0.04% HTML 0.01% Python 0.42% C 21.19% Objective-C 0.12% C++ 14.83%
ide mobile-hybrid mobile hybrid thera weex luaview react-native android ios

thera's Introduction

Welcome to Thera 中文版

Build Status

Thera is a develop tool aiming to improve the developing experience of hybrid mobile app, which use weex, luaview, react native solition. It is built on top of Atom.   Thera is founded by Alibaba, and managed by the open source community.
We embrace open sources, hoping you join us.
You can follow us on Twitter, fire a bug on github issues, vote for new features, and make pull requests.

Use Thera to develop hybrid apps

You can use Weex, React Native to develop hybrid apps, We choose Weex to introduce its features.

  • Project Navigator (on the left): After created a project, you can navigate files in the navigation bar. Generally there are scripts, project description(.thera), test files and resources.
  • Editor (in the middle): Thera supports both hintcontent assistgrammar and fast findkey location
  • Property Panel (on the right): Inspector dynamic view properties information on editing.
  • Console (at the bottom): You can check console.log in logcat and thera status in status

Besides,

  • Performance : Use FPSmemoryload time inspector to locate performance issue.
  • Team work : Integrate with test tools and cloud service,automatically testdata mockcode management etc.

Alt text


Quick-start guide

This guide introduces how to create a new project and run it on simulator or device.

STEP 1 - create a new project:

follow the video below.

Little red ridning hood

  • After install Thera, click start a new Thera project for Weex to create a Weex project
  • Set the project name,Thera will create a main.we file as the entrance of the project.
  • Set the project location where the project is located.

Note: the project location should be able to access, otherwise creating will fail. You can check recent created projects in the project navigator, and remove them in folder.

Several files will be created automatically after crating project, Thera recommend you using main.we as the project entrance file, using mock.json to mock local data, and build directory to save weex transforming result. You can modify the settings in the Thera project configuration file -- .thera/launch.json . Some files are used by Thera and cloud service, you can ignore them.

STEP 2 - Edit:

Please follow the video Little red ridning hood

  • Context-dependent code completion
  • Code highlight of Weex & Vue
  • Realtime hint when editing Weex based on linter

Note: Use .we file extension or specify weex file format to enable features above.

STEP 3 - Run:

Please follow the video Little red ridning hood

  • Thera will detect local simulators. After click run button, Thera will start corresponding simulator and install oreo preview app for you to check result on real time.
  • Thera will start a local delegate server (named Dumpling) in order to make connection between Thera and preview app. Dumpling use local port 7001 by default, you can change it in Thera configuration.
  • When multiple device connected to Thera, you can choose one device(simulator or real device) at a time to check variables, properties, performance.

Note: please make sure you have installed simulators. We recommend you check simulators on XCode/Genymotion first, and restart Thera if simulators cannot be recognized. Because starting Simulator at first time may fail.


Installing

macOS

Download the latest Thera release

Windows & Linux

The new skyscraper is still under construction.

Building from source

Guide to build from source link (macos only).   thera packages is our packages.

Contribution guide

Please follow our contribution guide

Restrictions

  • Vue 2.0 is not supported for now.

PMC Members & Committers

  • Dean Wu(xiaoshu.wb at tmall.com)
  • Deng Xu(dennis.dx at tmall.com)
  • GUO Miaoyou(miaoyou.gmy at tmall.com)
  • LIN Xueqiu(xueqiu.lxq at tmall.com)
  • HU Chun(shiji.hc at tmall.com)

License

MIT

F&Q

Portal

thera's People

Contributors

778477 avatar alibaba-oss avatar dengxu avatar dutlxq2014 avatar kekemao1 avatar nickolashu avatar scucheri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

thera's Issues

optimize the performance of console panel

Console panel consumes too much time when there is too many content.
After benchmarking it, the bottleneck is the layout part, so the DOM structure should be rewrite.

Can't access introduce video resource

无法访问此网站

vimeo.com 的响应时间过长。
请试试以下办法:
检查网络连接
检查代理服务器和防火墙
ERR_CONNECTION_TIMED_OUT

.js文件是生成文件不能编辑的

.js文件是生成文件不能编辑的,当用户错误的去编辑js文件而不是we或者vue文件的时候,应该给出友好提示,否则容易以为是bug,修改了内容一直无法正常同步给链接的设备

IDE几个问题

1.创建新项目,单击运行的时候,打开IOS模拟器,一直运行一个播放视频页面,内容跟main.we无关
2.生成的QRCode无法显示

mac 模拟器不显示

7830e8a3-ab23-4a5f-97aa-7fb9076b0d0b

打开IDE后选择虚拟设备的下拉框就一个选项general device,Xcode已经安装了,是什么原因,我的电脑是16款pro

Cmd+Q should kill the whole process tree.

We modify the strategy of starting the dumpling server which boots up immediately with thera.
When restart thera after Cmd+Q, the available PORT for dumpling server always change to a new one which leads to the failure of auto connection. This may confuse users. Is there any solution to the kill operation ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.