-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleanups and adaptation to plugin API
- adding deprecation warning for old API - making plugin API default in README and warning about deprecated old API - adapted example to use new API and linked dependencies so no npm install is needed to run it - renamed hack-prelude since it's no longer a hack - upgrading browserify - increasing peerdep browserify version range - adding browerify-tool keyword
- Loading branch information
Showing
9 changed files
with
58 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
var fs = require('fs') | ||
, proxyquire = require('proxyquireify') | ||
var fs = require('fs') | ||
, proxyquire = require('proxyquireify') | ||
, browserify = require('browserify') | ||
; | ||
|
||
proxyquire.browserify() | ||
browserify() | ||
.plugin(proxyquire.plugin) | ||
.require(require.resolve('./test'), { entry: true }) | ||
.bundle({ debug: true }) | ||
.pipe(require('mold-source-map').transformSourcesRelativeTo(__dirname)) | ||
.pipe(fs.createWriteStream(__dirname + '/bundle.js')); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
// This file allows using proxyquireify as a browserify plugin named | ||
// 'proxyquireify/plugin' | ||
module.exports = require('./lib/hack-prelude').plugin; | ||
module.exports = require('./lib/replace-prelude').plugin; |