-
Notifications
You must be signed in to change notification settings - Fork 948
Modular Export Binary Size Analysis - WIP #3280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
168 commits
Select commit
Hold shift + click to select a range
227941c
Initial submit of auth-next framework (#2851)
sam-gc 372d7c0
Add mock fetch helper (#2878)
sam-gc b359033
Add core types & error map to auth-exp (#2890)
avolkovi e0bb970
Add signUp API method for auth-next (#2892)
avolkovi a852021
Add initial user object implementation (#2896)
sam-gc 0ae5fa5
Consolidate mock auth object, add user object (#2906)
sam-gc 19735c0
Add remaining API methods to auth-next (#2901)
avolkovi 6044bbc
Add support for API timeouts to auth-next (#2915)
avolkovi 22405fd
Add version helpers to auth-next (#2910)
avolkovi 36632e9
Add persistence layer: index db, in memory, and browser{local, sessio…
sam-gc e6bfb6a
Add fetchSignInMethodsForEmail to auth-next (#2924)
avolkovi 8a178d0
Add sendEmailVerification to auth-next (#2926)
avolkovi a3a7281
Add a persistence manager class (#2925)
sam-gc c5174ab
Added react native build target (#2947)
scottcrossen e43b2cf
Add password reset methods to auth-next (#2928)
avolkovi 7aead1c
use queryString helper in auth-next (#2936)
avolkovi 290d97d
Initial auth object implementation + initializeAuth() (#2932)
sam-gc 1c4734b
use app-exp in the build:deps script
Feiyang1 6515d58
Add conditional delays to auth-next (#2934)
avolkovi 9342be4
Add sendSignInWithEmail to auth-next (#2960)
avolkovi deab6e3
Add auth listener implementation, add user.reload() (#2961)
sam-gc e77959e
Standardize auth-next style (#2983)
avolkovi 30b7dab
Add refresh token endpoint + implementation to token manager (#2975)
sam-gc c3a82f6
Add react native persistence class (#2955)
scottcrossen 9b26963
Add getIdTokenResult implementation (#3014)
sam-gc 12e7465
Update internal types to work with external types (#3075)
sam-gc b278cea
Further refactoring of auth types. Add public exports to src/index.ts…
sam-gc 7b297c5
user.delete() implementation (#3072)
sam-gc e71513a
Use auth impl object instead of mock auth object (#3098)
sam-gc 06847d8
Add signInWithCredential to auth-next (#2963)
avolkovi cb58a66
Refactor so every unit test gets its own Auth object (#3129)
sam-gc ab5b7d3
Add updateProfile, updateEmail, updatePassword (#3122)
sam-gc c21e817
Add recaptcha implementation (#3166)
sam-gc 8452cf7
Add signInWithPhoneNumber implementation (#3191)
sam-gc 2958818
Add signInAnonymously to auth-next (#2986)
avolkovi 308e47d
Add signInWithCustomToken implementation (#3136)
sam-gc bbdde9b
add signInWithEmailAndPassword & signInWithEmailLink to auth-next (#3…
avolkovi b67ec5e
Add linkWithCredential(), linkWithPhoneNumber(), unlink() (#3213)
sam-gc 097549b
Add createUserWithEmailAndPassword to auth-next (#3212)
avolkovi d6ecc8c
Cleanup public types in auth-next (#3217)
avolkovi 964db88
Add a demo page to auth-exp using the new modular methods (#3197)
sam-gc 5cf64f7
Add custom email flow methods to auth-next (#3223)
avolkovi 60bdff0
Add reauthenticateWithCredential, reauthenticateWithPhoneNumber (#3225)
sam-gc a575f2d
Add link and reauth implementation to email credential (#3226)
sam-gc faf6583
set up project for size analysis
Feiyang1 11fe751
Size analysis (#3265)
XuechunHou 8e17b73
move everything to new repo
XuechunHou 4607bc2
allow json import
Feiyang1 d232313
Add AdditionalUserInfo class to auth-exp (#2979)
scottcrossen 9c9a3b1
added tests for size-analysis tool
XuechunHou e422ba4
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou 6c7f9dc
pulled from auth next, resolved conflict
XuechunHou 9483a3d
fixed output file path
XuechunHou 4999f13
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou 564a6cd
removed console logs
XuechunHou 65704f9
added command line options
XuechunHou 538057f
removed console log
XuechunHou b36f740
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou 1302b4e
added comments
XuechunHou 72624cb
removed comments
XuechunHou b1180c3
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou 0d8ca04
removed auth-exp module
XuechunHou e4c03c9
removed generated reports
XuechunHou e9f41d0
added command line flag for adhoc runs
XuechunHou 4799495
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou bf2b03e
Create README.MD
XuechunHou b792cc8
Update README.MD
XuechunHou 0344975
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou 345c369
reverted firestore experimental changes
XuechunHou 5ed163c
Merge branch 'size-analysis-repo' of https://github.com/firebase/fire…
XuechunHou a4f2c87
added readme
XuechunHou e6661aa
fixed dummy-exp test
XuechunHou ef84415
fixed ci test
XuechunHou ae08741
fixed test cases for size-analysis
XuechunHou 273f4f0
fixed ci test
XuechunHou d14b737
fixed test
XuechunHou 3a2c4a8
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou 06752e0
Delete README.MD
XuechunHou 751769c
addressed feedback
XuechunHou 71bcdc2
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou 537beea
Merge branch 'size-analysis-repo' of https://github.com/firebase/fire…
XuechunHou 552090a
Update README.md
XuechunHou 0a90582
Update README.md
XuechunHou bb58e09
trying to fix authomation pipeline for size-analysis
XuechunHou b6784cc
Merge branch 'size-analysis-repo' of https://github.com/firebase/fire…
XuechunHou 0eb6bee
pulled from master
XuechunHou 944a874
trying to fix ci tests
XuechunHou 43760a9
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou eef3d60
extended timeout for before hook
XuechunHou 0ebe304
increased timeout
XuechunHou d440ca4
increased timeout
XuechunHou a532de2
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou 22df43e
merged master
XuechunHou 2572f97
added handle for BindingPattern. Also compressed repeated code block
XuechunHou 139e00f
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou 76a40cc
removed console logs
XuechunHou e8ac71f
fixed bugs
XuechunHou 24c0cd9
added test cases
XuechunHou 6919bed
fixed errors in dummy-exp
XuechunHou e11a963
added more test cases
XuechunHou 97e0b04
fixed test cases
XuechunHou 8a754c9
commit before switching brand
XuechunHou a235919
Update README.md
XuechunHou 6c85e2b
modified command line flag help page
XuechunHou 8002afe
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou 21f0bf6
pulled from remote counterpart
XuechunHou c2dfb4e
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou 5c876e5
seperated external firebase module dependencies from local
XuechunHou fd939c8
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou a9fb743
restructure report format
XuechunHou d6237f8
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou 63b90b8
added command line flag for ci
XuechunHou 2475a9b
Update README.md
XuechunHou 7e3ac0a
reversed dummy package json
XuechunHou b1933a7
added handle for import then export, added bug fix for export without…
XuechunHou 1ae6f83
Merge branch 'size-analysis-repo' of https://github.com/firebase/fire…
XuechunHou f417158
revert unrealted files
XuechunHou 92546da
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou 3b931f8
removed dummy-exp.api.md file
XuechunHou f9888f6
removed dummy-exp module, addressed comments
XuechunHou 877f3d8
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou 9b6bb48
restored changelog-generator
XuechunHou eb90b42
removed generated reports, restored auth files
XuechunHou 1db8674
removed dummy-exp module
XuechunHou 79eb916
Update README.md
XuechunHou 44a3ff9
Update README.md
XuechunHou 3358775
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou 1df0da3
changed double quote to single quote
XuechunHou 82c3e06
Merge branch 'size-analysis-repo' of https://github.com/firebase/fire…
XuechunHou dc92c39
retry change double quote to single quote
XuechunHou 487e185
changed single quote all to double quote
XuechunHou bd25c94
changed double quote to single quote
XuechunHou 4cdadb7
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou 6eac6a6
addressed feedback
XuechunHou aa59f21
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou 54203be
added handle for declare then exports
XuechunHou 0eb6ff2
external dependencies import clause, retrieve original name if renamed
XuechunHou 96b9154
removed console log
XuechunHou 5659db0
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou 25782a5
deleted rollup file, created a folder for dts file
XuechunHou 3ed6871
merged test dts files
XuechunHou f257595
reverted whitespace changes
XuechunHou b5f9273
modified test dts file
XuechunHou 3c2da96
removed timeout
XuechunHou 2ab2ceb
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou de485d3
addressed PR comments
XuechunHou ed7a034
addressed PR comments, replaced custom deepCopy function with that fr…
XuechunHou 48178dd
reverted prettier changes
XuechunHou f0a75eb
reverted prettier changes
XuechunHou 584fea3
addressed PR comments
XuechunHou 79f9747
addressed PR comments
XuechunHou fb7a164
pulled from master
XuechunHou 52ee009
update package.json
Feiyang1 457106c
changed rollup plugin import location
XuechunHou cd23a30
Merge branch 'size-analysis-repo' of https://github.com/firebase/fire…
XuechunHou 32548ce
modified handleExportStatementsWithoutFromClause function to not retu…
XuechunHou 7105985
fixed rmDirSync issue
XuechunHou 9fed25f
refactor testing
Feiyang1 18c120d
pulled from master
XuechunHou 5334cf2
Merge branch 'size-analysis-repo' of https://github.com/firebase/fire…
XuechunHou 489e832
added tests on js bundle files
XuechunHou 9370e09
removed unnecessary files
XuechunHou 41ed6f2
Update test-changed workflow checkout step (#3580)
hsubox76 2c99c44
Merge branch 'master' of https://github.com/firebase/firebase-js-sdk …
XuechunHou b600cd5
set longer timeout for testing
Feiyang1 a0e69d8
updated comments and error message
XuechunHou f968e0b
minor updates
Feiyang1 6625069
Merge branch 'size-analysis-repo' of https://github.com/firebase/fire…
Feiyang1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,26 @@ | ||
/** | ||
* @license | ||
* Copyright 2020 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
module.exports = { | ||
extends: '../../config/.eslintrc.js', | ||
parserOptions: { | ||
project: 'tsconfig.json', | ||
// to make vscode-eslint work with monorepo | ||
// https://github.com/typescript-eslint/typescript-eslint/issues/251#issuecomment-463943250 | ||
tsconfigRootDir: __dirname | ||
} | ||
}; |
This file contains hidden or 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,28 @@ | ||
# Modular Export Binary Size Calculator | ||
|
||
## Command Line Option | ||
|
||
- `--version` Show version number [boolean] | ||
- `--inputModule, --im` The name of the module(s) to be analyzed. example: --inputModule "@firebase/functions-exp" "firebase/auth-exp" [array] | ||
- `--inputDtsFile, --if` Support for adhoc analysis. requires a path to dts file [string] | ||
- `--inputBundleFile, --ib` Support for adhoc analysis. requires a path to a bundle file [string] | ||
- `--output, -o` The location where report(s) will be generated, a directory path if module(s) are analyzed; a file path if ad hoc analysis is to be performed [string] | ||
- `--help ` Show help [boolean] | ||
|
||
|
||
|
||
## Commands To Run The Tool | ||
|
||
### Adhoc Support | ||
|
||
$firebase-js-sdk/repo-scripts/size-analysis `ts-node-script analysis.ts --if <path to dts file> --ib <path to bundle file> -o <path to output FILE>` | ||
|
||
### To Do Analysis On One to Many Firebase Modules | ||
|
||
$firebase-js-sdk/repo-scripts/size-analysis `ts-node-script analysis.ts --im "@firebase/module1-exp" "@firebase/module2-exp" -o <path to output DIRECTORY>` | ||
|
||
### To Do Analysis On All Firebase-Exp Modules | ||
|
||
$firebase-js-sdk/repo-scripts/size-analysis `ts-node-script analysis.ts -o <path to output DIRECTORY>` | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add a section on how to use it programmatically ?