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

packship

v0.1.55

Published

CLI to help ship npm packages faster

Downloads

2,093

Readme

Packship Installation Guide

Packship is a CLI tool designed to simplify the process of initializing new npm packages. It automates the creation of package directories, configuration files, and more, helping you set up packages faster and with less hassle.

This guide will walk you through installing Packship's dependencies and configuring Webpack.

1. Getting Started

Packship Global Installation

For MacOS & Linux

sudo npm i -g packship@latest

For Windows

npm i -g packship@latest

Setting Up Your Package with Packship

packship init

Follow the prompts, and your package will be ready!

2. Dependency Installation

Initialize node modules and package-lock.json

Install the necessary dependencies to ensure your package runs smoothly.

npm install

If you encounter dependency resolution issues, similar to this:

Image Title

Run the following command to install dependencies:

npm install --legacy-peer-deps

If you see an EACCES error, run the following command to fix permissions:

Image Title

sudo chown -R $(whoami) "$(npm config get cache)"

Then, try installing the dependencies again:

npm install

If you encounter deprecated package warnings, you can safely ignore them or update the packages as needed.

Install the necessary dependencies to avoid redundancy and ensure proper package setup.

Main Dependencies

For TypeScript

npm install --save typescript @types/react @types/react-dom

For JavaScript

npm install react react-dom

Make sure TypeScript and React typings are installed for development purposes. Install these commands only once to avoid duplication.


Babel for React & TypeScript

Install Babel presets to compile TypeScript and JSX/React syntax:

For TypeScript

npm install --save-dev @babel/preset-typescript @babel/preset-react

For JavaScript

npm install --save-dev @babel/preset-react

Babel & Webpack Loaders

Install the necessary loaders for Babel and Webpack:

npm install --save-dev babel-loader webpack

These loaders ensure that Webpack and Babel can work together to transpile and bundle your code.

3. Publishing Your Npm Package

To publish your package, ensure the build is successful:

npm run build

For New Packages

Once the build succeeds, publish your package:

packship publish

For Existing Packages

If you’re updating an existing package, update the version and then publish:

npm version patch/minor/major      # Depending on your release

Then:

packship publish

License

This project is licensed under the ISC License. See the LICENSE file for details.