Style-dictionary: Rewrite to ES6

Created on 4 Oct 2018  路  11Comments  路  Source: amzn/style-dictionary

Had a talk with @dbanksdesign and basically we could start migrating the library little by little to use ES6 features. Of course this needs some infrastructure work (that I would love to do) and also to take some decisions about how do we do this. Opening this issue to start the conversation for this.

Some Thoughts

  • Some of the features are already available in node 6 and node 8, probably the most important ones we would want like template literals, spreads, destructuring etc
  • Replacing and using arrow functions everywhere might be tricky because of how style dictionary API has been designed with this in mind
  • A build system will be required to ship the code for older versions

Some build systems

chore refactor

All 11 comments

There is https://github.com/5to6/5to6

I'm ready to do it

Thats cool! I didn't know that was even a thing that existed.

If you are ready, go for it. Otherwise I can take a look next week.

Probably best done in conjunction with #154.

I think we should wait on this until we merge #169 before doing this.

develop-3.0

@dbanksdesign @chazzmoney are you going to merge develop to develop-3.0 ?

Yes, sorry for the delay. Going to try to get #158 and #152 merged into develop in the next couple days and then merge develop into develop-3.0

develop-3.0 is now up to date with develop

Promise to get #152 merged soon - almost there. Thanks for your patience @vvscode.

500 is the beginnings of this

@chazzmoney you think we can close this?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tlouisse picture tlouisse  路  4Comments

chazzmoney picture chazzmoney  路  5Comments

gael-boyenval picture gael-boyenval  路  3Comments

blackfalcon picture blackfalcon  路  4Comments

matt-tyas picture matt-tyas  路  3Comments