Date: Tue, 18 Aug 2015 05:21:29 +0000 (UTC) From: Kurt Jaeger <pi@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r394557 - in head/www: . offline-npm Message-ID: <201508180521.t7I5LTLZ036004@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pi Date: Tue Aug 18 05:21:28 2015 New Revision: 394557 URL: https://svnweb.freebsd.org/changeset/ports/394557 Log: New Port: www/offline-npm Hassle-free npm pack including all dependencies for offline installation with npm install Add offline-npm to your project to serve a npm compatible tgz file which contains all dependencies for offline installation with npm install. Additionally you can use offline-npm -n to install packages from your local npm cache directory (could be useful e.g. on travelling). WWW: https://github.com/commenthol/offline-npm PR: 202398 Submitted by: Carlos J Puga Medina <cpm@fbsd.es> Added: head/www/offline-npm/ head/www/offline-npm/Makefile (contents, props changed) head/www/offline-npm/distinfo (contents, props changed) head/www/offline-npm/pkg-descr (contents, props changed) head/www/offline-npm/pkg-plist (contents, props changed) Modified: head/www/Makefile Modified: head/www/Makefile ============================================================================== --- head/www/Makefile Tue Aug 18 04:43:41 2015 (r394556) +++ head/www/Makefile Tue Aug 18 05:21:28 2015 (r394557) @@ -571,6 +571,7 @@ SUBDIR += nspluginwrapper SUBDIR += ocaml-net SUBDIR += ocsigen + SUBDIR += offline-npm SUBDIR += ojs2 SUBDIR += ompload SUBDIR += opencart Added: head/www/offline-npm/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/offline-npm/Makefile Tue Aug 18 05:21:28 2015 (r394557) @@ -0,0 +1,30 @@ +# Created by: Carlos J Puga Medina <cpm@fbsd.es> +# $FreeBSD$ + +PORTNAME= offline-npm +PORTVERSION= 0.2.0 +DISTVERSIONPREFIX= v +CATEGORIES= www + +MAINTAINER= cpm@fbsd.es +COMMENT= Offline installation with npm install + +LICENSE= MIT + +BUILD_DEPENDS= npm>0:${PORTSDIR}/www/npm +RUN_DEPENDS= npm>0:${PORTSDIR}/www/npm + +USE_GITHUB= yes +GH_ACCOUNT= commenthol +GH_PROJECT= offline-npm + +NO_BUILD= yes + +do-install: + (cd ${STAGEDIR}${PREFIX}/lib && ${SETENV} \ + HOME=${WRKDIR} npm install ${WRKSRC}) + + # this is a dirty hack + ${LN} -s ${PREFIX}/lib/node_modules/.bin/offline-npm ${STAGEDIR}${PREFIX}/bin/offline-npm + +.include <bsd.port.mk> Added: head/www/offline-npm/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/offline-npm/distinfo Tue Aug 18 05:21:28 2015 (r394557) @@ -0,0 +1,2 @@ +SHA256 (commenthol-offline-npm-v0.2.0_GH0.tar.gz) = 250f1d3533f1a359292f69375db6e5ec21da325e0b5eeb68bb0413fc4cb25aa1 +SIZE (commenthol-offline-npm-v0.2.0_GH0.tar.gz) = 14182 Added: head/www/offline-npm/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/offline-npm/pkg-descr Tue Aug 18 05:21:28 2015 (r394557) @@ -0,0 +1,10 @@ +Hassle-free npm pack including all dependencies for offline installation +with npm install + +Add offline-npm to your project to serve a npm compatible tgz file +which contains all dependencies for offline installation with npm install. + +Additionally you can use offline-npm -n to install packages from your +local npm cache directory (could be useful e.g. on travelling). + +WWW: https://github.com/commenthol/offline-npm Added: head/www/offline-npm/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/offline-npm/pkg-plist Tue Aug 18 05:21:28 2015 (r394557) @@ -0,0 +1,12 @@ +bin/offline-npm +lib/node_modules/.bin/offline-npm +lib/node_modules/offline-npm/LICENSE +lib/node_modules/offline-npm/README.md +lib/node_modules/offline-npm/TUTORIAL.md +lib/node_modules/offline-npm/offline-npm.js +lib/node_modules/offline-npm/package.json +lib/node_modules/offline-npm/test/cli.mocha.js +lib/node_modules/offline-npm/test/mocha.opts +lib/node_modules/offline-npm/test/proxy.js +lib/node_modules/offline-npm/test/semver.mocha.js +lib/node_modules/offline-npm/test/test.sh
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201508180521.t7I5LTLZ036004>