Skip to content

Instantly share code, notes, and snippets.

@aereal
Created May 22, 2015 03:55
Show Gist options
  • Save aereal/9672cfa85f839016366e to your computer and use it in GitHub Desktop.
Save aereal/9672cfa85f839016366e to your computer and use it in GitHub Desktop.
Manage Perl modules with NPM
use strict;
use warnings;
use Test::More;
use lib glob 'node_modules/*';
require_ok 'Dep1';
require_ok 'Dep2';
done_testing;
{
"name": "root-repo",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"dep-1": "https://gist.github.com/23d3dd8c25c6a45e96dc.git#master",
"dep-2": "https://gist.github.com/64080f6bcfbef7bcc11d.git#master"
}
}
@aereal
Copy link
Author

aereal commented May 22, 2015

git clone https://gist.github.com/9672cfa85f839016366e.git root-repo
cd root-repo/
npm install
prove 00_compile.t

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment