Skip to content

Migration to Typescript #302

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 39 commits into from
Jul 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
7b5d852
Since the issue pointed already has a merged PR and typescript was up…
trickstival Jun 12, 2019
cfe843c
passing options to createSnapshot and added custom createSnapshot sup…
trickstival Jun 12, 2019
693bf30
added tests for custom createSnapshot
trickstival Jun 12, 2019
4af4d93
Fixed test to return data
trickstival Jun 12, 2019
7d6accc
Added createSnapshot docs
trickstival Jun 12, 2019
24ebfe7
Using defineProperties instead of spread in docs to avoid unnecessary…
trickstival Jun 12, 2019
35d2f1d
more info in docs
trickstival Jun 12, 2019
cafc175
Added vue-test-utils to avoid global Vues properties conflict
trickstival Jun 12, 2019
38d20e0
removed vue test utils in favor of Vue.extend
trickstival Jun 22, 2019
731b22d
no need to pass object with options
trickstival Jun 22, 2019
da3ade6
Added empty line between tests
trickstival Jun 23, 2019
cde8da3
Added createSnapshot types
trickstival Jul 11, 2019
cc00b06
No need for comma
trickstival Jul 11, 2019
936c7ad
refactor(core): rename createSnapshot to serialize
posva Jul 12, 2019
67f9cf8
feat(core): allow serialize function for RTDB
posva Jul 12, 2019
0375464
chore: format
posva Jul 12, 2019
5a0e23f
feat(vuefire): add serialize option globally and locally ($bind)
posva Jul 12, 2019
ac36b90
types(vuefire): fix typing for new option serialize
posva Jul 12, 2019
dae5e13
Merge branch 'master' into issue-240
posva Jul 12, 2019
129216b
refactor(test-helpers): move to ts
posva Jul 13, 2019
a848e3a
refactor(core): refactor in ts
posva Jul 14, 2019
16e3ac4
chore: add eslint for ts
posva Jul 14, 2019
3261800
chore(lint): fix
posva Jul 14, 2019
feeebbd
chore: fix lint in bundler
posva Jul 14, 2019
f6d3f28
chore: run lint
posva Jul 14, 2019
20fa897
build: handle ts build
posva Jul 15, 2019
885dbb4
refactor(vuefire): rewrite in ts
posva Jul 15, 2019
6dd08a8
chore: cleaning files
posva Jul 15, 2019
83ce89e
refactor(vuexfire): migrate to ts
posva Jul 15, 2019
edbad98
chore: remove unused package
posva Jul 15, 2019
7f523b8
chore: remove unused line
posva Jul 15, 2019
0097cd7
build(core): run build after install
posva Jul 15, 2019
7638f4d
build: use prepare to build core
posva Jul 15, 2019
684bd8b
chore: update yarn.lock
posva Jul 15, 2019
92227d6
docs(vuefire): add serilaze function
posva Jul 15, 2019
1bd6789
docs: add serialize option
posva Jul 15, 2019
77c5adb
docs(vuexfire): fix typo
posva Jul 15, 2019
0337012
feat(vuexfire): allow extending global default options
posva Jul 15, 2019
c504fa4
chore(core): improve coverage
posva Jul 15, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .eslintrc

This file was deleted.

23 changes: 23 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
extends: [
// 'plugin:vue-libs/recommended',
'plugin:@typescript-eslint/recommended',
'prettier/@typescript-eslint', // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and displays prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
],
parserOptions: {
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
sourceType: 'module', // Allows for the use of imports
},
rules: {
'@typescript-eslint/no-explicit-any': 0,
'@typescript-eslint/explicit-function-return-type': 0,
'@typescript-eslint/no-use-before-define': ['error', { functions: false }],
'@typescript-eslint/explicit-member-accessibility': ['error', { accessibility: 'no-public' }],
},
env: {
jest: true,
},
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ dist
lerna-debug.log
yarn-error.log
packages/*/*.tgz
.rpt2_cache
11 changes: 11 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"eslint.autoFixOnSave": true,
"eslint.validate": ["javascript", { "language": "typescript", "autoFix": true }],
"editor.formatOnSave": true,
"[javascript]": {
"editor.formatOnSave": false
},
"[typescript]": {
"editor.formatOnSave": false
}
}
19 changes: 18 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,30 @@
}
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^1.12.0",
"@typescript-eslint/parser": "^1.12.0",
"conventional-changelog-cli": "^2.0.21",
"codecov": "^3.5.0",
"cz-conventional-changelog": "^2.1.0",
"lerna": "^3.15.0"
"eslint": "^6.0.1",
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-prettier": "^3.1.0",
"lerna": "^3.15.0",
"prettier": "^1.18.2",
"rimraf": "^2.6.3",
"rollup": "^1.16.7",
"rollup-plugin-alias": "^1.5.2",
"rollup-plugin-commonjs": "^10.0.1",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-strip-banner": "^0.2.0",
"rollup-plugin-terser": "^5.1.1",
"rollup-plugin-typescript2": "^0.22.0"
},
"scripts": {
"prerelease": "lerna version -m 'chore(release): publish'",
"release": "lerna publish from-git",
"prepare": "lerna run prepare",
"changelog": "conventional-changelog -p angular -r 2 -i CHANGELOG.md -s",
"test": "lerna run test"
}
Expand Down
23 changes: 0 additions & 23 deletions packages/@posva/vuefire-bundler/README.md

This file was deleted.

41 changes: 0 additions & 41 deletions packages/@posva/vuefire-bundler/package.json

This file was deleted.

107 changes: 0 additions & 107 deletions packages/@posva/vuefire-bundler/src/index.js

This file was deleted.

7 changes: 0 additions & 7 deletions packages/@posva/vuefire-bundler/src/utils/index.js

This file was deleted.

27 changes: 0 additions & 27 deletions packages/@posva/vuefire-bundler/src/utils/log.js

This file was deleted.

19 changes: 0 additions & 19 deletions packages/@posva/vuefire-bundler/src/utils/write.js

This file was deleted.

Loading