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

fatback

v1.0.0

Published

BrightAuthor Connected Composite Development Project

Downloads

45

Readme

fatback

Requirements

How To Notes

Git Configuration

  1. git config --global diff.submodule log (so you get clearer container diffs when referenced submodule commits changed)
  2. git config --global fetch.recurseSubmodules on-demand (so you are confident new referenced commits for known submodules get fetched with container updates)
  3. git config --global status.submoduleSummary true (so git status gets useful again when a referenced submodule commit changed)

Install

  1. install node/npm
  2. clone fatback
  3. cd fatback
  4. npm run init-comp (WARNING: this will delete any uncommitted changes)
  5. npm install
  6. npm run setup-comp
  7. npm run build-comp NOTE: AS OF v0.15.0 THIS IS CURRENTLY NOT SUPPORTED
  8. cd path/to/submodule
  9. execute any custom configurations/build steps for each submodule

Switching/pulling fatback branch updates /

  1. git pull / checkout
  2. start Install#3 above for fresh build

Adding a submodule

  1. git submodule add [repo url]
  2. add submodule configuration to fatback/package.json#dependencies

for example "@brightsign/<package_name>": "file:./<package_name>",

for a package named ‘ba-notification-ui’, the entry would be “@brightsign/ba-notification-ui”: “file:./ba-notification-ui”,

note, the assumed order of fatback/package.json#dependencies is such that submodules are specified before the submodules they depend on. For example, "@brightsign/bacon": "file:./bacon" is specified before all other submodules as bacon depends on all other submodules (directly or indirectly) but has no submodules which depend on it

  1. add package.json#dependencies configuration for all other submodules that require the newly added submodule

for example "@brightsign/<package_name>": "",

for a package named ba-notificiation-ui, the entry might be “@brightsign/ba-notification-ui”: “0.0.2”, or, for a package not published yet, it might have the form “@brightsign/ba-notification-ui”: “git+ssh://[email protected]:ba-notification-ui#41a1b60605ead9794ec8fdb931f3833d5”

for more information regarding npm dependency definition formats, see https://docs.npmjs.com/files/package.json#dependencies

  1. start Install#3 above for fresh build

Permanently removing a submodule

  1. git submodule deinit path/to/submodule
  2. git rm path/to/submodule
  3. git commit -am “Removed submodule X”
  4. start Install#3 above for fresh build

Grabbing updates/change branch from a submodule

  1. cd path/to/submodule
  2. git fetch
  3. git checkout [commit-sha1 | branch]
  4. cd -
  5. git commit -am “Updated submodule X to: blah blah”
  6. git push
  7. start Install#6 above for fresh build

Pushing updates to a submodule

  1. git submodule update --remote --rebase -- path/to/module
  2. cd path/to/submodule
  3. local work, testing, eventually staging
  4. git commit -am “Update to central submodule: blah blah”. WARNING: if committing to local head, checking out remote branch after this step will wipe locally committed (unpushed) changes. It is recommended that you instead work from a local branch when making changes to submodules
  5. git push
  6. cd -
  7. git commit -am “Updated submodule X to: blah blah”
  8. git push