Yaay the projector works

You may need to zoom out a little if the text is too big

NOT A BROWSERIFY TALK

NPM Everywhere


@mikemaccana

Built web stuff for Google, Microsoft,
and a whole bunch of startups.


EV SSL

Checks the identity behind the certificate

Takes "7-10 days"

CertSimple do this in an average of 5 hours.

Connects to:

How CertSimple is built

Why we chose npm

How you can use npm

All the things you'll wish you knew earlier

WHY NPM

npm is where the packages are

JSPM: 451 modules

Every package
 we needed was officially maintained on npm

frontend attitude to npm

USE MAINTAINED OPEN SOURCE PROJECTS

NOT CODE COPIED FROM STACKOVERFLOW

Things we didn't know we needed

Other module formats?

MODULES EVERYWHERE

Our node backend is also pure modules

Why just modules?

Bundling npm modules

Your code + dependencies

GULP AND BROWSERIFY

Basic browserify

js/src/index.js

bundle

js/dist/index.js

bundle contains all the dependencies

frontend module - package.json

frontend module - index.js

GULP AND BROWSERIFY

THE REST

What about HTML?

brfs

Include non-JavaScript files

brfs

STYLING

Styling

Use 'sass-npm' to import SASS from npm files.

Style things relative to component

sass-npm

COMPONENTS

A module per component

KEEPING BUNDLES SMALL

Not delivering a 3MB JS bundle

discify

KEEPING YOUR CODE RELEVANT

Sublime .project prioritises private modules

sublime .project file

DEPLOYING

package.json isn't enough

npm shrinkwrap

Provides consistent deploys

Specifies the full tree, all the way down

Built into npm (use npm v3)

WE GET

This is what we use in production at CertSimple

Follow me.

I will tweet storm links to everything now.

@mikemaccana

Launching something?

$50 off CertSimple

Stickers!

Thanks

@mikemaccana

certsimple.com

Links

Module counts
Browserify + gulp
Discify
BRFSractivesass-npmSublime prioritise private modules