This repository has been archived by the owner on Apr 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 441
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bundle postinstall script dependencies. #213 (also, switched to promp…
…t-lite as it has way less dependencies)
- Loading branch information
Showing
6 changed files
with
48 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.idea | ||
.DS_Store | ||
node_modules | ||
node_modules | ||
*.tgz | ||
scripts/postinstall.js |
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,4 +1,8 @@ | ||
platforms/android/libraryproject/ | ||
docs | ||
README.md | ||
CHANGELOG.md | ||
CHANGELOG.md | ||
*.tgz | ||
scripts/webpack.config.js | ||
scripts/installer.js | ||
scripts/winston-mock.js |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
var path = require("path"); | ||
var webpack = require("webpack"); | ||
|
||
module.exports = { | ||
target: "node", | ||
output: { | ||
//some debug info around module imports | ||
pathinfo: true | ||
}, | ||
resolve: { | ||
alias: { | ||
//winston is inherently unpackable. replace with our mock | ||
"winston": path.join(__dirname, "winston-mock.js") | ||
} | ||
}, | ||
externals: { | ||
//pkginfo is unpackable too, but we can replace it with a simple expression | ||
"pkginfo": "function(){}" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
//Export a Logger-like to avoid crashing winston clients | ||
module.exports.Logger = function Logger() {}; | ||
module.exports.Logger.prototype = { | ||
cli: function() {}, | ||
help: function() {}, | ||
input: function() {}, | ||
error: function() {}, | ||
}; | ||
|
||
module.exports.transports = { | ||
Console: function Console() {} | ||
}; |