Skip to content
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

Update script that generates allProperties.js #108

Merged
merged 4 commits into from
Jan 20, 2020
Merged

Conversation

jsakas
Copy link
Member

@jsakas jsakas commented Nov 1, 2019

Update the output syntax to match the most recent updates

Update the output syntax to match the most recent updates
@codecov-io
Copy link

codecov-io commented Nov 1, 2019

Codecov Report

Merging #108 into master will increase coverage by 0.78%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #108      +/-   ##
==========================================
+ Coverage   36.07%   36.86%   +0.78%     
==========================================
  Files          86       87       +1     
  Lines        1156     1172      +16     
  Branches      218      224       +6     
==========================================
+ Hits          417      432      +15     
- Misses        632      633       +1     
  Partials      107      107
Impacted Files Coverage Δ
lib/allProperties.js 100% <ø> (ø) ⬆️
lib/utils/colorSpace.js 100% <100%> (ø)
lib/parsers.js 80.35% <100%> (-0.16%) ⬇️

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 e7fc289...bb2db59. Read the comment docs.

@@ -68,13 +68,14 @@ request(url, function(error, response, body) {
);
out_file.write('/*\n *\n * https://www.w3.org/Style/CSS/all-properties.en.html\n */\n\n');

out_file.write('var allProperties = new Set();\n');
Copy link
Contributor

@sirian sirian Dec 22, 2019

Choose a reason for hiding this comment

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

@jsakas

Maybe it's better to replace with

out_file.write('module.exports = new Set(' + JSON.stringify(CSSpropertyNames.map(camelToDashed), null, 2) + ');\n'

P.S. JSON.stringify(foo, null, 2) produces pretty-printed JSON with 2 spaces indent

@jsakas jsakas merged commit 5954f6b into master Jan 20, 2020
@jsakas jsakas deleted the fix/properties-download branch January 20, 2020 19:32
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.

3 participants