Skip to content

Emit file option - #10

Merged
Scrum merged 2 commits into
posthtml:masterfrom
fromanywhere:fromanywhere/emit-file-option
Apr 22, 2021
Merged

Emit file option#10
Scrum merged 2 commits into
posthtml:masterfrom
fromanywhere:fromanywhere/emit-file-option

Conversation

@fromanywhere

Copy link
Copy Markdown
Contributor

Currently there is no way to chain result of PostHTML generation to other Rollup modules as a raw string. The only possible format is a wrapped anonymous module. Such way of resource emitting can't satisfy template precompiling plugins (like https://github.com/nilennoct/rollup-plugin-dot). I propose to introduce an optional unwrapped export

Comment thread index.js

module.exports = function rollupPluginPosthtml (options) {
options = Object.assign({
emitFile: true,

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.

It will be very good if you add a description of this option in the readmi

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think it should default to false and save the current behavior, thus no breaking change bump.

@Scrum
Scrum merged commit 2108f83 into posthtml:master Apr 22, 2021
@Scrum

Scrum commented Apr 22, 2021

Copy link
Copy Markdown
Member

@tunnckoCore Hi, could you please grant me the rights to npc for timely publication of new features?

@tunnckoCore

Copy link
Copy Markdown
Collaborator

Heya, just was thinking does anyone else have npm rights to this.

I can't now. I'm coming back to OSS in coming 2 weeks. It's easy task, but I don't have npm and the time to setup.
I will, but please ping me again in 1-2 weeks. :)

@Scrum

Scrum commented May 21, 2021

Copy link
Copy Markdown
Member

@tunnckoCore hello, is there an opportunity?

@Scrum

Scrum commented May 24, 2021

Copy link
Copy Markdown
Member

@tunnckoCore ping

2 similar comments
@Scrum

Scrum commented Jun 4, 2021

Copy link
Copy Markdown
Member

@tunnckoCore ping

@Scrum

Scrum commented Jun 18, 2021

Copy link
Copy Markdown
Member

@tunnckoCore ping

@Scrum

Scrum commented Jul 2, 2021

Copy link
Copy Markdown
Member

@tunnckoCore ping )

@Scrum

Scrum commented Aug 13, 2021

Copy link
Copy Markdown
Member

@tunnckoCore again ping

@tunnckoCore

Copy link
Copy Markdown
Collaborator

@Scrum heya, i'll add you now.

@tunnckoCore

Copy link
Copy Markdown
Collaborator

You are ready. Sorry. :)

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