Skip to content

[WIP] Add raw data generation#977

Closed
chicoxyzzy wants to merge 1 commit intocompat-table:gh-pagesfrom
chicoxyzzy:raw-data
Closed

[WIP] Add raw data generation#977
chicoxyzzy wants to merge 1 commit intocompat-table:gh-pagesfrom
chicoxyzzy:raw-data

Conversation

@chicoxyzzy
Copy link
Copy Markdown
Member

I found it much harder to build all data from JSON files (as I wanted in #965) than generating raw data from current js data files. Having js files allows to have autocomplete in editors when using shared data from 'data-common.json'. Also removing tests is not so trivial and it doesn't brings any significant profits.

Also we need to register npm name and setup CI for automated package version bumping and publishing.

@chicoxyzzy
Copy link
Copy Markdown
Member Author

Oh I forgot to generate results for ranges and equals

@chicoxyzzy chicoxyzzy changed the title Add raw data generation [WIP] Add raw data generation Dec 6, 2016
Copy link
Copy Markdown
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

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

Why not gitignore raw-data, since this is published to npm?

package.json Outdated
"type": "git",
"url": "git://github.com/kangax/compat-table.git"
},
"files": ["raw-data"],
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

let's please not use the "files" key - this is a dangerous way to exclude things from npm. In addition, there's no need to exclude anything imo - https://unpkg.com/compat-table@0.0.1/ already has a bunch of other stuff.

.ruby-version
_site/
.idea/
es5/
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why ignore all these?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I don't see any reason why they should be downloaded when you need just test results from npm. Source code is available from GH because npm supports GH and Git

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

IMO there should be only test results and environments

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

github is for development, npm is for consumption. packages published to npm should have everything - that way it's available when consuming previously-installed-things offline as well.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The only things that other projects need is raw data. Why publish HTML files?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why wouldn't they need the HTML files if they wanted to display them, or if they want to be able to view the HTML pages without an internet connection?

.npmignore Outdated
esnext/
esintl/
non-standard/
strict-mode/ No newline at end of file
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please ensure all files have a trailing newline

package.json Outdated
{
"name": "compat-table",
"version": "0.0.0",
"version": "0.1.0",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Version numbers should be bumped only in commits directly to master; not in PRs

@chicoxyzzy
Copy link
Copy Markdown
Member Author

I'll create new PR instead of this one

@chicoxyzzy chicoxyzzy closed this Aug 23, 2017
@williamkapke
Copy link
Copy Markdown

Ooh now I see what the goal is. 🤔 It wasn't immediately clear to me in #965.

So- you seek the results without the test functions.
... others seek the test functions without the results!

Maybe they should be separated altogether. Although- that seems like it would add undesirable complication to this codebase.

@ljharb
Copy link
Copy Markdown
Member

ljharb commented Aug 23, 2017

I think it would.

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