Skip to content

Commit

Permalink
Refactor monorepo to use yarn workspaces and lerna
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jshcrowthe committed Sep 22, 2017
1 parent b8c9782 commit 93aef0a
Show file tree
Hide file tree
Showing 283 changed files with 1,344 additions and 15,963 deletions.
24 changes: 0 additions & 24 deletions .cz-config.js

This file was deleted.

21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Shared editor configurations that track the way prettier formats source.
#
# To use this in vscode:
#
# ext install EditorConfig

root = true

# Source files look unixy by default
[*]
end_of_line = lf
insert_final_newline = true

# Javascript and Typescript look like Google-style
[*.{js,json,ts}]
charset = utf-8
indent_style = space
indent_size = 2

# Not currently supported by vscode, but is supported others, e.g. vim.
max_line_length = 80

This comment has been minimized.

Copy link
@schmidt-sebastian

schmidt-sebastian Oct 7, 2017

Contributor

Nit: A lot of these files could use newlines at the end.

18 changes: 4 additions & 14 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,14 @@
# These owners will be the default owners for everything in the repo.
* @jshcrowthe

# Order is important. The last matching pattern has the most precedence.
# So if a pull request only touches javascript files, only these owners
# will be requested to review.
*.js @jshcrowthe

# You can also use email addresses if you prefer.

# Database Code
src/database @mikelehen @schmidt-sebastian
tests/database @mikelehen @schmidt-sebastian
packages/database @mikelehen @schmidt-sebastian

# Storage Code
src/storage @sphippen
tests/storage @sphippen
packages/storage @sphippen

# Messaging Code
src/messaging @gauntface
tests/messaging @gauntface
packages/messaging @gauntface

# Auth Code
src/auth.build.js @bojeil-google
packages/auth @bojeil-google
25 changes: 14 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
# Build/Dependencies
node_modules
dist
.awcache
/config/project.json

# Misc
*.log

# OS Specific Files
.DS_Store
node_modules/
/dist
npm-debug.log
/coverage
/.nyc_output
/tests/config
temp/
/.vscode
/.ts-node
/.idea
/.awcache

# Editor Configs
.idea
.vscode
6 changes: 6 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"*.{js,ts}": [
"prettier --write --single-quote",
"git add"
]
}
51 changes: 51 additions & 0 deletions config/karma.base.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
const karma = require('karma');
const path = require('path');
const webpackTestConfig = require('./webpack.test');

module.exports = {
// disable watcher
autoWatch: false,

// preprocess matching files before serving them to the browser
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: {
'test/**/*.ts': ['webpack', 'sourcemap']
},

mime: {
'text/x-typescript': ['ts', 'tsx']
},

// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['spec'],

// web server port
port: 8080,

// enable / disable colors in the output (reporters and logs)
colors: true,

// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: karma.constants.LOG_INFO,

// enable / disable watching file and executing tests whenever any file changes
autoWatch: false,

// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: ['ChromeHeadless'],

webpack: webpackTestConfig,

webpackMiddleware: {
quiet: true,
stats: {
colors: true
}
},

singleRun: false
};
12 changes: 4 additions & 8 deletions tsconfig.json → config/tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"compileOnSave": false,
"compilerOptions": {
"declaration": true,
"lib": [
Expand All @@ -7,18 +8,13 @@
"es2015.promise",
"dom"
],
"module": "es2015",
"module": "commonjs",
"moduleResolution": "node",
"noImplicitAny": false,
"outDir": "dist/es2015",
"rootDir": "src",
"sourceMap": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
"../node_modules/@types"
]
},
"include": [
"src/**/*.ts"
]
}
}
24 changes: 24 additions & 0 deletions config/webpack.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
const path = require('path');
const webpack = require('webpack');

module.exports = {
devtool: 'eval-source-map',
module: {
rules: [
{
test: /\.tsx?$/,
exclude: /node_modules/,
use: 'ts-loader'
},
{
test: /\.js$/,
use: ['source-map-loader'],
enforce: 'pre'
}
]
},
resolve: {
modules: ['node_modules', path.resolve(__dirname, '../../node_modules')],
extensions: ['.js', '.ts']
}
};
Loading

0 comments on commit 93aef0a

Please sign in to comment.