npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

geta-webpack-config-wrapper

v1.0.9

Published

Webpack and tool configurations used to standardize the setup in projects.

Downloads

24

Readme

Configs

Package containing a base webpack config wrapper, and configurations for various tools we use.

Installation

NPM

npm install --save geta-webpack-config-wrapper

Yarn

yarn add geta-webpack-config-wrapper

Includes

Webpack

For webpack I've created a function, used to wrap the webpack config into a more readable / noob friendly format. It contains a ton of pipeline functions that serve various purposes. Overview of those and what they do can be found here: webpack.core.js docs

Babel

This one is automatically used by the webpack.core.js file. Basic setup that includes the following presets:

PostCSS

Basic setup that adds some postcss transformations to the .scss files used. They're parsed using postcss-scss. The webpack.core.js implements this by default.

For plugins I use these:

  • postcss-sassy-import (adds support for imports)
  • autoprefixer (uses browserconfig from your package.json)
  • postcss-pxtorem (root value 16, affects font, font-size, line-height, letter-spacing props)

Prettier

Also automatically implemented in webpack.core.js. Adds a basic prettier config to the solution. Currently only parses .ts and .tsx files, will add support for more languages soon-ish.

Stylelint

Basic implementation of stylelint, extending the stylelint-config-standard with some extra rules / overrides I found useful. Support for scss added. Implemented by default in webpack.core.js.

TypeScript

For all my projects I use TypeScript, thus I've included a basic config file for it. This one already covers enough to be used on most projects, but can also be extended if you want to override or add additional options. To enable typescript in webpack.core.js, see the webpack.core.js docs.

TSLint

Since most of my projects use TypeScript, I also added my generic tslint config. It support extending in your own tslint config if you so wish. This one is also configured to work well with the Prettier config, so no weird conflicts occur between the auto formatting and the linter. Auto implemented in webpack.core.js when TypeScript is added, for dev mode only.