Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

feat(template_cache_generator): support external css rewriters #1052

Closed
wants to merge 2 commits into from

Conversation

rkj
Copy link
Contributor

@rkj rkj commented May 16, 2014

I want to use cssjanus to create RTL version of css automatically.

@jbdeboer
Copy link
Contributor

@pavelgj Could you review this code?

@pavelgj
Copy link
Contributor

pavelgj commented May 23, 2014

@rkj Please remove cssjanus from the tests and write a simple/short rewriter just enough to demonstrate that it works.

@tfortes Ted, would you mind taking a look at this?

A couple of general thoughts on this: it seems like a job for transformer, however we don't have template_cache_generator transformer, yet, so maybe this approach is OK for cmd tool.

@rkj
Copy link
Contributor Author

rkj commented May 23, 2014

Done.

@tfortes
Copy link
Contributor

tfortes commented May 23, 2014

@pavelgj - I think you meant for @tedsanders to take a look :) - I'm Tommy by the way.

...but I agree that transformers would be nice. Even better if we could also process the html files to generate i18n-enabled versions of the html. ...But that's perhaps another discussion.

@@ -0,0 +1,3 @@
#!/bin/bash

sed 's/left/right/g'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a little concerned that this test will only work on certain environments. Or your environment would need to be setup correctly. Needs a comment somewhere to tell people earlier that they need to have sed available from the command line. Or even better, but I don't think it is possible would be to check for it's presence in the test and not fail if it isn't available.

@TedSander
Copy link
Contributor

Just one comment generally looks good.

@pavelg just a note my username is @TedSander for Github.

Writing a transformer is on my list for cache, but lower priority until my project can use them. I'll make sure this functionality get's in as well.

@TedSander
Copy link
Contributor

LGTM just saw the SED check.

@pavelgj
Copy link
Contributor

pavelgj commented May 24, 2014

Sorry @tfortes and @TedSander for confusion -- copy-pasting error.
Ted, thanks for review.

@mvuksano mvuksano assigned vicb and unassigned pavelgj and vicb May 26, 2014
@jbdeboer jbdeboer added this to the 0.14.0 milestone Jun 16, 2014
rkj added 2 commits July 31, 2014 14:11
…ator.

The provided rewriter will be used to transform every css read by the
TemplateCache, the original css is provided on stdin, and result is read
from the stdout of provided binary.
It use simple sed script to showcase integration is working.

Test runs only if sed is present on the running system.  The test
uses css with simple rules that are getting traslated for RTL locales.
chirayuk pushed a commit that referenced this pull request Aug 7, 2014
It use simple sed script to showcase integration is working.

Test runs only if sed is present on the running system.  The test
uses css with simple rules that are getting traslated for RTL locales.

Closes #1052
chirayuk pushed a commit to chirayuk/angular.dart that referenced this pull request Aug 7, 2014
It use simple sed script to showcase integration is working.

Test runs only if sed is present on the running system.  The test
uses css with simple rules that are getting traslated for RTL locales.

Closes dart-archive#1052
chirayuk pushed a commit that referenced this pull request Aug 8, 2014
…ator.

The provided rewriter will be used to transform every css read by the
TemplateCache, the original css is provided on stdin, and result is read
from the stdout of provided binary.

TESTING:

The test uses a simple sed script to exercise the integration.

The test runs only if sed is present on the running system.  The test
uses CSS with simple rules that are being translated for RTL locales.

Closes #1052
@chirayuk chirayuk closed this in 25d85fb Aug 8, 2014
chirayuk pushed a commit that referenced this pull request Aug 9, 2014
…ator.

The provided rewriter will be used to transform every css read by the
TemplateCache, the original css is provided on stdin, and result is read
from the stdout of provided binary.

TESTING:

The test uses a simple sed script to exercise the integration.

The test runs only if sed is present on the running system.  The test
uses CSS with simple rules that are being translated for RTL locales.

Closes #1052
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

7 participants