Page MenuHomeFreeBSD

New port, devel/browserify: Browser-side require() the node way
AbandonedPublic

Authored by jrm on Apr 15 2017, 12:28 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Mar 27, 11:34 PM
Unknown Object (File)
Mar 14 2024, 7:41 PM
Unknown Object (File)
Mar 5 2024, 4:16 AM
Unknown Object (File)
Jan 10 2024, 9:38 AM
Unknown Object (File)
Dec 25 2023, 12:39 PM
Unknown Object (File)
Dec 19 2023, 11:03 PM
Unknown Object (File)
Dec 12 2023, 5:39 PM
Unknown Object (File)
Nov 18 2023, 10:33 AM
Subscribers

Details

Reviewers
swills
AMDmi3
Summary

This is a distribution of the 100+ npm packages for browserify and
browserify-incremental.

With browserify, you can write code for the browser, that uses require in the
same way that you would use it in Node. It accomplishes this by recursively
bundling up all the required modules into a single file, which can then be
referenced with a single script tag in your HTML.

Browserify-incremental can detect changes which occured in between runs, which
means it can be used as part of build systems which are invoked on demand,
without requiring a long lived process. Whereas watchify is slow for the first
run upon each startup, browserify-incremental is fast every time after the very
first.

WWW: http://browserify.org/

Adding devel/browserify, because it is required by the upcoming
www/mastodon port.

Test Plan

portlint -C: OK
testport: OK (poudriere: 10.3-RELEASE-p10, i386)
testport: OK (poudriere: 10.3-RELEASE-p10, amd64)
testport: OK (poudriere: 11.0-RELEASE-p1, i386)
testport: OK (poudriere: 11.0-RELEASE-p1, amd64)

Diff Detail

Repository
rP FreeBSD ports repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 8742
Build 9087: arc lint + arc unit

Event Timeline

  • Include browserify-incremental in the distribution
  • Fix paths in package.json files
  • Add primary site for MASTER_SITES because it takes a long time for changes under LOCAL/jrm to propagate
devel/browserify/Makefile
13

LICENSE_FILE does not do anything when there is more than one license. You have to use LICENSE_FILE_${lic}

net-im/mastodon is now using webpack and I think it makes more sense to handle the js dependencies outside of the ports tree.