koa-node-resolve

v1.0.0-pre.4
Middleware for Koa servers that resolves Node package specifiers in standard JS modules to relative paths for use on the web.

lint

tslint -p . --fix

test

npm run test:raw --silent | tap-diff

build

npm run lint && npm run format && npm run depcheck && npm run clean && npm run compile

clean

rimraf lib

format

find src -name "*.ts" | xargs clang-format --style=file -i

compile

tsc

depcheck

depcheck --ignore-dirs=lib --ignores="rimraf,source-map-support,@types/*"

test:raw

tape -r source-map-support/register 'lib/test/*.test.js' 'lib/test/**/*.test.js'

Metadata

Downloads

Maintainers