Skip to content

Commit

Permalink
Refactor to integrate with Firebase (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
koistya authored Dec 16, 2017
1 parent e6671bb commit b3dc392
Show file tree
Hide file tree
Showing 70 changed files with 942 additions and 9,289 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["react-app"]
}
28 changes: 17 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,25 @@ version: 2
jobs:
build:
docker:
- image: kriasoft/node-ci:8.2.1-alpine
working_directory: ~/repo
- image: circleci/node:8.9.3
steps:
- checkout
- setup_remote_docker
# Download and cache dependencies
- restore_cache:
key: yarn-cache-{{ checksum "yarn.lock" }}
- run: yarn install --no-progress
key: yarn-v1-{{ checksum "yarn.lock" }}
key: yarn-v1-
- run:
name: Install NPM modules
command: yarn
- save_cache:
key: yarn-cache-{{ checksum "yarn.lock" }}
key: yarn-v1-{{ checksum "yarn.lock" }}
paths:
- node_modules
# Run unit tests
- run: yarn lint
- run: yarn test
- ~/.cache/yarn/v1
- run:
name: Test
command: |
yarn lint
yarn test --forceExit
- run:
name: Build
command: yarn build

17 changes: 17 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"extends": ["eslint-config-react-app", "prettier"],
"plugins": ["flowtype", "prettier"],
"rules": {
"prettier/prettier": [
"error",
{
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "all"
}
]
}
}
20 changes: 0 additions & 20 deletions .eslintrc.js

This file was deleted.

5 changes: 5 additions & 0 deletions .firebaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"projects": {
"default": "react-firebase-graphql"
}
}
15 changes: 9 additions & 6 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
[ignore]
.*/build
.*/docs
.*/node_modules
.*/public
.*/build/.*
.*/public/.*
.*/setup.js

[include]

[libs]

[lints]

[options]
module.system.node.resolve_dirname=node_modules
module.system.node.resolve_dirname=src

[strict]
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

# Dependencies
/node_modules
/functions/node_modules

# Testing
/coverage
Expand All @@ -21,6 +22,8 @@ __generated__
npm-debug.log*
yarn-debug.log*
yarn-error.log*
firebase-debug.log*
firebase-error.log*

# VS Code
.vscode/*
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
package.json
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "all"
}
6 changes: 4 additions & 2 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* React Static Boilerplate
* Copyright (c) 2015-present Kriasoft. All rights reserved.
* React Starter Kit for Firebase and GraphQL
* https://github.com/kriasoft/react-firebase-starter
* Copyright (c) 2015-present Kriasoft | MIT License
*/

const primerConfig = require('stylelint-config-primer');
Expand Down Expand Up @@ -28,6 +29,7 @@ module.exports = {
'at-rule-empty-line-before': null,
'block-opening-brace-space-after': null,
'block-closing-brace-space-before': null,
'declaration-colon-newline-after': null,

// https://github.com/hudochenkov/stylelint-order/blob/master/rules/order/README.md
'order/order': [
Expand Down
21 changes: 10 additions & 11 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Contributing to React Static Boilerplate
# Contributing to React Starter Kit for Firebase and GraphQL

**React Static Boilerplate** and want to get involved? Thanks! There are plenty of ways you can
**React Firebase Starter** and want to get involved? Thanks! There are plenty of ways you can
help!

Please take a moment to review this document in order to make the contribution process easy and
Expand All @@ -10,10 +10,9 @@ Following these guidelines helps to communicate that you respect the time of the
and developing this open source project. In return, they should reciprocate that respect in
addressing your issue or assessing patches and features.


## Using the issue tracker

The [issue tracker](https://github.com/kriasoft/react-static-boilerplate/issues) is the preferred
The [issue tracker](https://github.com/kriasoft/react-firebase-starter/issues) is the preferred
channel for [bug reports](#bugs), [features requests](#features) and [submitting pull
requests](#pull-requests), but please respect the following restrictions:

Expand All @@ -29,8 +28,8 @@ requests](#pull-requests), but please respect the following restrictions:
[`Babel`](https://github.com/babel/babel) or
[`Webpack`](https://github.com/webpack/webpack) (open them in their respective repositories).


<a name="bugs"></a>

## Bug reports

A bug is a _demonstrable problem_ that is caused by the code in the repository. Good bug reports are
Expand Down Expand Up @@ -68,16 +67,16 @@ Example:
> include the lines of code that you have identified as causing the bug, and potential solutions
> (and your opinions on their merits).

<a name="features"></a>

## Feature requests

Feature requests are welcome. But take a moment to find out whether your idea fits with the scope
and aims of the project. It's up to *you* to make a strong case to convince the project's developers
and aims of the project. It's up to _you_ to make a strong case to convince the project's developers
of the merits of this feature. Please provide as much detail and context as possible.


<a name="pull-requests"></a>

## Pull requests

Good pull requests - patches, improvements, new features - are a fantastic help. They should remain
Expand All @@ -97,11 +96,11 @@ Adhering to the following process is the best way to get your work included in t

```bash
# Clone your fork of the repo into the current directory
git clone https://github.com/<your-username>/react-static-boilerplate.git
git clone https://github.com/<your-username>/react-firebase-starter.git
# Navigate to the newly cloned directory
cd react-static-boilerplate
cd react-firebase-starter
# Assign the original repo to a remote called "upstream"
git remote add upstream https://github.com/kriasoft/react-static-boilerplate.git
git remote add upstream https://github.com/kriasoft/react-firebase-starter.git
```

2. If you cloned a while ago, get the latest changes from upstream:
Expand Down
Loading

0 comments on commit b3dc392

Please sign in to comment.