Skip to content

Update Loader README's for each loader for v2. Update Loader/Plugin Maintainer Guideline #3195

Closed

Description

@TheLarkInn
  • Update any loaders in org. to have code examples using rules instead of loaders in config examples.
  • Update loaders to use es6 export default export instead of module.exports
    • Requires major release for each loader.
  • Update/Create Loader/Plugin Maintainer Guide (create separate issue)
  • Fix license to match with the one in webpack/webpack (it changed since with moved to JS Foundation).

To-do list (added by @SpaceK33z):

Prepare PR's for README's for the most common repo's:

Activity

  1. added this to the 2.1-RC Blocking milestone on Oct 26, 2016
  2. michael-ciniawsky commented on Nov 2, 2016

    @michael-ciniawsky
    Contributor

    @TheLarkInn 👍 I can take/work on this one

    Core README Draft
    Loader/Plugin README Boilerplate

    • Could you please host the new logo (e.g gh-pages in webpack/media) so I can update it?
    • What LICENSE if missing in some loader repos is the correct one from now on (foundation requirement etc.) ?
    • There was some nebulous CLA signment rumor, if needed where/how do I need to do that?

    I would make one loader && plugin README update, come back here, if approved that way, then do it for the rest 😛 👍 ?

  3. SpaceK33z commented on Nov 4, 2016

    @SpaceK33z
    Contributor

    @michael-ciniawsky, nice work on the loader readme. Some feedback:

    • I'd remove the license text in the readme, it's already present as a file. Or maybe reference to that file at least. That way we're sure both are the exact same version.
    • Maybe some standardised format to show the available options?
    • A specific example in webpack.config.js would be nice, so not all loaders use a completely different one. Something like this maybe:
    module: {
        rules: [
            {
                test: /\.json$/,
                loader: 'json-loader',
                options: {
                    foo: 'bar'
                }
            }
    }

    About the CLA signment thingy, there is a bot that will automatically ask you for this when you do a PR.

  4. michael-ciniawsky commented on Nov 4, 2016

    @michael-ciniawsky
    Contributor

    @SpaceK33z yep the README boilerplate is currently 'outdated'

    webpack-loaders

    I'd remove the license text in the readme, it's already present as a file. Or maybe reference to that file at least. That way we're sure both are the exact same version.

    Like you said LICENSE appendix -> Github UI

    Maybe some standardised format to show the available options?

    Definitely, this is WIP when I start updating, bc I need to check all the options of the various loaders first and find a readable format/pattern for that :)

    A specific example in webpack.config.js would be nice, so not all loaders use a completely different one. Something like this maybe:

    :+1 Should the {String} based e.g require(some-loader?option=value!./file.ext) options vanish completely or leave a short example mentioning that it's possible, but use webpack.config.js is recommended and 'best practice' ?

    Can you or someone of the core team please host the new logo in webpack/media, so I can use it in README and Loader README ? Or in any prefered wayform your side, as long as I have access to it somehow 😛

    webpack-plugins

    Is it possible/planned/intended in the future to extract the Core Plugins from webpack/webpack and give them there own repos (e.g like extract-text-plugin, compression-plugin)? Since I update the README's anyways, let's do that in one blow then... :)

    webpack

    Do you mind take a look at the webpack README posted above aswell? e.g

    • You are missing as core member atm (will be fixed asap :))
    • Add CONTRIBUTORS Section like MAINTAINERS under the MAINTAINERS section, but with sponsors && backers && maintainers && contributors it gets also bloated, so not sure about that
    • The example section needs an update aswell imo, but not sure how at best
    • What you have in mind 😛
    • Maybe even remove all the loader tables and try to match the structure of the new docs better somehow (Still thinking about the how)

    webpack-dev-server/webpack-dev-middleware

    • Find a logo for them, do you have something in mind? Currently I would go with standard server icon + webpack-logo for dev-server and expressjs logo + webpack-logo for dev-middleware?
    • Can you provide me an overview of all options for both of them, especially webpack-dev-server

    loader-utils/loader-runner/tapable/memory-fs/enhance-resolve

    What is the way forward there, will the structure stay like that in the near future ? Especially loader-utils is important for docs update.

    What is your general opinion on making a loader-, plugin-boilerplate ? The README Boilerplate should not stay on a random joe's (me) profile and only a README repo at webpack org is not recommended/useful either.

  5. SpaceK33z commented on Nov 4, 2016

    @SpaceK33z
    Contributor

    Definitely, this is WIP when I start updating, bc I need to check all the options of the various loaders first and find a readable format/pattern for that :)

    Cool. If you want any help updating some loaders, let me know. Note that some loaders have specific maintainers, so it would maybe be nice to communicate with them beforehand about this.

    :+1 Should the {String} based e.g require(some-loader?option=value!./file.ext) options vanish completely or leave a short example mentioning that it's possible, but use webpack.config.js is recommended and 'best practice' ?

    I don't know if we should vanish string based require's completely, but via webpack.config.js is definitely recommended and we should be clear that this is the way to go in most cases.

    Can you or someone of the core team please host the new logo in webpack/media, so I can use it in README and Loader README ? Or in any prefered wayform your side, as long as I have access to it somehow 😛

    I made an issue for it: webpack/webpack.js.org/issues/297, since it should be hosted on webpack.js.org.

    Is it possible/planned/intended in the future to extract the Core Plugins from webpack/webpack and give them there own repos (e.g like extract-text-plugin, compression-plugin)? Since I update the README's anyways, let's do that in one blow then... :)

    As far as I know, there are no plans to do this short-term, at least not in v2. So this wouldn't be necessary.

    webpack-dev-server/webpack-dev-middleware
    Find a logo for them, do you have something in mind? Currently I would go with standard server icon + webpack-logo for dev-server and expressjs logo + webpack-logo for dev-middleware?

    Note that I'm the maintainer of those two packages. I would like to do the README's for those two packages myself; although if you really want to it's fine of course.

    WDM will gain support for other servers then Express.js soon, so that logo would be misplaced. I can't currently think of another icon type though :(.

    Can you provide me an overview of all options for both of them, especially webpack-dev-server

    All options for WDM and WDS are documented on the new webpack docs, so I think we should just link to there. This is a "special" case however.

    loader-utils/loader-runner/tapable/memory-fs/enhance-resolve
    What is the way forward there, will the structure stay like that in the near future ? Especially loader-utils is important for docs update.

    I think of those packages, only loader-utils is important for now because it's used by many loader authors. The rest we can do later. We can change the structure of the README to be more like the loader boilerplate.

    What is your general opinion on making a loader-, plugin-boilerplate ?

    Hmm, I think a separate repo might seem like a good idea at first, but that it will be forgotten. I'd say that the readme's can be copied from a random other loader, since all of them will follow the same readme boilerplate. That's just my opinion though ;).

    Awesome to see that you're taking this seriously 💯. The whole webpack community will be thankful. In many of the loader repo's there are open issues asking what the loader does exactly.

  6. michael-ciniawsky commented on Nov 5, 2016

    @michael-ciniawsky
    Contributor

    Cool. If you want any help updating some loaders, let me know. Note that some loaders have specific maintainers, so it would maybe be nice to communicate with them beforehand about this.

    Yep, of course all respective maintainers need to approve and maybe rework/refine content for the respective loader then, but first of all a general structure/style/start must be established, that's were I come into play :). Content changes and refinements is up to mantainers anyways, I will try to update content where mostly missing atm aswell, but possible that for some loaders their maintainers need to provide the actual content 😛 .I ask for/discuss that in the PR's later with them :).

    I made an issue for it: webpack/webpack.js.org#297, since it should be hosted on webpack.js.org.

    👍 thx I will keep track of that issue, hopefully soon, so I can start 🚀

    I don't know if we should vanish string based require's completely, but via webpack.config.js is definitely recommended and we should be clear that this is the way to go in most cases.

    ok I will provide a absolute basic example of a require(loader!./file.ext) in terms of 'inline' usage, but if folks start to complain about it, can be removed by the maintainers anytime afterwards. Main is webpack.config.js webpack v2 style

    All options for WDM and WDS are documented on the new webpack docs, so I think we should just link to there. This is a "special" case however.

    Yep, you got me here, I just looked at the README's and recapped want I now from my daily usage, will take info/content from there: 👍

    Note that I'm the maintainer of those two packages. I would like to do the README's for those two packages myself; although if you really want to it's fine of course.

    I know 😛 , awesome job there so far 💯 👍 . Well in the end it's your decision , there is enough to do, like stated above, have it consisted is the/my/our main goal, I can send it so you don't have to do all the chore, just go over the content then and refine where inappropriated. Or pick (the soon to be updated) README Boilerplate and do as you please :).

    WDM will gain support for other servers then Express.js soon, so that logo would be misplaced. I can't currently think of another icon type though :(.

    Ok I have absolutely no insight whats being planned there ;). Maybe there is a generic icon/logo like the typical 'standard' server icon, we'll see or just leave it atm.

    I think of those packages, only loader-utils is important for now because it's used by many loader authors. The rest we can do later. We can change the structure of the README to be more like the loader boilerplate.

    Yep, agreed loader-utils is the important one, thb I'm also not really capable to write docs about the other ones 👀 . sokra can add JSDoc to them, when he is in the mood 😆

    As far as I know, there are no plans to do this short-term, at least not in v2. So this wouldn't be necessary.

    kk

    Hmm, I think a separate repo might seem like a good idea at first, but that it will be forgotten. I'd say that the readme's can be copied from a random other loader, since all of them will follow the same readme boilerplate. That's just my opinion though ;).

    Yeah sadly there is truth to that, for e.g postcss-plugin-boilerplate is avaiable but every new plugin I see never uses it 😢 . But it also doesn't really get promoted, so maybe if the docs for loader/plugin authors would mentioned it, more dev would use/adopt it ¯_(ツ)_/¯. Still discussable though... also not 'urgent' atm.

    The webpack README update currently in progress, whats the opinion/issues/complains there ?

    I will start with style-, css-, file-, url-, raw-loader, but come here again after the first README is finished for discussion and general style approvement from webpack/core-team. ok ?

  7. SpaceK33z commented on Nov 5, 2016

    @SpaceK33z
    Contributor

    The webpack README update currently in progress, whats the opinion/issues/complains there ?

    • I think it should be npm install --save-dev webpack instead of npm i -D webpack. While the latter is shorter, beginners don't always know what i or -D means. And we don't want to confuse them so early :).
    • Bundles both CommonJS and AMD modules (even combined). since webpack v2 it also bundles ES Modules. Maybe put that up first, since it's the "new thing".
    • The example given is very advanced, and may confuse / scare beginners. Maybe make clear that this is something "advanced"? As you said previously, we could also rework it to be simpler.
    • For webpack v2 the links are different (moved to webpack.js.org and have a new structure). We could also fix this later though.
    • I'd only refer to the license file in the readme here too.
    • The loader tables are fine here for now I think. It shows off how big the webpack ecosystem is and that there is support for everything you can imagine 🌈 .
    • As you said, I'd also like to be added in the maintainers table ;).
    • Agree with you that adding the contributors section might get too bloated. Perhaps GitHub provides a nice page where all contributors are listed? Then we can link to that.

    Over all, nice work on the webpack readme. It's a lot better!

    I will start with style-, css-, file-, url-, raw-loader, but come here again after the first README is finished for discussion and general style approvement from webpack/core-team. ok ?

    Sure, I'll give you feedback and will try to get at least one other core member to do it too 😃 .

  8. michael-ciniawsky commented on Nov 5, 2016

    @michael-ciniawsky
    Contributor

    I think it should be npm install --save-dev webpack instead of npm i -D webpack. While the latter is shorter, beginners don't always know what i or -D means. And we don't want to confuse them so early :).

    👍

    Bundles both CommonJS and AMD modules (even combined). since webpack v2 it also bundles ES Modules. Maybe put that up first, since it's the "new thing".

    kk. I will add/extrapolate webpack's native ES6 Modules/System.import support.

    The example given is very advanced, and may confuse / scare beginners. Maybe make clear that this is something "advanced"? As you said previously, we could also rework it to be simpler.

    kk, I will try to find another one (example from docs splash page, simple config intro etc.), but substance to discuss later on.

    For webpack v2 the links are different (moved to webpack.js.org and have a new structure). We could also fix this later though.

    I will take a look at the new docs and align structure (README chapters) with them, where possible, as I intended with the old docs :). When is depending on how long it will approximately take for v2 to be released, I have it in mind, but true maybe links could be set later.

    I'd only refer to the license file in the readme here too.

    Yep same as in README Boilerplate -> outdated, will be removed.

    The loader tables are fine here for now I think. It shows off how big the webpack ecosystem is and that there is support for everything you can imagine 🌈 .

    kk I will add at least one table for 'common' plugins under plugins aswell then. Any sugesstions for important/recommended/most used plugins, besides the core, extract-text, compression plugin(s) and friends?

    As you said, I'd also like to be added in the maintainers table ;)

    For sure 😛

    Agree with you that adding the contributors section might get too bloated. Perhaps GitHub provides a nice page where all contributors are listed? Then we can link to that.

    kk discarded, backers and sponsors are enough to signal community importance/friendliness/size

    Contributors => Github UI :)

    Sure, I'll give you feedback and will try to get at least one other core member to do it too 😃 .

    👍 Appreciated

  9. michael-ciniawsky commented on Nov 10, 2016

    @michael-ciniawsky
    Contributor

    ping :)

  10. SpaceK33z commented on Nov 10, 2016

    @SpaceK33z
    Contributor
  11. michael-ciniawsky commented on Nov 10, 2016

    @michael-ciniawsky
    Contributor

    @SpaceK33z thx 👍 on it from now. Finish webpack/webpack, then a smaller one like json-loader for style approvement like discussed, when approved style-, css-, less- , file-, url-, raw-loader, + loader-utils next :)

  12. 3 remaining items

  13. TheLarkInn commented on Nov 23, 2016

    @TheLarkInn
    MemberAuthor

    No problem!!!!! @SpaceK33z Do you wanna follow up with this.

  14. SpaceK33z commented on Nov 24, 2016

    @SpaceK33z
    Contributor

    @michael-ciniawsky, I made a PR to your repo which brings the readme up-to-date with the latest changes and fixes a couple of small issues I had with it. The rest looks very good. I'm not completely sure about the advanced example. We could remove it and just link to the Get started page. But let's just leave in for now so we can focus on the loader README's.

  15. michael-ciniawsky commented on Nov 24, 2016

    @michael-ciniawsky
    Contributor

    @SpaceK33z

    I'm not completely sure about the advanced example

    Yep same here, I can add an basic example (getting started) above the advance one, subject to change nevertheless.

    But let's just leave in for now so we can focus on the loader README's

    Currently working on it PR's coming during the day 😛

  16. modified the milestones: , 2.1-RC Blocking on Dec 14, 2016
  17. self-assigned this
    on Dec 21, 2016
  18. modified the milestones: webpack 2.2 First Release, on Jan 17, 2017
  19. simon04 commented on Feb 12, 2017

    @simon04
    Contributor

    Since webpack 2 is out and all tasks (#3195 (comment)) are done, can this issue be closed?

  20. michael-ciniawsky commented on Feb 12, 2017

    @michael-ciniawsky
    Contributor

    @simon04 I think so, a few loaders @webpack-contrib are missing but I have unfinished work regarding that and push when I have time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions