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

bundler-reactor

v5.0.3

Published

bit-bundler boiplerplate for react apps

Downloads

50

Readme

bundler-reactor

Quickly gets you up and running with a react Web Application using hand picked tools and default settings optimized for the ecosystem.

stack and feature support

  • 3dub dev server
  • pakit
    • Code splitting of third party libraries
    • Handle import and require statements
    • ES6 (ES2015) and JSX support
      • Babel interation
      • ESLint integration
    • File watching and Livereload
    • Bundle CSS and JSON
    • Bundle http resources such as CSS stored in a CDN
  • react with JSX support

usage

You get a few npm tasks to facilate the development and generation of production builds.

quick install and setup

Install bundler-reactor cli:

$ npm install -g bundler-reactor

Configure a new application

$ bundler-reactor sample-app
$ cd sample-app
$ npm install

npm run start

Starts a development server.

$ npm run start

npm run build

Creates a production build.

$ npm run build

actions

create

The default action. This is the action that is executed when bundler-reactor is called with just the name of an application.

$ bundler-reactor sample-app

is the same as

$ bundler-reactor create sample-app

update

From the directory of an already existing application:

$ bundler-reactor update

This gives you the ability to update bundler-reactor configurations. Updates are carefully applied to avoid overriding your data; only unmodified data used by bundler-reactor is updated. If for some reason automatic migration is not possible because of conflicts, errors will be logged and the migration will not complete.

NOTE: files in the src folder do not get updated if they are modified.

conflicts

To do a migration with conflicts you need to manually update the relevant files in conflict. If files should no longer be tracked for updates, their corresponding entries in .bundler/.install (in your project) needs to configured with detached: true. This will allow migrations to take place when there are conflicts and prevents updates to your files.

npm scripts

bundler-reactor relies on npm scripts to provide you with a CLI API to work with your application. Start sever, build, etc... These npm scripts are all availalbe and ready to be expanded on in the package.json file in your project.

pakit

pakit is the bundler, and it provides basic configurations for bundle splitting and other features that allow to articulate how your bundles should be created. The file .packit.json facilitates the configuration.

babel

The babel integration supports .babelrc, and bundler-reactor will setup one for you. Do leverage this file to enhance your transformation pipeline.

eslint

The eslint integration supports .eslintrc.json, and bundler-reactor will setup one up for you with some sensible default. Please do adjust this file to fit your needs.

3dub

The development server is 3dub, which can be configured via .3dub.json. You can configure proxies, livereload, history (fallback) for SPA support, and other settings availalbe in 3dub website.

To configure a proxy you need to specify an object with a source, which is the route to match for forwarding and a target, which is where the request is forwarded to.

The following example will forward every call for /api over to http://localhost:4000/graphql.

{
  "proxies": [{
    "source": "/api",
    "target": "http://localhost:4000/graphql"
  }]
}

In that configuration, any requests that you application makes to /api will get forwarded to http://localhost:4000/graphql.