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

@har79/config

v7.0.0

Published

Common config boilerplate.

Downloads

455

Readme

har79-config

Common config boilerplate.

TODO

  • conditional TS
  • conditional scss

Install

npm i -D @har79/config

Command

npx har79-config [PATTERN]..

Copies config files matching PATTERNs into the local directory. If no PATTERNs are specified, all config files will be copied.

Use -n to see the list of matching files without making any changes.

package.json

Update your package.json to contain the following:

  "files": [
    "build/src"
  ],
  "main": "build/src/index",
  "types": "build/src/index.d.ts",
  "sideEffects": [
    "*.{c,sc,sa}ss"
  ],
  "scripts": {
    "clean": "rm -r coverage build dist lib oss-attribution *.tsbuildinfo ||:",
    "fix:format": "prettier --write .",
    "fix:lint": "eslint --fix .",
    "fix:style": "stylelint '**/*.scss'",
    "fix": "npm run fix:lint && npm run fix:style && npm run fix:format",
    "license:check": "license-checker --production --onlyAllow 'MIT;ISC;Apache-2.0' --excludePrivatePackages",
    "license:attribution": "generate-attribution",
    "license": "npm run license:check && npm run license:attribution",
    "preversion": "npm run license:check && npm run fix && npm run type:once && npm run test:once && [ -z \"$(git status --porcelain)\" ]",
    "postversion": "git push && git push --tags",
    "prepare": "npm run clean && npm run license:check && npm run build",
    "build:types": "tsc -p tsconfig.build.json --emitDeclarationOnly",
    "build:js": "rollup --config",
    "build:webpack": "webpack --config webpack.prod.babel.js",
    "build": "npm run build:webpack",
    "type:once": "tsc",
    "type:watch": "npm run type:once -- --watch",
    "type": "npm run type:watch",
    "test:once": "jest --coverage",
    "test:watch": "jest --coverage --watchAll",
    "test": "npm run test:watch",
    "start": "webpack-dev-server --config webpack.dev.babel.js"
  },

Dependencies

packages=(
@babel/plugin-proposal-class-properties
@babel/plugin-proposal-object-rest-spread
@babel/plugin-transform-runtime
@babel/preset-env
@babel/preset-typescript
@types/jest
babel-loader
babel-plugin-module-resolver
css-loader
css-minimizer-webpack-plugin
eslint-config-google
eslint-config-prettier
eslint-plugin-unused-imports
eslint
@eslint/js
globals
har79-config
html-webpack-plugin
jest
license-checker
mini-css-extract-plugin
oss-attribution-generator
prettier-plugin-jsdoc
prettier-plugin-sh
@ianvs/prettier-plugin-sort-imports
prettier
sass
sass-loader
stylelint
stylelint-config-standard-scss
typescript
typescript-eslint
webpack-cli
webpack-dev-server
webpack
)
for p in "${packages[@]}"; do npm i -D "$p"; done

withReact

packages=(
@babel/plugin-transform-react-jsx
@babel/preset-react
@types/react
@types/react-dom
eslint-config-react
react
react-dom
)
for p in "${packages[@]}"; do npm i -D "$p"; done