Skip to content

Commit 7cb7a4e

Browse files
chadwithuhccrobinson42
authored andcommitted
Proposal: Adding a baseRef option (#39)
* Adding a baseRef option * Contributing info update * Updating testing instructions and setup * npm update
1 parent b6886e7 commit 7cb7a4e

9 files changed

+5546
-3342
lines changed

.env.example

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
API_KEY=<web_api_key>
2+
AUTH_DOMAIN=<project_id>.firebaseapp.com
3+
DATABASE_URL=https://<project_id>.firebaseio.com

.github/CONTRIBUTING.md

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
1. `clone git@github.com:js-data/js-data-firebase.git`
1515
1. `cd js-data-firebase`
1616
1. `npm install`
17+
1. `cp config.default.js config.js` and enter testing Firebase connection settings
18+
1. `cp .env.example .env` and enter testing Firebase connection settings
1719
1. `npm test` - Lint, build, and test
1820

1921
## To cut a release

.github/PULL_REQUEST_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ Fixes #<issue_number_goes_here> (it's a good idea to open an issue first for dis
33
- [ ] - `npm test` succeeds
44
- [ ] - Code coverage does not decrease (if any source code was changed)
55
- [ ] - Appropriate JSDoc comments were updated in source code (if applicable)
6-
- [ ] - Approprate changes to js-data.io docs have been suggested ("Suggest Edits" button)
6+
- [ ] - Appropriate changes to js-data.io docs have been suggested ("Suggest Edits" button)

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ typings/
1414
.vscode
1515
key.json
1616
config.js
17+
.env
1718
.nyc_output/
1819
dist/*.js
1920
dist/*.map

config.default.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
window.API_KEY = 'your-api-key';
2-
window.AUTH_DOMAIN = 'your-auth-domain';
3-
window.DATABASE_URL = 'your-database-url';
1+
window.API_KEY = '<web_api_key>';
2+
window.AUTH_DOMAIN = '<project_id>.firebaseapp.com';
3+
window.DATABASE_URL = 'https://<project_id>.firebaseio.com';

mocha.start.js

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
var JSData = require('js-data')
55
var JSDataAdapterTests = require('./node_modules/js-data-adapter/dist/js-data-adapter-tests')
66
var JSDataFirebase = require('./')
7+
require('dotenv').config()
78

89
var firebase = require('firebase')
910

0 commit comments

Comments
 (0)