Skip to content

update typed-css-modules #1

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 1 commit into from
Jun 3, 2019

Conversation

gdelmas
Copy link
Contributor

@gdelmas gdelmas commented May 3, 2019

the new typed-css-modules version comes with an improved emit style Quramy/typed-css-modules#56 that also supports classnames with dashes or for reserved words.

messagesList no longer exists in typed-css-modules as everything can be emitted.

@gdelmas
Copy link
Contributor Author

gdelmas commented May 13, 2019

@pyrocat101 is this something you would be open to merge in the future?

@@ -44,13 +43,6 @@ async function writeFile(dtsCreator: DtsCreator, cssFile: string): Promise<void>
// clears cache so that watch mode generates update-to-date typing.
const content = await dtsCreator.create(cssFile, undefined, true);
await content.writeFile();
if (content.messageList.length > 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

@gdelmas why remove this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the new version of typed-css-modules no longer has a messagesList.

i guess the reason is, that it was only used to collect classnames that could not be emitted. yet the new version can emit all classnames now.

i therefore also updated the definition to reflect that in line 26.

Copy link
Contributor

Choose a reason for hiding this comment

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

@gdelmas Sounds good. I will merge the PR if you can rebase.

@pyrocat101
Copy link
Contributor

@gdelmas Sorry for the delay in response. I just have one question about your PR.

@pyrocat101
Copy link
Contributor

ping @gdelmas can you rebase your PR?

@gdelmas
Copy link
Contributor Author

gdelmas commented May 23, 2019

@pyrocat101 yes. i will be doing it by end of the week. have no computer at hand currently. thanks for accepting it.

@gdelmas gdelmas force-pushed the update-typed-css-modules branch from 8dbcdfb to 05e6ebc Compare May 24, 2019 20:40
@gdelmas
Copy link
Contributor Author

gdelmas commented May 28, 2019

@pyrocat101 i rebased and updated the emit in the tests. hope all is fine. will you be releasing a new version to npm?

@pyrocat101 pyrocat101 merged commit 5264459 into dropbox:master Jun 3, 2019
@pyrocat101
Copy link
Contributor

@gdelmas Sorry for the delay. I just published 0.1.1 including your change.

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