-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from Imtiyaz-CHOUJAI/feature/refactoring
Feature/refactoring
- Loading branch information
Showing
15 changed files
with
383 additions
and
330 deletions.
There are no files selected for viewing
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,3 +1,8 @@ | ||
{ | ||
"presets": ["env"] | ||
"presets": ["@babel/preset-env"], | ||
"env": { | ||
"test": { | ||
"plugins": ["@babel/plugin-transform-runtime"] | ||
} | ||
} | ||
} |
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,23 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es6: true | ||
}, | ||
extends: ['plugin:vue/essential', 'airbnb-base', 'prettier'], | ||
globals: { | ||
Atomics: 'readonly', | ||
SharedArrayBuffer: 'readonly' | ||
}, | ||
parserOptions: { | ||
ecmaVersion: 2018, | ||
sourceType: 'module' | ||
}, | ||
plugins: ['vue', 'prettier'], | ||
rules: { | ||
'prettier/prettier': ['error'], | ||
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }], | ||
'no-param-reassign': ['warn'], | ||
'guard-for-in': 0, | ||
'no-restricted-syntax': 0 | ||
} | ||
}; |
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,4 @@ | ||
{ | ||
"printWidth": 100, | ||
"singleQuote": true | ||
} |
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,10 @@ | ||
nguage: node_js | ||
node_js: | ||
- 6.10.0 | ||
script: npm run test | ||
services: | ||
- xvfb | ||
before_install: | ||
- export DISPLAY=:99.0 | ||
- sh -e /etc/init.d/xvfb start | ||
before_script: | ||
- npm install | ||
script: npm run test |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 |
---|---|---|
@@ -1,45 +1,52 @@ | ||
{ | ||
"name": "vue-firestore", | ||
"version": "0.3.22", | ||
"description": "Vue plugin for firestore", | ||
"main": "./dist/vue-firestore.js", | ||
"scripts": { | ||
"test": "jest --forceExit --detectOpenHandles", | ||
"lint": "eslint --fix src", | ||
"build": "webpack" | ||
}, | ||
"keywords": [ | ||
"vue", | ||
"firebase", | ||
"cloud", | ||
"cloud firestore", | ||
"realtime" | ||
], | ||
"author": "Amrani Houssain", | ||
"license": "MIT", | ||
"peerDependencies": { | ||
"firebase": "^5.x.x" | ||
}, | ||
"devDependencies": { | ||
"babel-core": "^6.24.1", | ||
"babel-loader": "^6.4.1", | ||
"babel-preset-env": "^1.7.0", | ||
"babel-preset-stage-2": "^6.18.0", | ||
"codecov": "^1.0.1", | ||
"eslint": ">=4.18.2", | ||
"eslint-config-standard": "^6.2.1", | ||
"eslint-plugin-html": "^2.0.0", | ||
"eslint-plugin-promise": "^3.4.0", | ||
"eslint-plugin-standard": "^2.0.1", | ||
"firebase": "^5.0.0", | ||
"jest": "^23.6.0", | ||
"vue": "^1.0.28", | ||
"webpack": "^2.6.1" | ||
}, | ||
"jest": { | ||
"collectCoverage": true, | ||
"collectCoverageFrom": [ | ||
"<rootDir>/src/*.js" | ||
] | ||
} | ||
"name": "vue-firestore", | ||
"version": "0.3.22", | ||
"description": "Vue plugin for firestore", | ||
"main": "./dist/vue-firestore.js", | ||
"scripts": { | ||
"test": "jest --forceExit --detectOpenHandles", | ||
"lint": "eslint --fix src", | ||
"build": "webpack" | ||
}, | ||
"keywords": [ | ||
"vue", | ||
"firebase", | ||
"cloud", | ||
"cloud firestore", | ||
"realtime" | ||
], | ||
"author": "Amrani Houssain", | ||
"license": "MIT", | ||
"peerDependencies": { | ||
"firebase": "^7.6.1" | ||
}, | ||
"dependencies": { | ||
"@babel/core": "^7.7.7", | ||
"@babel/preset-env": "^7.7.7", | ||
"babel-loader": "^8.0.6", | ||
"cross-env": "^6.0.3", | ||
"firebase": "^7.6.1", | ||
"vue": "^2.6.11" | ||
}, | ||
"devDependencies": { | ||
"@babel/plugin-transform-runtime": "^7.7.6", | ||
"@babel/runtime": "^7.7.7", | ||
"codecov": "^3.6.1", | ||
"eslint": "^5.16.0", | ||
"eslint-config-airbnb-base": "^14.0.0", | ||
"eslint-config-prettier": "^6.9.0", | ||
"eslint-plugin-import": "^2.19.1", | ||
"eslint-plugin-prettier": "^3.1.2", | ||
"eslint-plugin-vue": "^6.1.2", | ||
"jest": "^24.9.0", | ||
"prettier": "^1.19.1", | ||
"webpack": "^4.41.5", | ||
"webpack-cli": "^3.3.10" | ||
}, | ||
"jest": { | ||
"collectCoverage": true, | ||
"collectCoverageFrom": [ | ||
"<rootDir>/src/*.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,5 @@ | ||
// Plugin options | ||
export default { | ||
keyName: '.key', | ||
enumerable: true | ||
}; |
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,3 +1,3 @@ | ||
import VueFireStore from './vue-firestore' | ||
import VueFireStore from './vue-firestore'; | ||
|
||
export default VueFireStore | ||
export default VueFireStore; |
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
Oops, something went wrong.