summaryrefslogtreecommitdiff
path: root/examples/framework-vue
diff options
context:
space:
mode:
Diffstat (limited to 'examples/framework-vue')
-rw-r--r--examples/framework-vue/.vscode/extensions.json4
-rw-r--r--examples/framework-vue/.vscode/launch.json11
-rw-r--r--examples/framework-vue/src/components/Counter.vue3
-rw-r--r--examples/framework-vue/tsconfig.json2
4 files changed, 19 insertions, 1 deletions
diff --git a/examples/framework-vue/.vscode/extensions.json b/examples/framework-vue/.vscode/extensions.json
new file mode 100644
index 000000000..22a15055d
--- /dev/null
+++ b/examples/framework-vue/.vscode/extensions.json
@@ -0,0 +1,4 @@
+{
+ "recommendations": ["astro-build.astro-vscode"],
+ "unwantedRecommendations": []
+}
diff --git a/examples/framework-vue/.vscode/launch.json b/examples/framework-vue/.vscode/launch.json
new file mode 100644
index 000000000..d64220976
--- /dev/null
+++ b/examples/framework-vue/.vscode/launch.json
@@ -0,0 +1,11 @@
+{
+ "version": "0.2.0",
+ "configurations": [
+ {
+ "command": "./node_modules/.bin/astro dev",
+ "name": "Development server",
+ "request": "launch",
+ "type": "node-terminal"
+ }
+ ]
+}
diff --git a/examples/framework-vue/src/components/Counter.vue b/examples/framework-vue/src/components/Counter.vue
index d5d5215f7..5ce5352b8 100644
--- a/examples/framework-vue/src/components/Counter.vue
+++ b/examples/framework-vue/src/components/Counter.vue
@@ -9,7 +9,7 @@
</div>
</template>
-<script>
+<script lang="ts">
import { ref } from 'vue';
export default {
setup() {
@@ -34,6 +34,7 @@ export default {
margin-top: 2em;
place-items: center;
}
+
.counter-message {
text-align: center;
}
diff --git a/examples/framework-vue/tsconfig.json b/examples/framework-vue/tsconfig.json
index 4db6ee701..7e64c543c 100644
--- a/examples/framework-vue/tsconfig.json
+++ b/examples/framework-vue/tsconfig.json
@@ -3,6 +3,8 @@
// Enable top-level await, and other modern ESM features.
"target": "ESNext",
"module": "ESNext",
+ // Needed for TypeScript intellisense in the template inside Vue files
+ "jsx": "preserve",
// Enable node-style module resolution, for things like npm package imports.
"moduleResolution": "node",
// Enable JSON imports.
ow=1'>Version Packages (next) (#1923)astro@0.21.0-next.12Gravatar github-actions[bot] 23-21/+30 2021-11-19Fix RegExp#test in Config test (#1922)Gravatar Jonathan Neal 1-2/+2 2021-11-19Add vite back as a dependency (#1921)Gravatar Matthew Phillips 2-0/+6 2021-11-19[ci] yarn formatGravatar matthewp 1-1/+1 2021-11-19Add polyfill scripts to result.scripts (#1920)Gravatar Matthew Phillips 3-4/+13 2021-11-19Remove escape in blog example postGravatar Matthew Phillips 1-1/+1 2021-11-19Do not let Prettier bot mess wit the blog example (#1918)Gravatar Matthew Phillips 1-0/+1 2021-11-19[ci] yarn formatGravatar matthewp 1-1/+1 2021-11-19Fix blog example yet again (#1917)Gravatar Matthew Phillips 2-3/+3 2021-11-19Version Packages (next) (#1916)astro@0.21.0-next.11@astrojs/markdown-remark@0.4.0-next.2Gravatar github-actions[bot] 25-23/+39 2021-11-19Adding a changeset for package.json bump (#1913)Gravatar Matthew Phillips 2-0/+10 2021-11-19Remove additional newlines added to HTML (#1908)Gravatar Jonathan Neal 1-1/+1 2021-11-19[ci] yarn formatGravatar matthewp 1-1/+1 2021-11-19Small fixes (#1911)Gravatar Matthew Phillips 3-1/+5 2021-11-19[ci] yarn formatGravatar matthewp 1-1/+1 2021-11-19Fix blog example (#1910)Gravatar Matthew Phillips 1-1/+1 2021-11-19Version Packages (next) (#1907)astro@0.21.0-next.10Gravatar github-actions[bot] 23-21/+28 2021-11-19Remove further dependence on vite package (#1906)Gravatar Matthew Phillips 3-5/+9 2021-11-19Version Packages (next) (#1904)astro@0.21.0-next.9Gravatar github-actions[bot] 23-21/+30 2021-11-19Remove OSX \x00 workaround (#1901)Gravatar Matthew Phillips 2-5/+5 2021-11-19Resolve vite client modules to vendored vite (#1903)Gravatar Matthew Phillips 2-2/+7 2021-11-19[ci] yarn formatGravatar matthewp 1-3/+3 2021-11-19Add Debug tests (#1882)Gravatar Matthew Phillips 4-0/+62 2021-11-19[ci] collect statsGravatar FredKSchott 1-0/+1 2021-11-19Version Packages (next) (#1881)astro@0.21.0-next.8@astrojs/renderer-vue@0.2.0-next.2Gravatar github-actions[bot] 25-23/+42 2021-11-18Improve HMR (#1896)Gravatar Drew Powers 2-10/+18 2021-11-18update depsGravatar Fred K. Schott 5-352/+65 2021-11-18fix #1778Gravatar Fred K. Schott 2-1/+8 2021-11-18Update compiler (#1869)Gravatar Nate Moore 3-11/+6 2021-11-18remove unused remark dependency (#1894)Gravatar Fred K. Schott 2-245/+13 2021-11-18Improve error messages (#1875)Gravatar Drew Powers 39-61/+448 2021-11-18pin astro compiler to older versionGravatar Fred K. Schott 2-5/+5 2021-11-18Update yarn.lock to reflect the state of the package.json files (#1892)Gravatar Jonathan Neal 5-1300/+1000 2021-11-19[ci] yarn formatGravatar FredKSchott 1-5/+3