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

shuttlerock_shared_config

v0.3.0

Published

Update shared config for Shuttlerock's projects.

Downloads

36

Readme

ShuttlerockSharedConfig

Update shared config for Shuttlerock's projects:

  codecov.yml
  .rubocop.yml
  .codeclimate.yml
  .eslintrc
  .stylelintrc
   Dangerfile
   env_list.yml
   .env.example
   .gitleaks.toml
   gitleaks.yml
   PULL_REQUEST_TEMPLATE.md

Installation in Ruby application

Add this line to your application's Gemfile:

gem 'shuttlerock_shared_config'

And then execute:

$ bundle

Or install it yourself as:

$ gem install shuttlerock_shared_config

Usage in Ruby application

$ rake shuttlerock_shared_config:update_pull_request_template  # Update PULL_REQUEST_TEMPLATE.md
$ rake shuttlerock_shared_config:update_codeclimate            # Update .codeclimate.yml
$ rake shuttlerock_shared_config:update_eslint                 # Update .eslint.yml
$ rake shuttlerock_shared_config:update_rubocop                # Update .rubocop.yml
$ rake shuttlerock_shared_config:update_stylelintrc            # Update .stylelintrc
$ rake shuttlerock_shared_config:update_dangerfile             # Update Dangerfile and create      doc/env_list.yml
$ rake shuttlerock_shared_config:update_codecov                # Update codecov.yml
$ rake shuttlerock_shared_config:update_gitleaks               # Update .gitleaks.toml/gitleaks.yml
$ rake shuttlerock_shared_config:update                        # Update all

Installation in JS application

$ npm install shuttlerock_shared_config

Add ' "update_eslintrc": "npx update_eslintrc" ' to yours package.json:

scripts: {
...
"update_eslintrc": "npx update_eslintrc"
...
}

Usage in JS application

$ npm run-script update_eslintrc
or
$ yarn run update_eslintrc

How to publish

  1. Update gem's version:
  1. Commit and push changes to Github
  2. Add tag with new version and push to Github
 $ git tag -a vX.X.X -m "vX.X.X"
 $ git push origin vX.X.X

How to Add npm-owner to NPM Package

You can read about this here.

How to set up danger.gem

Add to .circleci/config.yml:

    <<: *defaults
    steps:
      - restore_cache:
          key: v1-repo-{{ .Environment.CIRCLE_SHA1 }}
      - restore_cache:
          key: v1-bundle-{{ checksum "Gemfile.lock" }}
      - run: bundle --path vendor/bundle
      - run: bundle exec danger

Add environment variables to doc/env_list.yml

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the ShuttlerockSharedConfig project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.