Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7167866
commit 235c51c
Showing
211 changed files
with
17,589 additions
and
1,099 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains 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,6 @@ | ||
coverage/** | ||
**/node_modules/** | ||
dist/** | ||
src/index.html | ||
blueprints/** | ||
src/config.js |
This file contains 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,35 @@ | ||
root: true | ||
|
||
parser: babel-eslint | ||
|
||
extends: [standard, standard-react, prettier, prettier/react] | ||
plugins: [babel, react, prettier] | ||
|
||
env: | ||
browser: true | ||
es6: true | ||
node: true | ||
|
||
ecmaFeatures: | ||
jsx: true | ||
modules: true | ||
|
||
globals: | ||
__DEV__: false | ||
__COVERAGE__: false | ||
__TEST__: false | ||
|
||
rules: | ||
semi: [2, 'never'] | ||
no-console: 'error' | ||
jsx-quotes: ['error', 'prefer-double'] | ||
prettier/prettier: ['error', { | ||
singleQuote: true, | ||
trailingComma: 'es6', | ||
semi: false, | ||
bracketSpacing: true, | ||
jsxBracketSameLine: true, | ||
printWidth: 80, | ||
tabWidth: 2, | ||
useTabs: false | ||
}] |
This file contains 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,42 @@ | ||
{ | ||
"projects": { | ||
"master": "fireadmin-33d82", | ||
"prod": "fireadmin-33d82" | ||
}, | ||
"ci": { | ||
"createConfig": { | ||
"master": { | ||
"version": "${npm_package_version}", | ||
"env": "development", | ||
"firebase": { | ||
"apiKey": "AIzaSyCz8fdvlyeVpwz22bjuw-MEI3wckXhSx9s", | ||
"authDomain": "fireadmin-33d82.firebaseapp.com", | ||
"databaseURL": "https://fireadmin-33d82.firebaseio.com", | ||
"projectId": "fireadmin-33d82", | ||
"storageBucket": "fireadmin-33d82.appspot.com" | ||
}, | ||
"reduxFirebase": { | ||
"userProfile": "users", | ||
"enableLogging": false, | ||
"updateProfileOnLogin": false | ||
} | ||
}, | ||
"prod": { | ||
"version": "${npm_package_version}", | ||
"env": "production", | ||
"firebase": { | ||
"apiKey": "AIzaSyCz8fdvlyeVpwz22bjuw-MEI3wckXhSx9s", | ||
"authDomain": "fireadmin-33d82.firebaseapp.com", | ||
"databaseURL": "https://fireadmin-33d82.firebaseio.com", | ||
"projectId": "fireadmin-33d82", | ||
"storageBucket": "fireadmin-33d82.appspot.com" | ||
}, | ||
"reduxFirebase": { | ||
"userProfile": "users", | ||
"enableLogging": false, | ||
"updateProfileOnLogin": false | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains 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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
node_modules | ||
*.log | ||
**/*.log | ||
.DS_Store | ||
**/.DS_Store | ||
env.json | ||
**/dist | ||
**/node_modules | ||
coverage | ||
docs | ||
olddocs | ||
dist | ||
lib | ||
src/config.js |
This file was deleted.
Oops, something went wrong.
This file contains 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,7 @@ | ||
{ | ||
"sourceBase":"", | ||
"testBase":"", | ||
"smartPath":"", | ||
"dumbPath":"", | ||
"fileCasing":"" | ||
} |
This file contains 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 |
---|---|---|
@@ -1,15 +1,42 @@ | ||
dist: trusty | ||
|
||
sudo: false | ||
|
||
language: node_js | ||
|
||
node_js: | ||
- "4" | ||
- "5" | ||
- 6.11.1 # runtime used within Firebase functions | ||
|
||
notifications: | ||
email: | ||
on_failure: change | ||
on_success: change | ||
|
||
branches: | ||
only: | ||
- master | ||
sudo: false | ||
script: "npm run test:cov" | ||
- stage | ||
- prod | ||
|
||
cache: | ||
bundler: true | ||
directories: | ||
- node_modules # NPM packages | ||
|
||
install: | ||
- npm set progress=false | ||
- npm i | ||
- npm i -g firebase-ci | ||
|
||
script: | ||
- firebase-ci createConfig | ||
- npm run lint | ||
- npm run test | ||
- npm run build | ||
|
||
addons: | ||
code_climate: | ||
repo_token: $CODECLIMATE_REPO_TOKEN | ||
repo_token: $CODE_CLIMATE | ||
|
||
after_success: | ||
- npm install -g codeclimate-test-reporter | ||
- codeclimate-test-reporter < coverage/lcov.info | ||
- firebase-ci deploy -s # deploy without CI actions since createConfig is called earlier |
This file contains 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,59 @@ | ||
# Contributing Guidelines | ||
|
||
Some basic conventions for contributing to this project. | ||
|
||
### General | ||
|
||
Please make sure that there aren't existing pull requests attempting to address the issue mentioned. Likewise, please check for issues related to update, as someone else may be working on the issue in a branch or fork. | ||
|
||
* Non-trivial changes should be discussed in an issue first | ||
* Develop in a topic branch, not master | ||
* Squash your commits | ||
|
||
### Linting | ||
|
||
Please check your code using `npm run lint` before submitting your pull requests, as the CI build will fail if `eslint` fails. | ||
|
||
### Commit Message Format | ||
|
||
Each commit message should include a **type**, a **scope** and a **subject**: | ||
|
||
``` | ||
<type>(<scope>): <subject> | ||
``` | ||
|
||
Lines should not exceed 100 characters. This allows the message to be easier to read on github as well as in various git tools and produces a nice, neat commit log ie: | ||
|
||
``` | ||
#271 feat(standard): add style config and refactor to match | ||
#270 fix(config): only override publicPath when served by webpack | ||
#269 feat(eslint-config-defaults): replace eslint-config-airbnb | ||
#268 feat(config): allow user to configure webpack stats output | ||
``` | ||
|
||
#### Type | ||
|
||
Must be one of the following: | ||
|
||
* **feat**: A new feature | ||
* **fix**: A bug fix | ||
* **docs**: Documentation only changes | ||
* **style**: Changes that do not affect the meaning of the code (white-space, formatting, missing | ||
semi-colons, etc) | ||
* **refactor**: A code change that neither fixes a bug or adds a feature | ||
* **test**: Adding missing tests | ||
* **chore**: Changes to the build process or auxiliary tools and libraries such as documentation | ||
generation | ||
|
||
#### Scope | ||
|
||
The scope could be anything specifying place of the commit change. For example `webpack`, | ||
`babel`, `redux` etc... | ||
|
||
#### Subject | ||
|
||
The subject contains succinct description of the change: | ||
|
||
* use the imperative, present tense: "change" not "changed" nor "changes" | ||
* don't capitalize first letter | ||
* no dot (.) at the end |
This file contains 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,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2017 Prescott Prue | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Oops, something went wrong.