Skip to content

Commit 93aef0a

Browse files
committed
Refactor monorepo to use yarn workspaces and lerna
WIP: testing Refactor folder structure to use lerna WIP: more testing feat(util): add deferred class Publish - @firebase/[email protected] - @firebase/[email protected] WIP: asdoifj WIP: build artifact WIP: asdf Cleaning up from .gitignore Add prepublish script Isolate base configs Making top level scripts parallel Adding storage Add messaging Adding database code TODO: Fix all of the broken issues and import the rest of the utils Adding type info add database Adding firebase package Generating ES Module builds Attaching firebase.js to the global scope Adding lint-staged to the build Removing commitizen dependency Updating metafiles Working on devx Add react-native package Move packages/firebase -> packages/core Fix issues with package.json Bump core version testing a thing Add more entries to the .npmignore
1 parent b8c9782 commit 93aef0a

File tree

283 files changed

+1344
-15963
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

283 files changed

+1344
-15963
lines changed

.cz-config.js

Lines changed: 0 additions & 24 deletions
This file was deleted.

.editorconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Shared editor configurations that track the way prettier formats source.
2+
#
3+
# To use this in vscode:
4+
#
5+
# ext install EditorConfig
6+
7+
root = true
8+
9+
# Source files look unixy by default
10+
[*]
11+
end_of_line = lf
12+
insert_final_newline = true
13+
14+
# Javascript and Typescript look like Google-style
15+
[*.{js,json,ts}]
16+
charset = utf-8
17+
indent_style = space
18+
indent_size = 2
19+
20+
# Not currently supported by vscode, but is supported others, e.g. vim.
21+
max_line_length = 80

.github/CODEOWNERS

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,14 @@
44
# These owners will be the default owners for everything in the repo.
55
* @jshcrowthe
66

7-
# Order is important. The last matching pattern has the most precedence.
8-
# So if a pull request only touches javascript files, only these owners
9-
# will be requested to review.
10-
*.js @jshcrowthe
11-
12-
# You can also use email addresses if you prefer.
13-
147
# Database Code
15-
src/database @mikelehen @schmidt-sebastian
16-
tests/database @mikelehen @schmidt-sebastian
8+
packages/database @mikelehen @schmidt-sebastian
179

1810
# Storage Code
19-
src/storage @sphippen
20-
tests/storage @sphippen
11+
packages/storage @sphippen
2112

2213
# Messaging Code
23-
src/messaging @gauntface
24-
tests/messaging @gauntface
14+
packages/messaging @gauntface
2515

2616
# Auth Code
27-
src/auth.build.js @bojeil-google
17+
packages/auth @bojeil-google

.gitignore

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1+
# Build/Dependencies
2+
node_modules
3+
dist
4+
.awcache
5+
/config/project.json
6+
7+
# Misc
8+
*.log
9+
10+
# OS Specific Files
111
.DS_Store
2-
node_modules/
3-
/dist
4-
npm-debug.log
5-
/coverage
6-
/.nyc_output
7-
/tests/config
8-
temp/
9-
/.vscode
10-
/.ts-node
11-
/.idea
12-
/.awcache
12+
13+
# Editor Configs
14+
.idea
15+
.vscode

.lintstagedrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"*.{js,ts}": [
3+
"prettier --write --single-quote",
4+
"git add"
5+
]
6+
}

config/karma.base.js

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
const karma = require('karma');
2+
const path = require('path');
3+
const webpackTestConfig = require('./webpack.test');
4+
5+
module.exports = {
6+
// disable watcher
7+
autoWatch: false,
8+
9+
// preprocess matching files before serving them to the browser
10+
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
11+
preprocessors: {
12+
'test/**/*.ts': ['webpack', 'sourcemap']
13+
},
14+
15+
mime: {
16+
'text/x-typescript': ['ts', 'tsx']
17+
},
18+
19+
// test results reporter to use
20+
// possible values: 'dots', 'progress'
21+
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
22+
reporters: ['spec'],
23+
24+
// web server port
25+
port: 8080,
26+
27+
// enable / disable colors in the output (reporters and logs)
28+
colors: true,
29+
30+
// level of logging
31+
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
32+
logLevel: karma.constants.LOG_INFO,
33+
34+
// enable / disable watching file and executing tests whenever any file changes
35+
autoWatch: false,
36+
37+
// start these browsers
38+
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
39+
browsers: ['ChromeHeadless'],
40+
41+
webpack: webpackTestConfig,
42+
43+
webpackMiddleware: {
44+
quiet: true,
45+
stats: {
46+
colors: true
47+
}
48+
},
49+
50+
singleRun: false
51+
};
Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"compileOnSave": false,
23
"compilerOptions": {
34
"declaration": true,
45
"lib": [
@@ -7,18 +8,13 @@
78
"es2015.promise",
89
"dom"
910
],
10-
"module": "es2015",
11+
"module": "commonjs",
1112
"moduleResolution": "node",
1213
"noImplicitAny": false,
13-
"outDir": "dist/es2015",
14-
"rootDir": "src",
1514
"sourceMap": true,
1615
"target": "es5",
1716
"typeRoots": [
18-
"node_modules/@types"
17+
"../node_modules/@types"
1918
]
20-
},
21-
"include": [
22-
"src/**/*.ts"
23-
]
19+
}
2420
}

config/webpack.test.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
const path = require('path');
2+
const webpack = require('webpack');
3+
4+
module.exports = {
5+
devtool: 'eval-source-map',
6+
module: {
7+
rules: [
8+
{
9+
test: /\.tsx?$/,
10+
exclude: /node_modules/,
11+
use: 'ts-loader'
12+
},
13+
{
14+
test: /\.js$/,
15+
use: ['source-map-loader'],
16+
enforce: 'pre'
17+
}
18+
]
19+
},
20+
resolve: {
21+
modules: ['node_modules', path.resolve(__dirname, '../../node_modules')],
22+
extensions: ['.js', '.ts']
23+
}
24+
};

0 commit comments

Comments
 (0)