Skip to content

Commit

Permalink
chore: improved the use of vue3
Browse files Browse the repository at this point in the history
  • Loading branch information
vallemar committed Apr 27, 2023
1 parent f42e400 commit 62074fc
Show file tree
Hide file tree
Showing 12 changed files with 805 additions and 1,720 deletions.
4 changes: 2 additions & 2 deletions .project
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
</natures>
<filteredResources>
<filter>
<id>1604680591551</id>
<id>1682616481632</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
Expand Down
2 changes: 1 addition & 1 deletion demo-ng
Submodule demo-ng updated 2 files
+16 −15 package.json
+10 −0 webpack.config.js
2 changes: 1 addition & 1 deletion demo-react
2 changes: 1 addition & 1 deletion demo-svelte
2 changes: 1 addition & 1 deletion demo-vue
Submodule demo-vue updated 2 files
+1 −0 package.json
+10 −0 webpack.config.js
2 changes: 1 addition & 1 deletion demo-vue3
Submodule demo-vue3 updated 2 files
+1 −0 package.json
+11 −0 webpack.config.js
10 changes: 8 additions & 2 deletions packages/bottomsheet/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,11 @@
}
},
"include": ["../../src/bottomsheet/**/*.ts", "../../references.d.ts", "../../tools/references.d.ts", "../../src/references.d.ts"],
"exclude": ["../../src/bottomsheet/angular/**"]
}
"exclude": ["../../src/bottomsheet/angular/**"],
"references": [
{
//Need for tsc
"path": "../../tsconfig.vue3.json"
}
]
}
4 changes: 2 additions & 2 deletions src/bottomsheet/vue3/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { App, createApp } from 'nativescript-vue3';
import { App, createApp } from 'nativescript-vue';
import { Frame, View, ViewBase } from '@nativescript/core';
import { BottomSheetOptions } from '../bottomsheet';
import { ComponentCustomProperties } from '@vue/runtime-core';

declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
$showBottomSheet: (component: any, options: VueBottomSheetOptions) => Promise<any>;
$showBottomSheet(component: any, options: VueBottomSheetOptions): Promise<any>;
$closeBottomSheet(...args);
}
}
Expand Down
2 changes: 1 addition & 1 deletion tools
Submodule tools updated 1 files
+1 −1 package.json
8 changes: 7 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,11 @@
"@nativescript-community/ui-material-speeddial": ["src/speeddial/index"],
"@nativescript-community/ui-material-speeddial/*": ["src/speeddial/*"],
}
}
},
"references": [
{
//Need for IDE
"path": "./tsconfig.vue3.json"
}
]
}
14 changes: 14 additions & 0 deletions tsconfig.vue3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"composite": true,
"paths": {
"nativescript-vue": ["./node_modules/nativescript-vue3"]
}
},
"include": [
"./src/bottomsheet/vue3",
"./packages/bottomsheet/vue3",
"./demo-snippets/vue3"
]
}
Loading

0 comments on commit 62074fc

Please sign in to comment.