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

@procore/directory-add-company

v1.2.2

Published

Example package description

Downloads

245

Maintainers

squidbeakssquidbeaksswati.jadhavswati.jadhavtejeshwartejeshwarmohitsharma97mohitsharma97andreszorrilla-procoreandreszorrilla-procoremagdyyxxmagdyyxxcharan_procorecharan_procorealy-el-kerdanyaly-el-kerdanys_kudryks_kudrykadarsh.gautamadarsh.gautamvishal-procorevishal-procorekalyani.gosavikalyani.gosaviamit.gurav-contractoramit.gurav-contractorworldofsatyakiworldofsatyakikuldeepsingh4556kuldeepsingh4556karina.mendez-contractorkarina.mendez-contractorbikash.sahoobikash.sahoorowan.ibrahimrowan.ibrahimvinayakaprabhuvinayakaprabhusaurasumprocoresaurasumprocoreconner-procoreconner-procorechaitra-m-15chaitra-m-15vsobol-cvsobol-cabhishekkumar123abhishekkumar123jasaswinijasaswinialeh.haurylenia-contractoraleh.haurylenia-contractorkellikearnskellikearnsviktoriia_azarovskaviktoriia_azarovskafabriciobdfabriciobdyoussefameryoussefamerbrockpcorbrockpcorkani-procorekani-procoreantonyayoubantonyayoubashish.sharma2024ashish.sharma2024glidenorglidenordaniel-pierre-procoredaniel-pierre-procoreamitk030amitk030mathenes_procoremathenes_procorevinoth.kuppusamyvinoth.kuppusamymariia.solodovnikmariia.solodovniksflang-procoresflang-procorecassianomatos-procorecassianomatos-procorealan.facchini-contractoralan.facchini-contractorzayterzayterbohdan-horai-procorebohdan-horai-procorenigeld-procorenigeld-procoresamad.viranisamad.viranifernandocamilottifernandocamilotticonnie-feng-procoreconnie-feng-procoreroger-procoreroger-procoreganesh.raghupathyganesh.raghupathyyzhou2024yzhou2024alyelashram_procorealyelashram_procoremelch-procoremelch-procorepeterknifpeterknifmoaz-ashrafmoaz-ashrafattachiattachia.elbadaweia.elbadaweihyogmanhyogmandmitri_wmdmitri_wmstephanie.breretonstephanie.breretonprocore-oss-userprocore-oss-userstevenkang3stevenkang3max.helmetagmax.helmetagcodyrobertsprocorecodyrobertsprocoremiguel.garcia-procoremiguel.garcia-procoreatoaimaatoaimamustafa-abdelrahmanmustafa-abdelrahmanelewando-procoreelewando-procoreahmed.ghorabahmed.ghorablnspatz914lnspatz914richard.bunnrichard.bunnomar.wagdyomar.wagdymona.khairbekmona.khairbekmbartlett413mbartlett413cody_schindler_procorecody_schindler_procoreyoasyo25yoasyo25ritchleeritchleeandersontr15andersontr15steven.hinklesteven.hinklejamie-dugan-procorejamie-dugan-procorehgouhierprocorehgouhierprocoredenzylbalramdenzylbalramsarah.freitassarah.freitasalan.bresanialan.bresaniamyprocoreamyprocoreyoyis3000yoyis3000elijah.procoreelijah.procoremike-arndt-procoremike-arndt-procorejnhoang1jnhoang1pam-whisenhuntpam-whisenhuntshradha.khardshradha.kharddavid-christensen-procoredavid-christensen-procorejavio-procorejavio-procorechance.eakin.procorechance.eakin.procoregideon-procoregideon-procoreihor.diachenko_procoreihor.diachenko_procorejustinmwattsjustinmwattstedyangtedyangjyang-procorejyang-procorepwhisenhunt-procorepwhisenhunt-procorefairchildfairchildrodayna.ehabrodayna.ehabneil1023neil1023scottsternscottsternbrian.smith1brian.smith1g2mitchellg2mitchelldlameter-procoredlameter-procorekylepietzkylepietzabhijit-procoreabhijit-procorelhuang325lhuang325jake-pitkinjake-pitkinerikthoresonerikthoresonsimona.iancusimona.iancudecha-sansondecha-sansonaberkowitzaberkowitzasamayasamaymustafa-u-abdelrahmanmustafa-u-abdelrahmanrajatmenhdirattarajatmenhdirattajacksonleach-procorejacksonleach-procorepmfrawleypmfrawleyphunguyen-pcorphunguyen-pcortatsiana.cliftontatsiana.cliftondeiabdeiabsrichaitanya.peddintisrichaitanya.peddintikenny.foisykenny.foisymatheusprocorematheusprocorejgreene_procorejgreene_procorehectorthielehectorthieleetokarevetokarevdaniel.ferreira-contractordaniel.ferreira-contractordmccraw-procoredmccraw-procorecyrille.baicyrille.baigreg.sparksgreg.sparksfabiomelo513fabiomelo513phil.custerphil.custerbbreyel921bbreyel921amir-iskanderamir-iskanderneil.mckeemanneil.mckeemannickprocorenickprocorelzhou888lzhou888davidshuredavidshurestevenliprocorestevenliprocoreramysaid2ramysaid2refaiepcnrefaiepcnjgentesjgentesfaraz.haniffaraz.hanifmostafaeltazymostafaeltazyagamaleldinagamaleldinandrew.isaacandrew.isaacsaranahal2saranahal2rodrigo.dejuanarodrigo.dejuanakellen.stewartkellen.stewartbill-wagnerbill-wagnerezrasimeloffezrasimeloffjeffgiaquintojeffgiaquintogturkadzegturkadzesean.spearman.procoresean.spearman.procorekylemartinez-procorekylemartinez-procoreroobo-romeskiroobo-romeskiandres-mendez-procoreandres-mendez-procoregaurav.sharma.procoregaurav.sharma.procoretracy.ottotracy.ottosarah.herediasarah.herediavictorbendeck-pcvictorbendeck-pccbathgatecbathgatedavidkangprodavidkangprokyle.liukyle.liuamin.jaipuriamin.jaipurigrafffffffgrafffffffmishaelowoyemimishaelowoyemievan.cerwonka.procoreevan.cerwonka.procoreilya.dryha-contractorilya.dryha-contractorvaromirvaromiryogevfine1yogevfine1timofeeetimofeeematt.harris0223matt.harris0223winson.chuwinson.chuandersonbispoprocoreandersonbispoprocorescorgiat-procorescorgiat-procoreladavargaladavargaprocore_halzyprocore_halzyenyagaenyagawillpankonienwillpankoniensateesh-kadiyala-procoresateesh-kadiyala-procorechris.berberchris.berbertxin1txin1epalinprocoreepalinprocoremehrdad-panahandehmehrdad-panahandehtyler.wasden.procoretyler.wasden.procorejeremy.lundjeremy.lunddineshkumar.jayakdineshkumar.jayakryanfuentesprocoreryanfuentesprocorestajicsstajicsbrocktillotsonprocorebrocktillotsonprocorekyle.williamskyle.williamsdtorres-procoredtorres-procorenoor.alinoor.aliari-procoreari-procorealanprocorealanprocorejl4everjl4everjames.lawsonjames.lawsonajaykumar-procoreajaykumar-procoredennis.heckmandennis.heckmanlalovar-procorelalovar-procorejames.clearyjames.clearychadryderchadryderdevin.cunningham.procoredevin.cunningham.procoreabhijit.patwardhanabhijit.patwardhanlydiaharalydiaharasherylnapigkitsherylnapigkitchangprocorechangprocoreapcarroll_procoreapcarroll_procoreandy.mayerandy.mayerbob.laskowskibob.laskowskivinaya-procorevinaya-procorekahliholmeskahliholmesandrew.wheelerandrew.wheelerleandro-procleandro-procyadhu.prakashyadhu.prakashjason-kayejason-kayejesse.olsenjesse.olsenpatrick.lardinpatrick.lardinbrad.uranibrad.uraniallenanle.procoreallenanle.procorebrookyboy009brookyboy009uddhavjoglekaruddhavjoglekardancingshelldancingshellrysmithprocorerysmithprocorerobbiegprocorerobbiegprocorejadamsssjadamsssjeremy.bouzigardjeremy.bouzigardtimdohertytimdohertyb.bookoutb.bookoutjalyngjalynghtaelhtaeldev-account-admindev-account-adminsseanwangsseanwangbhargavrndbhargavrndfarismmkfarismmkdannyporrellodannyporrellodanny.oudanny.oumessanjahmessanjaheyvettesoueyvettesoujgee67jgee67cagmzcagmzmariah_delaneymariah_delaneylukenispellukenispelkimhin267kimhin267juliana.hernandezjuliana.hernandezjudy-lu-pcjudy-lu-pcprocore-it-supportprocore-it-supportandrewburke-pcandrewburke-pcjkleintechjkleintechrachel.arkebauerrachel.arkebauerprocore-npm-botprocore-npm-botjames.dabbs-procorejames.dabbs-procorelaurenbrandsteinprocorelaurenbrandsteinprocorescottbieser-procorescottbieser-procorezach.mckenzie.procorezach.mckenzie.procoreshayonj_procoreshayonj_procoreheplayskeysheplayskeysmike.southmike.souththomasoboylethomasoboyledischordedischordederek-carter-procorederek-carter-procoredlgasserdlgassercfprocorecfprocoreevan.waitsevan.waitsjeremy-marcusjeremy-marcusjmejia-fsljmejia-fslersgonzaloersgonzalostephan-procorestephan-procorealeclarsenprocorealeclarsenprocoreyihai.zweifelyihai.zweifeljay-rajanjay-rajanjacky-leijacky-leipeter.jinpeter.jin

Keywords

Readme

directory-add-company

New add company flow allowing users to add a connected company to their directory by searching PCN.

Installation

yarn add @procore/directory-add-company

Development

Adding Dependencies

This package uses yarn workspaces to manage dependencies. To add a dependency, run the following command in the root directory of this package:

yarn workspace @procore/directory-add-company add <npm-package-name>

Yarn Workspaces Docs

Local Development using Storybook

This package uses storybook to develop and test components. To run storybook, run the following command in the root directory of this package:

yarn storybook

Storybook Docs

Local Development inside the Directory Hydra Client

By linking the directory hydra client to the directory add company package, you can import the package in the directory hydra client as you would any other package.

Install yalc https://www.npmjs.com/package/yalc If you already have yalc installed you can skip this step.

yarn global add yalc

In this directory directory-js-monorepo/packages/directory-add-company, run

yarn publish:locally

This will publish the package to your local yalc store.

In the Directory hydra client root folder, run

yalc add @procore/directory-add-company

This will link the package to the directory hydra client.

You can then import the package in the directory hydra client as you would any other package.

import { AddCompanyButton } from '@procore/directory-add-company';

After making changes to the directory add company package, run yarn publish:locally in this directory and restart your server in the directory hydra client to see the changes.

Publishing to NPM and updating the package in the Directory Hydra Client

To publish a release with changes:

  1. Create new new branch (e.g., git checkout -b chore/release).
  2. Create a changeset by running yarn changeset in the root folder of this monorepo and follow the prompts. This will create a file in the .changeset folder.
  3. Run yarn changeset version to create a release containing all changes. This command will update the version(s) of any packages that have changed, as well as update any relevant CHANGELOG.md files.
  4. Commit the changes (e.g., git commit -m "chore: release").
  5. Create a pull request. git push -u origin <BRANCH_NAME>, and then create pull request in the web UI.
  6. Once the pull request is merged to main the updated packages will be published to npm once the CI pipeline is completed.

Updating the package in the Directory Hydra Client

Once the PR containing the changeset is merged, you can update the package in the directory hydra client by running the following command in the directory hydra client root folder:

yarn add @procore/directory-add-company

You can then test the changes in the directory hydra client by running yarn start in the directory hydra client root folder.

If everything looks good, you can commit the changes to the directory hydra client and create a PR. If CI passes you can then create a tugboat instance from your branch to QA the changes.

Running E2E Tests Locally

This package uses Cypress to run E2E tests. To run the E2E tests, run the following command in the root directory of this package:

yarn cypress:local

Cypress Docs

Trouble Shooting

  • If you receive an error stating no declaration file was found after linking the package, run yarn build in the directory-add-company package and restart your server.

Publishing Storybook by Chromatic

The Chromatic snapshot testing (Regression Testing) is turned off by default as we can publish stories to Chromatic without running these tests.

Note: DO NOT turn on regression testing without acquiring leadership sign off for funding as this will accrue cost

References: Chromatic Docs

// .env
CHROMATIC_PROJECT_TOKEN=your-token-here
  • Run chromatic script:
yarn chromatic
  • Please copy the Chromatic project from Chromatic token to CI Environment value.

  • Add new job to your process. Circle CI example:

    workflows:
      ...
      jobs:
        - storybook_chromatic_deployment:
        requires:
            - setup
    jobs:
        storybook_chromatic_deployment:
        steps:
        - run:
            name: Deploy To Chromatic
            command: yarn chromatic:ci
  • Optionally(Recommended) if you like to speed up the build with Chromatic you can use the already built stories so we can depend the Chromatic build on the generated build from Storybook build. Steps are as following:

    1. Add --storybook-build-dir ./storybook-static flag to the chromatic script.(Already added)

    2. Add --webpack-stats-json flag to storybook:build.(Already added)

    3. Add the steps to build stories before building Chromatic.

              ```
              workflows:
                  - storybook_chromatic_deployment
                    requires:
                      - build_storybook
              ```
      
      </details>
       <details>