Skip to content
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

feat(vue): add typescript support #1920

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@

# these files are now auto-generated
/src/img/
vue/build
10 changes: 5 additions & 5 deletions grunt/replace.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,20 +303,20 @@ module.exports = function(grunt) {


/**************
* Generate vue/src/IntlTelInputWithUtils.tsx
* Generate vue/src/IntlTelInputWithUtils.ts
**************/
vueWithUtils: {
options: {
patterns: [
{
match: /\<script setup\>\simport intlTelInput from \"\.\.\/intl\-tel\-input\"\;/,
replacement: '<!-- THIS FILE IS AUTO-GENERATED. DO NOT EDIT. -->\n<script setup>\nimport intlTelInput from "./intlTelInputWithUtils";'
match: /\<script setup lang=\"ts\"\>\simport intlTelInput from \"\.\/intl\-tel\-input\"\;/,
replacement: '<!-- THIS FILE IS AUTO-GENERATED. DO NOT EDIT. -->\n<script setup lang="ts">\nimport intlTelInput from "./intl-tel-input/intlTelInputWithUtils";'
}
]
},
files: {
'vue/src/intl-tel-input/IntlTelInputWithUtils.vue': 'vue/src/intl-tel-input/IntlTelInput.vue',
'vue/src/IntlTelInputWithUtils.vue': 'vue/src/IntlTelInput.vue',
}
},
};
};
};
2 changes: 1 addition & 1 deletion grunt/shell.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = function(grunt) {
command: 'node react/build.js'
},
buildVue: {
command: 'vite build --config vue/viteConfig.js && vite build --config vue/viteConfigWithUtils.js'
command: 'vite build --config vue/vite.config.mts'
},
buildJs: {
command: 'node build.js'
Expand Down
Loading