Skip to content
This repository was archived by the owner on Jun 10, 2018. It is now read-only.
This repository was archived by the owner on Jun 10, 2018. It is now read-only.

Serve npm modules #16

@timoxley

Description

@timoxley

say I want to serve an npm module (eg underscore) via stitch, is this the best way?

var stitch    = require('stitch'),
    path     = require('path')

// grab the parent directory for underscore, there doesn't appear to be a way to compile just one file?
var package = stitch.createPackage({
  paths: [path.resolve(require.resolve('underscore'), '..')],
});
// + package.compile/createServer, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions