-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
add TypeScript integration #207
Conversation
Thanks @takehiro-takahashi ! I don't know if we should maybe wait before releasing this feature as we're planning to change again how is handled /cc @pi0 WDYT ? |
@takehiro-takahashi Thank you so much for the contribution @takehiro-takahashi @kevinmarrec @pi0 I think if ts is selected, typescript related code should be changed, like changing index.vue to ts lang. |
@clarkdo Yes you're right |
I also thought that it might be necessary. |
Added TS base of Vuetify and nuxt default. iview is not supported because iview's TS type definition file itself did not work. |
test/snapshots/index.test.js.md
Outdated
@@ -33,7 +33,7 @@ Generated by [AVA](https://ava.li). | |||
{ | |||
dependencies: { | |||
'cross-env': '^5.2.0', | |||
nuxt: '^2.4.0', | |||
nuxt: '^2.5.1', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is version bumped by this PR? And if so why not using 2.6.1
?
template/_package.json
Outdated
@@ -50,7 +50,9 @@ | |||
"nuxt-buefy": "^0.3.2"<% } else if (ui === 'iview') { %>, | |||
"iview": "3.1.5"<% } %><% if (axios === 'yes') { %>, | |||
"@nuxtjs/axios": "^5.3.6"<% } %><% if (pwa === 'yes') { %>, | |||
"@nuxtjs/pwa": "^2.6.0"<% } %><% if (ui === 'tachyons') { %>, | |||
"@nuxtjs/pwa": "^2.6.0"<% } %><% if (typescript === 'yes') { %>, | |||
"@nuxt/typescript": "^2.5.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be better to be in devDependencies
and instead, adding ts-node
and typescript
to dependencies.
template/_package.json
Outdated
"vuetify-loader": "^1.2.1"<% } else if (ui === 'bulma') { %>, | ||
"@nuxtjs/bulma": "^1.2.1"<% } else if (ui === 'element-ui') { %>, | ||
"element-ui": "^2.4.11"<% } else if (ui === 'ant-design-vue') { %>, | ||
"ant-design-vue": "^1.1.10"<% } else if (ui === 'buefy') { %>, | ||
"nuxt-buefy": "^0.3.2"<% } else if (ui === 'iview') { %>, | ||
"iview": "3.1.5"<% } %><% if (axios === 'yes') { %>, | ||
"@nuxtjs/axios": "^5.3.6"<% } %><% if (pwa === 'yes') { %>, | ||
"@nuxtjs/pwa": "^2.6.0"<% } %><% if (ui === 'tachyons') { %>, | ||
"@nuxtjs/pwa": "^2.6.0"<% } %><% if (typescript === 'yes') { %>, | ||
"ts-node": "^8.0.3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think typescript
is a peer dependency of it (for the compiler). /cc @kevinmarrec
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's true, and as typescript
is shipped in @nuxt/typescript
which is installed as devDep, it will bring the issue that typescript
won't be installed in production.
@pi0 What do you think of the status of this PR ? It seems kind of ready to me, unless we change our typescript behavior again (which has highly chance to happen, regarding a potential |
I would suggest holding on this PR until latest final breaking change. |
@takehiro-takahashi @pi0 Is it time? |
- ts-node - typescript
Sorry for delay, we're waiting last breaking changes I'm wonking on (outsourcing typescript support in dedicated module & repository) to get this PR finally ready & bring this typescript integration. |
@kevinmarrec @pi0 @takehiro-takahashi Are we still waiting? 🙂 Is there anything we can help with? |
@florianrusch Well lof things have changed since the last status of this PR |
@takehiro-takahashi Thank you so much for your time, but I'm closing in favor of #328 |
Hello everyone !
Added TypeScript integration option for Merge nuxt / nuxt.js # 5079. This will allow you to use TypeScript soon.
With the addition of the TypeScript selection, the choices are as follows:
In addition, the version of Nuxt.js has been updated to 2.5.1 to support TS.