Index: devel/rubygem-browserify-rails/Makefile =================================================================== --- /dev/null +++ devel/rubygem-browserify-rails/Makefile @@ -0,0 +1,23 @@ +# $FreeBSD$ + +PORTNAME= browserify-rails +PORTVERSION= 4.1.0 +CATEGORIES= devel rubygems +MASTER_SITES= RG + +MAINTAINER= jrm@FreeBSD.org +COMMENT= Adds CommonJS module support to Sprockets via Browserify + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +RUN_DEPENDS= browserify>0:devel/browserify \ + rubygem-railties4>=4.0.0:www/rubygem-railties4 \ + rubygem-sprockets3>=3.6.0:devel/rubygem-sprockets3 + +NO_ARCH= yes + +USE_RUBY= yes +USES= gem + +.include Index: devel/rubygem-browserify-rails/distinfo =================================================================== --- /dev/null +++ devel/rubygem-browserify-rails/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1491410732 +SHA256 (rubygem/browserify-rails-4.1.0.gem) = e58c18b9b1ae05f4c83055bb16d489abb509fb1d7e5abd00f4d9d7a1a984bf91 +SIZE (rubygem/browserify-rails-4.1.0.gem) = 30720 Index: devel/rubygem-browserify-rails/pkg-descr =================================================================== --- /dev/null +++ devel/rubygem-browserify-rails/pkg-descr @@ -0,0 +1,17 @@ +This library adds CommonJS module support to Sprockets via Browserify. It lets +you mix and match //= require directives and require() calls for including plain +javascript files as well as modules. + +Provided capabilities: + + - Manage JS modules with npm + - Serve assets with Sprockets + - Require modules with require() (without separate //= require directives) + - Only build required modules + - Require npm modules in your Rails assets + - Require modules relative to asset paths (i.e., app/assets/javascript) with + non-relative syntax + - Configure browserify options for each JavaScript file so you can mark modules + with --require, --external, etc. + +WWW: https://github.com/browserify-rails/browserify-rails/