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

sharetribe-scripts

v6.0.1

Published

Fork of facebookincubator/[email protected] with some additional features. This is a major version update to CRA

Downloads

4,770

Readme

sharetribe-scripts

This is a fork of the react-scripts package from the facebook/create-react-app monorepo. You can refer to its documentation:

This package is published as sharetribe-scripts in NPM.

See the description field in package.json to see which version of react-scripts this fork is built from.

Differences to react-scripts

  • Use postcss-preset-env with live CSS Custom Properties.
  • Use postcss-import
  • ~~Use postcss-apply~~
    • There's naive implementation of PostCSS apply plugin that works on top of PostCSS v8
    • However, you should consider @apply syntax to be deprecated. We won't support it indefinitely.
  • Use Loadable components
    • Use these versions in your client app: "@loadable/component": "^5.15.2", "@loadable/server": "^5.15.2",
  • A separate build-server script that makes a build to use in SSR (server side rendering)
  • Show customized instructions how to run the production build bundle

Development

Setup

To update the fork to use a new version of the upstream repository:

  1. If you haven't already, configure the upstream repository as a remote:

    git remote add upstream https://github.com/facebookincubator/create-react-app
  2. Sync the fork to a branch, making sure you merge from a specific version/tag that you want to base your changes on

    git fetch upstream
    git checkout master
    git checkout -b update-from-upstream
    git merge <tag_to_be_merged_here_eg_v1.1.2>
  3. update package-lock.json in the root of the create-react-app repository (npm install)

  4. Make your changes, test them (see below), make a PR, release

Making changes and testing

To test your local changes, use Verdaccio or link the local repository to the application:

Verdaccio

  1. Run Verdaccio locally (http://localhost:4873/) and create user there

  2. Make changes to this repo and update version in the package.json of this react-scripts dir The version could be something like "6.0.0-alpha"

  3. Publish your changes to the local registry

    npm publish --registry http://localhost:4873/
  4. Go to FTW repo and add .yarnrc file with content:

    registry "http://localhost:4873"
  5. Modify FTW template's package.json

    "sharetribe-scripts": "6.0.0-alpha",

    Then run yarn install

Linking

  1. In the create-react-app/packages/react-scripts directory, install dependencies and make a link of the package:

    yarn install # ignore the yarn.lock file
    yarn link

    NOTE: if other packages have changed too, you might need to run yarn install # ignore the yarn.lock file on the root folder too.

  2. In the application remove the old sharetribe-scripts package and use the linked version (read more):

    yarn remove sharetribe-scripts
    yarn link sharetribe-scripts
  3. Now you changes to the fork are usable as a symlicked dependency in the application

Publishing

  1. Make sure you have updated the version also in the description field in package.json. Try to sync the package version with the original package, if possible.

  2. Publish to NPM:

    npm login
    # Check credentials from password manager
    npm publish
  3. Tag the commit with released version: [email protected]