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 1
1
.idea
2
2
.DS_Store
3
- node_modules
3
+ node_modules
4
+ * .tgz
5
+ scripts /postinstall.js
Original file line number Diff line number Diff line change 1
1
platforms /android /libraryproject /
2
2
docs
3
3
README.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 11
11
}
12
12
},
13
13
"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"
14
17
"postinstall" : " node scripts/postinstall.js" ,
15
18
"config" : " node scripts/postinstall.js config"
16
19
},
42
45
"url" : " https://github.com/eddyverbruggen/nativescript-plugin-firebase/issues"
43
46
},
44
47
"homepage" : " https://github.com/eddyverbruggen/nativescript-plugin-firebase" ,
48
+ "devDependencies" : {
49
+ "prompt" : " ^1.0.0" ,
50
+ "webpack" : " ~2.1.0-beta.25"
45
51
"dependencies" : {
46
52
"app-root-path" : " ^2.0.1" ,
47
53
"prompt-lite" : " 0.1.1"
Original file line number Diff line number Diff line change 1
1
var fs = require ( 'fs' ) ;
2
2
var path = require ( 'path' ) ;
3
3
var prompt = require ( 'prompt-lite' ) ;
4
+ var path = require ( 'path' ) ;
5
+ var prompt = require ( 'prompt' ) ;
4
6
5
7
// Default settings for using ios and android with Firebase
6
8
var 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