[Proposal] Enhance and standardize Weex's style ability with CSSOM

2019-05-30 Thread Hanks Zhang
## Background

To improve the development experience should be the priority of Weex and
Weex's style ability often be criticized by developers, it's not competent
enough and hasn't been improved for a long time.

I think we should take more efforts to improve our css features.

## What CSSOM can do?

CSSOM (CSS Object Module) is a specification in W3C which defines a group
of APIs for managing CSS, such as StyleSheet, CSSRule, Selectors, etc.

In particular, CSSOM can bring more css selector support for Weex, the
performance will be improved as well. Moreover, CSSOM is a standard way to
implement css features, just as browsers do.

For example, the following css will be supported with CSSOM:

```css
/* @media rule */
@media screen and (min-width: 900px) {

  /* complex css selector */
  #root div text.title {
padding: 1vw 3vh;  /* css shorthand */
border: 2px dotted rgba(0, 24, 133, .2); /* compound values */
  }
}
```

## Implementation

I have already written a standalone C++ library to implement a lite version
of CSSOM, which only supports a subset of specs. It can be integrated into
Weex directly.

The following parts should be modified to achieve the goal:

* DSL Frameworks: Adjust the style management API and update the compilers.
* JS Framework: Sending the original class list to native, stop merging
them into inline styles.
* Weex Core: Integrate the cssom library, use it to store and query styles.

I'll share more technical details about it later. Looking forward to your
opinions.

Best Regards,
Hanks


Re: Weex Release Process Documentation?

2019-05-30 Thread 申远
Hi, there

The Apache release procedure for Weex is online[1] now. I am glad to have
your advice.

[1] https://weex.apache.org/community/release-procedure.html

Best Regards,
YorkShen

申远


申远  于2019年5月24日周五 下午9:25写道:

> Not completed yet. I am expecting to finish the doc by the end of next
> week.
>
> As there shall be an offline meetup of weex committers next week, the
> release procedure, playground App and other issues will be discussed at the
> offline meetup. It’s my wish and also subject of the meetup that PPMCs
> should get more involved in Weex community, as it is not a good sign that
> only a few of PPMCs are active. The minutes of the meetup will be sent to
> dev@weex
>
> Best Regards,
> York Shen
>
> 申远
>
> > 在 2019年5月24日,20:10,Jan Piotrowski  写道:
> >
> > Hey,
> >
> > just discovered
> > https://github.com/apache/incubator-weex/tree/master/scripts - is
> > there some documentation on how these play together?
> >
> > I am currently working on revising the (terrible) release process of
> > Apache Cordova, and yours could actually be a nice inspiration. As you
> > wrote most of this, where did you get your inspiration from?
> >
> > Best,
> > Jan
>