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

uber-dot-arcanist

v2.0.0

Published

Uber's .arcanist folder as an npm module

Downloads

17

Readme

uber-dot-arcanist

This product encapsulates any arcanist plugins we depend on at Uber that are not included with arcanist itself. With this repo, you can avoid copypasta plugin folders in the .arcanist folder at the root of your project that are likely to be out of date.

Included Arcanist Plugins

Currently, this module contains three arcanist plugins:

Usage

To use this module, follow these steps from the root of your project:

# first make sure you have the most recent version of arcanist
arc upgrade

# install uber-dot-arcanist as a dev-dependency
npm install --save-dev uber-dot-arcanist

# if you currently have a .arcanist/ folder in your project, check it to make
# sure that is doesn't include any plugins that uber-dot-arcanist doesn't
# include.
# Legacy Uber projects may have tap, jenkinsphoo and jshintlinter. This module
# contains only the tap plugin as usage of the other two are deprecated at Uber.
ls -al .arcanist

# if there are no folders or directories in .arcanist besides jenkinsphoo, tap
# or jshintlinter, you can delete .arcanist. If there are any other modules,
# follow the instructions in the section 'How to handle other plugins in
# .arcanist'
git rm -rf .arcanist

After removing the .arcanist folder, you need to configure arcanist to load the plugins from the node_modules/uber-dot-arcanist/.arcanist/ folder.

Open your .arcconfig file and look for the load property. It is likely to be an array like so:

{
    "load": [".arcanist/tap", "arcanist/uber-standard"]
}

If you see jshintlinter or jenkinsphoo in the array, you can delete those elements. For tap, you just need to prepend the path to the .arcanist folder in this module. Assuming your load value was the one right above, your new values would be:

{
    "load": [
        "node_modules/uber-dot-arcanist/.arcanist/tap",
        "node_modules/uber-dot-arcanist/.arcanist/uber-standard"
    ]
}

To add support for uber-standard when submitting differentials to Phabricator with arc diff, you can add the following to your .arclint file.

{
    "linters": {
        "uber-standard": {
            "type": "uber-standard",
            "include": "(\\.js$)"
        }
    }
}

Once you've made these changes just stage your changes and commit:

git add package.json
git add .arclint
git add .arcconfig
git commit -m "Loading arcanist plugins from uber-dot-arcanist npm module"

How to handle other plugins in .arcanist

If you encounter a plugin in your .arcanist folder that is not either tap or uber-standard, you should first check the [phacility/arcanist][arcrepo] to see if the plugin you are using is already part of the standard arcanist install. If it is not, git clone this repo and add the plugin to this repo to make it available to other engineers at Uber. Don't forget to add the repo to the section titled "Included Arcanist Plugins" at the top of this README.

Tests

This module is just a wrapper around arcanist plugins. It is not callable as a library and contains no binary file. The tests just check that the expected plugins are included and that this module throws if called programmatically.

License

The MIT License (MIT)

Copyright (c) 2014 Uber Technologies, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.