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

slush-web-app

v1.1.0

Published

Scaffold a web app with Slush

Downloads

8

Readme

slush-web-app

Scaffold a web app with Slush

Install

  1. Install gulp.js
  2. Install Slush
  3. Install the slush-web-app generator
$ npm install -g gulp slush slush-node-module

Usage

Create a new folder for your project and cd into it:

$ mkdir my-new-project && cd my-new-project

Run the generator and answer the questions.

$ slush web-app

? Project name: my-new-project
? What tools are you going to use? (Press <space> to select)
❯◯ React
 ◯ React Router
 ◯ Redux

Features

This generator will create a modern and clean structure so you can start working on your application without worrying about the setup.

It uses a simple task management system via npm scripts.

Overview

  • ES2015 syntax support with a few experimental features (such as ES7 function bind)
  • Uses browserify with the babelify transformer to do the JavaScript transpiling
  • Support for the latest CSS syntax via cssnext
  • Support file watching thanks to watchy
  • Uses xo for dead simple JavaScript linting
  • Automatic browser reloading using live-server (serves public on port 8080)
  • Simple folder structure split in public (path to be served) and source (actual source files)

Tasks

  • build – Build JavaScript and CSS files (both run in parallel)
  • build:js – Build JavaScript files
  • build:css – Build CSS files
  • watch – Watch for JavaScript and CSS file changes (both run in parallel)
  • watch:js – Watch for JavaScript file changes
  • watch:css – Watch for CSS file changes
  • start – Startup static server
  • lint – Lint JavaScript files

Tools

Opt-in tools that you can add to your project.

React

Enable React support on the project. Changes transpiling and linting settings and scaffolds a components folder with a simple application component.

Redux

Enable Redux support on the project. Will listen for a store and then re-render the application component on changes.

React Router

Enable React Router support on the project. Will listen for the / route and then re-render the application component on route matching.

TODO

License

MIT © Rafael Rinaldi