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

zapier-scripts

v7.8.2

Published

Zapier frontend scripts

Downloads

295

Maintainers

diomerdiomereumie.jhong-zapiereumie.jhong-zapiermahsa.khoshab-zapiermahsa.khoshab-zapiermatthew.hockenbury-zapiermatthew.hockenbury-zapierkit.burgess-zapierkit.burgess-zapierjake.talgard-zapierjake.talgard-zapierjonathan.wise-zapierjonathan.wise-zapierisidro.hernandez-zapierisidro.hernandez-zapierdaniel.vagg-zapierdaniel.vagg-zapiermason.geloso-zapiermason.geloso-zapierlisa.orrlisa.orrrafal.wilinski-zapierrafal.wilinski-zapieranna.hadnagy-zapieranna.hadnagy-zapierchris.lee-zapierchris.lee-zapierzackary.higgins-zapierzackary.higgins-zapierrahul.es-zapierrahul.es-zapierjake.lear-zapierjake.lear-zapierservice-account-appsecservice-account-appsecmichael.gill-zapiermichael.gill-zapiersara.gomez-zapiersara.gomez-zapiercameron.phillips-zapiercameron.phillips-zapierjoe.smith-zapierjoe.smith-zapierolajide.ayinla-zapierolajide.ayinla-zapiercharan.mahesan-zapiercharan.mahesan-zapierjames.miltenberger-zapierjames.miltenberger-zapierdan.middleton-zapierdan.middleton-zapierjake.moghtader-zapierjake.moghtader-zapiertreesrule14treesrule14aispurostrangepixelsaispurostrangepixelscarlos.bazana-zapiercarlos.bazana-zapierdiego.rodriguez.vzqdiego.rodriguez.vzqmyless91myless91heather.osborn-zapierheather.osborn-zapiernicholas.civili-zapiernicholas.civili-zapierlukas.toma-zapierlukas.toma-zapierhusaina.wardhawala-zapierhusaina.wardhawala-zapierlisa.zapierlisa.zapierdavid.jardine-zapierdavid.jardine-zapierdavid.graves-zapierdavid.graves-zapierana.krivokapic-zapierana.krivokapic-zapierjacob.blakely-zapierjacob.blakely-zapierryan.detzel-zapierryan.detzel-zapierbrody-zapierbrody-zapierben.rugg-zapierben.rugg-zapiernicole.hardson-hurley-zapiernicole.hardson-hurley-zapierbryce.seagervandyk-zapierbryce.seagervandyk-zapierchristophe.coutzoukis-zapierchristophe.coutzoukis-zapierjessica.winters-zapierjessica.winters-zapiercameron.barnes-zapiercameron.barnes-zapierwojciech.matuszewski-zapierwojciech.matuszewski-zapierankit.gordhandas-zapierankit.gordhandas-zapierchrys.swingler-zapierchrys.swingler-zapierryan.vennell-zapierryan.vennell-zapierbenjamin.kempe-zapierbenjamin.kempe-zapierali.tycast-zapierali.tycast-zapierjelani.jackson-zapierjelani.jackson-zapierjdotceejdotceejeanny.syjeanny.syjames.hong-zapierjames.hong-zapierdennis.kailikia-zapierdennis.kailikia-zapiertom.leung-zapiertom.leung-zapierservice-account-renovateservice-account-renovateerin.williams-zapiererin.williams-zapiernolan.little-zapiernolan.little-zapiernik.danilov-zapiernik.danilov-zapiermichal.wysocki-zapiermichal.wysocki-zapiertomasz.piechota-zapiertomasz.piechota-zapiernate.moore-zapiernate.moore-zapiercorbin.schwartz-zapiercorbin.schwartz-zapierandrew.kordampalos-zapierandrew.kordampalos-zapierjonathan.harrell-zapierjonathan.harrell-zapierjc.coto-zapierjc.coto-zapierandrew.gosnell-zapierandrew.gosnell-zapieramber.diehl-zapieramber.diehl-zapiervivian.lau-zapiervivian.lau-zapierosarhomiyeke.iyere-zapierosarhomiyeke.iyere-zapierkristen.keller-zapierkristen.keller-zapierblzapierblzapiertal.peretz-zapiertal.peretz-zapiershanan.holm-zapiershanan.holm-zapiervj.clasgens-zapiervj.clasgens-zapiermarina.handmarina.handaubry.stewart-zapieraubry.stewart-zapieraleks.ozolins-zapieraleks.ozolins-zapierabraham.duran-zapierabraham.duran-zapierabdullah.umar-zapierabdullah.umar-zapierrohit.tripathi-zapierrohit.tripathi-zapiermike.lambert-zapiermike.lambert-zapierted.schmidt-zapierted.schmidt-zapierlaura.giles-zapierlaura.giles-zapiernitish.upadhyay-zapiernitish.upadhyay-zapiercatherine.murray-zapiercatherine.murray-zapierken.ng-zapierken.ng-zapieromar.delossantos-zapieromar.delossantos-zapierryan.laxson-zapierryan.laxson-zapierpedro.louro-zapierpedro.louro-zapierzac.jones-zapierzac.jones-zapierbrandon.parker-zapierbrandon.parker-zapieralec.hinh-zapieralec.hinh-zapiermaggie.cody-zapiermaggie.cody-zapiermary.rising-zapiermary.rising-zapierharrison.jackson-zapierharrison.jackson-zapieralex.hovancik-zapieralex.hovancik-zapiermatthew.kiernander-zapiermatthew.kiernander-zapierphilip.ng-zapierphilip.ng-zapierdaniel.shepard-zapierdaniel.shepard-zapiersharvari.desai-zapiersharvari.desai-zapierjenna.macdonald-zapierjenna.macdonald-zapierrval-zapierrval-zapierryan.dunnewold-zapierryan.dunnewold-zapierashley.isles-zapierashley.isles-zapierservice-account-catalogservice-account-catalogtazrafiqtazrafiqjayson.kadlecek-zapierjayson.kadlecek-zapierismail.latona-zapierismail.latona-zapierkasey.cowley-zapierkasey.cowley-zapiersarah.hernandez-zapiersarah.hernandez-zapieraaron.kosel-zapieraaron.kosel-zapieriris.huang-zapieriris.huang-zapierzapier-interfaceszapier-interfacesvitor.balocco-zapiervitor.balocco-zapierscott.woodend-zapierscott.woodend-zapieremily.harris-zapieremily.harris-zapiersandy.brydon-zapiersandy.brydon-zapierbrian.wendt-zapierbrian.wendt-zapierron.swanson-zapiertestron.swanson-zapiertestdilan-zapierdilan-zapierkatestamzapkatestamzapjhk2020jhk2020percy_at_zapierpercy_at_zapiertupelo8tupelo8dewayne-zapierdewayne-zapiersarahstorysarahstoryraquel.zapierraquel.zapierdanielheidornzapdanielheidornzapalex.blackalex.blackkatesowleskatesowlesjacquelynmccrayjacquelynmccrayschlickmannschlickmanncody.landrycody.landryhgascoignehgascoigneahsanhassanahsanhassankaushibkaushibnkroeker_zapnkroeker_zaprecamiliorecamilioandyzapierandyzapierariella-zapierariella-zapiervaleriia.shpinervaleriia.shpinerrchinermanrchinermanmiklossimonmiklossimonamickael-zapamickael-zapsethettersethetteryohana-heringeryohana-heringerrebecca.davis.zapierrebecca.davis.zapierben.clapp.zapierben.clapp.zapiermattplachtermattplachtermirrenzapmirrenzaplizzyzaplizzyzapcolemacleancolemacleansdelosrios95sdelosrios95magweavermagweaverjoseph-corona-zapierjoseph-corona-zapiernickaccuardizapiernickaccuardizapierraul.negronraul.negronnormanroanormanroafernando.velascosalazarfernando.velascosalazarmanasseh_zapiermanasseh_zapierdavidwin-zapdavidwin-zapgabebravogabebravoannader-zapierannader-zapieraparkinaparkinabhi-kapoorabhi-kapoorblakekblakekchasehambychasehambyzoeykim-zapierzoeykim-zapierdjeebusdjeebusxavierh-zapierxavierh-zapierkalenwesselkalenwessellev.glicklev.glickgreg-zapiergreg-zapierdavid.zapierdavid.zapierjoel.taddeijoel.taddeirobert.lewisrobert.lewisplorryplorryilari.scheininilari.scheininmsholtymsholtypoterekmpoterekmfgrafafgrafadayne-taittdayne-taittjosuezapjosuezappwhammanpwhammanomar.razaomar.razaadampieadampieerikamontanierikamontanistandielplsstandielplsmdgreenwaldmdgreenwaldloveena.vattenkyloveena.vattenkyjasehackmanjasehackmantims256tims256zapetczapetcchaodonghuchaodonghuemma-haysemma-haysmichaelannmichaelannjdaudierjdaudierjoaopimenteljoaopimentelryanmrubinryanmrubinter0ter0rghazalirghazalirsiemensrsiemenscasshill13casshill13eliangeliangnoahmangernoahmangerkola-erkola-ercodebycalebcodebycalebcalebpetersoncalebpetersonjordyvdjordyvdvictoravasiloaeivictoravasiloaeilukecjohnsonlukecjohnsonzapier-engineeringzapier-engineeringstevemolitorstevemolitorjdealjdealbcookseybcookseybryanhelmigbryanhelmigrobgoldingrobgoldingfokkezbfokkezbsam.plantsam.plantmichaelgilleymichaelgilleymluksomluksomikekucheramikekucherajoannejoannejuanvjuanvibrahem.zayedibrahem.zayedmuyiwa.olurinmuyiwa.olurinjamesacarrjamesacarrmikeknoopmikeknoopjosh.newmanjosh.newmanparsenzparsenzlarrytlarrytrhubbardrhubbardjacobsowlesjacobsowlesjacebrowningjacebrowningstacietaylorcimastacietaylorcimahitchcockwillhitchcockwillrenaekathleenrenaekathleenchelsea.weberchelsea.weberreganstarrzapierreganstarrzapiercyberwitchcyberwitchveebersveebersthomirthomirshalgrimshalgrimseason.huangseason.huangchris.vanderkolk.zapierchris.vanderkolk.zapiernickm0501nickm0501kayceekayceeowarijowarijbrian.corbinbrian.corbindarko.ronic.zapierdarko.ronic.zapierkredlearkredlearnumichuunumichuujustin.zapierjustin.zapierchelschubbchelschubbskylershawskylershawdaniel-frazierdaniel-frazieraaclarker-zapaaclarker-zaptiffanietiffanieerrorificerrorificezerwxezerwxlijennilijennijasonkotenkojasonkotenkowernertcwernertccortega_zpcortega_zptkcrannytkcrannybrandon.myers.zapierbrandon.myers.zapiermatthewwaltersmatthewwalterskat.nestorkat.nestorandya-zapierandya-zapierianscoianscowill.wigginswill.wigginsrondiegerondiegeannaulyanovaannaulyanovabskaurudbskaurudkaitrin.coxkaitrin.coxjeansimonjeansimonrocioarrocioarmilkrammilkrammburnimburnipeterbritnellpeterbritnellguivasconcelos-zapierguivasconcelos-zapiercarolinezapiercarolinezapieremmaielleemmaiellejeanetteujeanetteuismael.mendoncaismael.mendoncabbohenbbohensugatmahantisugatmahantinicole.thomasnicole.thomasagscalaagscalajordanraleighjordanraleighjosh.barberjosh.barberkamalsingh.narukakamalsingh.narukarobertsclrobertsclwavebeemwavebeemlaurenmbeattylaurenmbeattyankush_zapierankush_zapierihor.horakihor.horakmaxwellgbrownmaxwellgbrownhanz.corteshanz.cortesalejandro-lagosalejandro-lagos

Keywords

Readme

zapier-scripts

Zapier Frontend scripts 🤖

This package is owned by the foundations team (#team-foundations), but is deprecated.

The end-goal of this project is to have a CLI executable to be used by Zapier projects that abstracts away configuration for linting, testing, formatting, building, etc.

Note: although this repository is private, the NPM package it publishes to is public.

Installing

yarn add zapier-scripts --dev

Folder structure convention

zapier-scripts assumes your project will have the following folder structure:

.
├── package.json
├── /node_modules
├── /dist
│   └── bundle.js
├── /src
│   ├── /some-folder
│   │   └── bar.js
│   │   └── bar.test.js
│   └── index.js
└── /tests (legacy, recommend using side-by-side *.test.js)
    ├── /some-folder
    │   └── bar.js
    └── index.js

Adopting a folder structure convention allows us to leverage powerful out-of-the-box defaults, as you'll see below.

Usage

zapier-scripts [script] [args]

Where args are any of the args that you can pass to the inner tool that the script wraps (including file paths), and script can be one of the built-in scripts below:

| Script | Description | | --------------- | ------------------------------------------------------------------ | | lint | 👕 Lints code using ESLint | | test | 🚨 Runs tests using Jest | | format | 💅 Formats code using prettier | | format-staged | 💅 Run prettier automatically on your staged files before a commit | | validate | 🔍 Runs lint, test and format in parallel. |

All scripts can be called with no extra arguments and zapier-scripts will use sane defaults, with no extra configuration needed on your part.

Overriding configuration defaults

zapier-scripts will use sane defaults unless it finds a config file in your project's root for that specific tool. In that case, your config file takes precedence.

For example, if you don't have an .eslintrc.js (or .eslintrc.json) file in your project root, zapier-scripts defaults to using its internal config file (that extends from eslint-config-zapier).

Note that zapier-scripts does not do config merging. This is by design. If you want to have a custom config file that inherits from the default zapier-scripts config, remember to extend from it. For example, for ESLint:

module.exports = {
  extends: [require.resolve('zapier-scripts/src/config/eslint.js')],
  // your custom config stuff goes here
};

Editor integrations

Unfortunately, most editor integrations will only work if the config file is in the project's root. Luckily, it's easy to get around this: simply create a config file in your project's root that inherits from the default zapier-scripts' config.

For example, to add ESLint editor integration, add a file called .eslintrc.js to your project root with the following content:

module.exports = require('zapier-scripts/src/config/eslint');

If you want prettier integration, add a file called prettier.config.js to your project root with the following content:

module.exports = require('zapier-scripts/src/config/prettier');

Using format-staged to automatically format all staged files before a commit ✨💅

To run prettier on all staged files automatically before a commit, add a precommit script to your package.json like the following:

"scripts": {
  "precommit": "zapier-scripts format-staged"
}

Support

  • OS X
  • npm > 5

Development

If you want to test this package with another package in the monorepo, you don't have anything to do. Your changes will be reflected immediately.

If you want to test this package with an external project, you can test it by yarn installing from a local path. yarn linking won't work since it doesn't trigger the postinstall script that installs the pre-commit hook.

mkdir zapier-scripts-testing
cd zapier-scripts-testing
yarn install ../zapier-scripts

TODO Checklist

  • [ ] Add tests
  • [ ] Add documentation sections for each script
  • [ ] Refactor code to ES6 and add babel support

Contributing & Publishing

When working on a PR, include a description of what changed in the vNext section of the CHANGELOG. If there's no vNext section, add one.

Before publishing a new version, rename the vNext section of the CHANGELOG with the correct version number you're about to publish, then add a new empty vNext section at the top. Then:

git add CHANGELOG.md
git commit -m "Update CHANGELOG"
npm version [major|minor|patch]
git push --follow-tags

Once your PR has been merged to develop, you can publish the package with:

npm publish

Inspiration

This is inspired by kdc-scripts and react-scripts.