Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Conversation

@lynnmercier
Copy link
Contributor

No description provided.

@codecov-io
Copy link

codecov-io commented Jun 15, 2017

Codecov Report

❗ No coverage uploaded for pull request base (master@b188d4f). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #831   +/-   ##
=========================================
  Coverage          ?   99.93%           
=========================================
  Files             ?       68           
  Lines             ?     3144           
  Branches          ?      387           
=========================================
  Hits              ?     3142           
  Misses            ?        2           
  Partials          ?        0

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b188d4f...d8d9080. Read the comment docs.

Copy link
Contributor

@traviskaufman traviskaufman left a comment

Choose a reason for hiding this comment

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

Excellent work!! query-ast looks so awesome!

echo -e "\033[36m[closure-rewriter]\033[0m" "$@"
}

function join_by { local IFS="$1"; shift; echo "$*"; }
Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't look like this is used anywhere?

rm -fr $CLOSURE_PKGDIR/**/{node_modules,dist}

log "Rewriting all import statements to be closure compatible"
node scripts/rewrite-sass-import-statements-for-closure.js $CLOSURE_PKGDIR No newline at end of file
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: newline at EOF

@@ -0,0 +1,44 @@
#!/bin/bash
Copy link
Contributor

Choose a reason for hiding this comment

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

General comment here is that some people may not understand why we need to rewrite our sass for closure. Should we maybe mention that this is to help make it closure-stylesheets compatible for internal infrastructure?

@lbjones
Copy link

lbjones commented Jun 27, 2017

Can you explain how to use this script?

Looks like the files are written to the CLOSURE_TMP folder. Do you import your files from there?

@lynnmercier
Copy link
Contributor Author

Sorry for the long delay in a reply. sass-closure-rewriter.sh rewrites files to CLOSURE_TMP folder. From there you can copy them wherever you like.

I wrote it to help us migrate our Sass files into Google's internal build system, which is based off directory structure and does not use node. So, the script might not be suited for any other use case. But, you can always use the script as an example, and write your own script to suit your needs.

@lynnmercier lynnmercier deleted the feat/sass-closure-rewriter branch July 12, 2017 23:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants