[AskJS] What is the best way to create a common npm package for building others?

This page summarizes the projects mentioned and recommended in the original post on /r/javascript

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • tsParticles

    tsParticles - Easily create highly customizable JavaScript particles effects, confetti explosions and fireworks animations and use them as animated backgrounds for your website. Ready to use components available for React.js, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Inferno, Solid, Riot and Web Components.

  • I have some npm packages with identical configurations, just different code and they can be seen here (they are not all, but they are a good example).

  • scripts-to-rule-them-all

    Discontinued Set of boilerplate scripts describing the normalized script pattern that GitHub uses in its projects.

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

    SurveyJS logo
  • confgen

    Generate repetitive configs for vite, typescript, eslint, etc

  • I made my own for exactly the reasons you cite: https://github.com/erikpukinskis/confgen but it’s extremely opinionated and very alpha. Basically, if you are working in the cluster of Vite, TypeScript, Apollo, etc it will work but it doesn’t work with anything else.

  • generate-package

    Use as a sub-generator or plugin in your generator to create a package.json for a project. Or install globally and run with Generate's CLI.

  • https://github.com/generate/generate-package (older but Jon Schlinkert is a thoughtful engineer)

  • lunde

    🏗 ʟᴜɴᴅᴇ == Utilities I use for maintaining and creating JavaScript projects

  • lerna

    :dragon: Lerna is a fast, modern build system for managing and publishing multiple JavaScript/TypeScript packages from the same repository.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts