Git Product home page Git Product logo

shareable-configs's Introduction

Shareable Configs

My personal shareable configurations with fully automated package publishing to the NPM Registry.

Features

  • Automated publishing to the NPM Registry for changed packages
  • Automated CHANGELOG.md generation and GitHub releases using conventional commits
  • Automated merging of Dependabot pull requests of dependency updates.

Usage

Installation

Install all configs and associated packages as development dependencies (excludes Webpack):

yarn add -D auto @waldronmatt/auto-config @waldronmatt/browserslist-config @commitlint/cli @waldronmatt/commitlint-config eslint @waldronmatt/eslint-config htmlhint @waldronmatt/htmlhint-config jest @waldronmatt/jest-config lint-staged @waldronmatt/lint-staged-config markdownlint @waldronmatt/markdownlint-config postcss @waldronmatt/postcss-config prettier @waldronmatt/prettier-config secretlint @waldronmatt/secretlint-config semantic-release @waldronmatt/semantic-release-config stylelint @waldronmatt/stylelint-config typescript @waldronmatt/tsconfig-config

Set up Husky

Follow the directions found here.

Set up Commitizen

Follow the directions found here.

Create Config Files

Follow the Usage section via the README.md in each package.

Some packages have examples of extended configurations to better support other packages and/or constitute a complete working configuration for projects.

See eslint, jest, lint-staged, semantic-release, stylelint, and tsconfig.

Add NPM Scripts

npm set-script lint:md "markdownlint --fix **/*.md --ignore node_modules --ignore **/CHANGELOG.md" && npm set-script lint:js "eslint --fix **/*.{js,jsx,ts,tsx}" && npm set-script lint:css "stylelint --fix **/*.{css,scss}" && npm set-script lint:html "htmlhint --config ./node_modules/@waldronmatt/htmlhint-config/index.json **/*.html" && npm set-script lint:secrets "npx secretlint **/*" && npm set-script lint "yarn lint:md && yarn lint:js && yarn lint:css && yarn lint:html && yarn lint:secrets" && npm set-script test "jest"

Install Git Hooks

Install husky and all hooks and npm scripts associated with configs:

npx husky add .husky/commit-msg 'npx --no-install commitlint --edit' && npx husky add .husky/pre-commit 'npx --no-install lint-staged'

Webpack

For Webpack, follow the directions in the README.md.

Other Awesome Monorepos

  • lerna-release-workflow - A basic Lerna monorepo with Yarn Workspaces, Conventional Commits and GitHub Actions.
  • base-configs - A collection of base configs for code quality and linting tools.
  • threepio - Shareable configurations that are used within the Galaxy.
  • medly - Share common configurations across different projects.
  • code-quality-tools - Shareable configurations for various coding-style/best practices/lint tools.
  • frontend-configs - NPM-Published front-end shareable configurations.

License

MIT

shareable-configs's People

Contributors

dependabot[bot] avatar github-actions[bot] avatar waldronmatt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.