Skip to content

Commit

Permalink
Switched to Fireadmin application.
Browse files Browse the repository at this point in the history
  • Loading branch information
prescottprue committed Nov 10, 2017
1 parent 7167866 commit 235c51c
Show file tree
Hide file tree
Showing 211 changed files with 17,589 additions and 1,099 deletions.
4 changes: 0 additions & 4 deletions .babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions .bowerrc

This file was deleted.

7 changes: 0 additions & 7 deletions .codeclimate.yml

This file was deleted.

6 changes: 6 additions & 0 deletions .eslintignore
@@ -0,0 +1,6 @@
coverage/**
**/node_modules/**
dist/**
src/index.html
blueprints/**
src/config.js
35 changes: 35 additions & 0 deletions .eslintrc
@@ -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
}]
42 changes: 42 additions & 0 deletions .firebaserc
@@ -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
}
}
}
}
}
11 changes: 5 additions & 6 deletions .gitignore
@@ -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
12 changes: 0 additions & 12 deletions .jscsrc

This file was deleted.

5 changes: 0 additions & 5 deletions .jshintrc

This file was deleted.

4 changes: 0 additions & 4 deletions .npmignore

This file was deleted.

7 changes: 7 additions & 0 deletions .reduxrc
@@ -0,0 +1,7 @@
{
"sourceBase":"",
"testBase":"",
"smartPath":"",
"dumbPath":"",
"fileCasing":""
}
41 changes: 34 additions & 7 deletions .travis.yml
@@ -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
59 changes: 59 additions & 0 deletions CONTRIBUTING.md
@@ -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
21 changes: 21 additions & 0 deletions LICENSE
@@ -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.

0 comments on commit 235c51c

Please sign in to comment.