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

browserify-gulp-starter

v0.0.3

Published

A starter project that uses both browserify and gulp in its build toolchain. Includes demo apps for AngularJs and Famo.us

Downloads

11

Readme

browserify-gulp-starter

Starter project that builds web apps using browserify and gulp

Features

There are plenty of write ups and start project repositories that combine browserify with gulp... So why another one?

  • Use browserify without using gulp-browserify
    • Because the latter has been "blacklisted"
  • Has a dist build step
    • Concatenation and minification
  • Able to build AngularJs apps
    • Extra steps required to build an AngularJs app due to the dependency injection system

The others usually just satisfy two of these requirements, so there is room from improvement yet!

How to start

Bootstrap your framework

Firstly clone this repository, and reset its git history.

git clone [email protected]:bguiz/browserify-gulp-starter.git
mv browserify-gulp-starter my-app
cd my-app
rm -rf .git
git init
# edit package.json and bower.json to use your project details

Next, decide which framework you are using, and use that framework's demo app

For AngularJs:

rm src #don't worry, it is a symlink!
ln -s src-angularjs src
bower install --save angular angular-route

For Famo.us:

rm src
ln -s src-famous src
npm install --save famous-polyfill famous

For any other web application, you will need to create the initial project yourself. Use the AngularJs one as a reference for when you need to include dependencies using bower. Use the Famo.us one as a reference for when you need to include dependencies using npm.

rm src
mkdir -p src-otherframework/app
ln -s src-otherframework
touch src-otherframework/app/index.html
touch src-otherframework/app/app.js
touch src-otherframework/app/app.scss
# npm install --save ...
# bower install --save ...

If you do do this, and think that others might benefit from it, why not create a pull request and submit your src-otherframework?

Running build tasks

This project is built using gulp, and the commands that you will run most often should be:

# assembles project for development
gulp build

# does build task, and then optimises for distribution (concatenation, minification)
gulp dist

# does build task, and then listens for changes on project files, doing selective rebuilds
gulp serve

# deletes files created by build or dist tasks
gulp clean

There are many others - look through gulpfiles/tasks/*.js to find them all.

Timeline

Additional features in the works:

  • [x] Able to include dependencies as either globals (vendor.js)
  • [ ] Add a task for test runners
  • [ ] Cache-buster file names in dist builds
  • [ ] Image sprites
  • [x] More demo projects
    • [x] AngularJs
    • [x] famo.us

Licence

GPLv3