Skip to content

Reuse existing manifest option#23

Closed
monsonjeremy wants to merge 1 commit intophamann:masterfrom
monsonjeremy:master
Closed

Reuse existing manifest option#23
monsonjeremy wants to merge 1 commit intophamann:masterfrom
monsonjeremy:master

Conversation

@monsonjeremy
Copy link
Copy Markdown

Piggy-backing off the work done in this PR to reuse the existing manifest. I also added this as an optional flag since it's not desired for all users of this plugin.

@monsonjeremy
Copy link
Copy Markdown
Author

@phamann I hope you don't mind but i'm going to publish my own branched version under a new namespace until this is merged because it's a little time sensitive for me. If there is an issue i'm willing to unpublish.

@GerkinDev
Copy link
Copy Markdown

GerkinDev commented Mar 22, 2019

It would be good to see it merged, along with other working PRs. I've reviewed this one and I'm OK for it, if you care about my opinion. The PR is very targeted & simply working well.

@monsonjeremy
Copy link
Copy Markdown
Author

@phamann could we get a quick approval or a review? I'd like to get this PR off my PR list.

@monsonjeremy
Copy link
Copy Markdown
Author

@GerkinDev By the way, if you want to use a forked version with this code I published a fork here: https://www.npmjs.com/package/rollup-plugin-hash-manifest

@halfzebra
Copy link
Copy Markdown

@monsonjeremy Hi Jeremy, thanks for implementing this! 👍

Copy link
Copy Markdown

@GerkinDev GerkinDev left a comment

Choose a reason for hiding this comment

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

Tests case are OK for main cases.

👍

PS: Sorry for the delay, I still hope this will get merged.

Comment thread test/index.js
const res = hashWithOptions({ dest: 'tmp/[hash].js', manifest: 'tmp/manifest.json' });
return res.then(() => {
const tmp = fs.readdirSync('tmp');
const manifest = require('./tmp/manifest.json');
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Useless chore.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Not sure what you mean here.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I don't see what improvements or changes this diff does. require already parses the JSON.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@GerkinDev I've addressed the comments on this PR.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@GerkinDev, looks like this wasn't a useless chore. Without these, the tests fail on Node 4 since require likely does not parse it in that old node version.

Copy link
Copy Markdown

@GerkinDev GerkinDev Mar 16, 2020

Choose a reason for hiding this comment

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

Okay my bad. But since you changed tested node env (see this diff), is it still relevant ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Good call, removed those changes. Should be good to merge now!

Comment thread test/index.js Outdated
@monsonjeremy
Copy link
Copy Markdown
Author

@GerkinDev I've made all the requested changes, do you mind merging this?

@GerkinDev
Copy link
Copy Markdown

GerkinDev commented Mar 24, 2020

@monsonjeremy I'm not a maintainer of this package ^^ I just reviewed to help, and validated your changes. I really can't do anything more. @phamann ping !

@monsonjeremy
Copy link
Copy Markdown
Author

@GerkinDev Sorry, thought you were a maintainer! Anyways, i'll give it another week and then i'm going to delete the PR.
@phamann tick tock 😄

@GerkinDev
Copy link
Copy Markdown

Dammit.

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