This repository was archived by the owner on Apr 4, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +48
-2
lines changed Expand file tree Collapse file tree 6 files changed +48
-2
lines changed Original file line number Diff line number Diff line change 11.idea
22.DS_Store
3- node_modules
3+ node_modules
4+ * .tgz
5+ scripts /postinstall.js
Original file line number Diff line number Diff line change 11platforms /android /libraryproject /
22docs
33README.md
4- CHANGELOG.md
4+ CHANGELOG.md
5+ * .tgz
6+ scripts /webpack.config.js
7+ scripts /installer.js
8+ scripts /winston-mock.js
Original file line number Diff line number Diff line change 1111 }
1212 },
1313 "scripts" : {
14+ "bundle-installer" : " webpack --config scripts/webpack.config.js scripts/installer.js scripts/postinstall.js" ,
15+ "prepublish" : " npm run bundle-installer" ,
16+ "postinstall" : " node scripts/postinstall.js"
1417 "postinstall" : " node scripts/postinstall.js" ,
1518 "config" : " node scripts/postinstall.js config"
1619 },
4245 "url" : " https://github.com/eddyverbruggen/nativescript-plugin-firebase/issues"
4346 },
4447 "homepage" : " https://github.com/eddyverbruggen/nativescript-plugin-firebase" ,
48+ "devDependencies" : {
49+ "prompt" : " ^1.0.0" ,
50+ "webpack" : " ~2.1.0-beta.25"
4551 "dependencies" : {
4652 "app-root-path" : " ^2.0.1" ,
4753 "prompt-lite" : " 0.1.1"
Original file line number Diff line number Diff line change 11var fs = require ( 'fs' ) ;
22var path = require ( 'path' ) ;
33var prompt = require ( 'prompt-lite' ) ;
4+ var path = require ( 'path' ) ;
5+ var prompt = require ( 'prompt' ) ;
46
57// Default settings for using ios and android with Firebase
68var usingiOS = false , usingAndroid = false ;
Original file line number Diff line number Diff line change 1+ var path = require ( "path" ) ;
2+ var webpack = require ( "webpack" ) ;
3+
4+ module . exports = {
5+ target : "node" ,
6+ output : {
7+ //some debug info around module imports
8+ pathinfo : true
9+ } ,
10+ resolve : {
11+ alias : {
12+ //winston is inherently unpackable. replace with our mock
13+ "winston" : path . join ( __dirname , "winston-mock.js" )
14+ }
15+ } ,
16+ externals : {
17+ //pkginfo is unpackable too, but we can replace it with a simple expression
18+ "pkginfo" : "function(){}"
19+ }
20+ }
Original file line number Diff line number Diff line change 1+ //Export a Logger-like to avoid crashing winston clients
2+ module . exports . Logger = function Logger ( ) { } ;
3+ module . exports . Logger . prototype = {
4+ cli : function ( ) { } ,
5+ help : function ( ) { } ,
6+ input : function ( ) { } ,
7+ error : function ( ) { } ,
8+ } ;
9+
10+ module . exports . transports = {
11+ Console : function Console ( ) { }
12+ } ;
You can’t perform that action at this time.
0 commit comments