|
| 1 | +<%_ if (rootOptions.router) { _%> |
| 2 | +<%# -------------------- IS Using vue-router -------------------- -%> |
1 | 3 | <template></template>
|
2 |
| -<%_ if (!usingTS) { _%> |
3 |
| -<%# -------------------- Is Not Using TypeScript -------------------- -%> |
| 4 | +<%_ } else { _%> |
| 5 | +<%# -------------------- IS NOT Using vue-router -------------------- -%> |
| 6 | +<template></template> |
| 7 | +<%_ } _%> |
| 8 | +<%_ if (!usingTS && rootOptions.router) { _%> |
| 9 | +<%# -------------------- IS NOT Using TypeScript AND IS Using vue-router -------------------- -%> |
4 | 10 | <%# Remove this line and Uncomment the next to use script tag - Prettier formatting bug removes all script tags if these are left in -%>
|
5 | 11 | <%# <script></script> -%>
|
6 |
| -<%_ } else { _%> |
7 |
| -<%# -------------------- Is Using TypeScript -------------------- -%> |
| 12 | +<%_ } else if (!usingTS && !rootOptions.router) { _%> |
| 13 | +<%# -------------------- IS NOT Using TypeScript AND IS NOT Using vue-router -------------------- -%> |
8 | 14 | <%# Remove this line and Uncomment the next to use script tag - Prettier formatting bug removes all script tags if these are left in -%>
|
| 15 | +<%# <script></script> -%> |
| 16 | +<%_ } else if (usingTS && rootOptions.router) { _%> |
| 17 | +<%# -------------------- IS Using TypeScript AND IS Using vue-router -------------------- -%> |
| 18 | +<%# <script lang="ts"></script> -%> |
| 19 | +<%_ } else if (usingTS && !rootOptions.router) { _%> |
| 20 | +<%# -------------------- IS Using TypeScript AND IS NOT Using vue-router -------------------- -%> |
9 | 21 | <%# <script lang="ts"></script> -%>
|
| 22 | +<%_ } else { _%> |
| 23 | +<%# -------------------- don't do anything -------------------- -%> |
10 | 24 | <%_ } _%>
|
11 |
| -<!-- Add "scoped" attribute to limit CSS to this component only --> |
| 25 | +<!-- Add "scoped" attribute to limit CSS to this component only --> |
12 | 26 | <%_ if (rootOptions.cssPreprocessor) { _%>
|
13 | 27 | <%_ if (rootOptions.cssPreprocessor !== 'stylus') { _%>
|
14 | 28 | <%# -------------------- IS Using scss OR sass -------------------- -%>
|
|
0 commit comments