Skip to content

feat: generate stylesheets when migrating components and modules #128

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 10, 2018
Merged

feat: generate stylesheets when migrating components and modules #128

merged 2 commits into from
Oct 10, 2018

Conversation

sebawita
Copy link
Contributor

use --no-style to skip the generation of [css | scss] files

use --no-style to skip generation of the css / scss files
@sis0k0 sis0k0 changed the title Generate stylesheets when migrating components and modules feat: generate stylesheets when migrating components and modules Oct 10, 2018
Copy link
Contributor

@sis0k0 sis0k0 left a comment

Choose a reason for hiding this comment

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

Let's add a default style or a comment to the newly generated style file.

}

if (ts.isArrayLiteralExpression(node) && node.elements.length > 0) {
const stylePath = (node.elements[0] as ts.StringLiteral).text;
Copy link
Contributor

Choose a reason for hiding this comment

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

What if there are multiple stylesheets for the same component?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought about that, but 99.9% of the cases would use just a single stylesheet. And in the cases that there are more it would probably be better to handle it manually

@sis0k0 sis0k0 merged commit d0160f0 into NativeScript:master Oct 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants