summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorGravatar Fred K. Schott <fkschott@gmail.com> 2021-08-26 12:08:52 -0700
committerGravatar GitHub <noreply@github.com> 2021-08-26 12:08:52 -0700
commitff92be637ffd9a9841b771e94d8deef1c62422cb (patch)
tree56dab4a40c432e95914eaedbf3df7d3f8175b60d /examples
parent155676275b1c61fb37e22fb09c4967224b2c17af (diff)
downloadastro-ff92be637ffd9a9841b771e94d8deef1c62422cb.tar.gz
astro-ff92be637ffd9a9841b771e94d8deef1c62422cb.tar.zst
astro-ff92be637ffd9a9841b771e94d8deef1c62422cb.zip
add "astro preview" command (#1226)
* add "astro preview" command * Update green-buttons-reflect.md * Update cli-reference.md
Diffstat (limited to 'examples')
-rw-r--r--examples/blog-multiple-authors/package.json3
-rw-r--r--examples/blog/package.json3
-rw-r--r--examples/docs/package.json3
-rw-r--r--examples/docs/src/pages/index.md3
-rw-r--r--examples/framework-lit/package.json3
-rw-r--r--examples/framework-multiple/package.json3
-rw-r--r--examples/framework-preact/package.json3
-rw-r--r--examples/framework-react/package.json3
-rw-r--r--examples/framework-solid/package.json3
-rw-r--r--examples/framework-svelte/package.json3
-rw-r--r--examples/framework-vue/package.json3
-rw-r--r--examples/minimal/package.json3
-rw-r--r--examples/portfolio/package.json3
-rw-r--r--examples/snowpack/package.json1
-rw-r--r--examples/starter/package.json3
-rw-r--r--examples/with-markdown-plugins/package.json3
-rw-r--r--examples/with-markdown/package.json3
-rw-r--r--examples/with-nanostores/package.json3
-rw-r--r--examples/with-tailwindcss/package.json3
19 files changed, 37 insertions, 18 deletions
diff --git a/examples/blog-multiple-authors/package.json b/examples/blog-multiple-authors/package.json
index a14dd21da..0ec55c3dd 100644
--- a/examples/blog-multiple-authors/package.json
+++ b/examples/blog-multiple-authors/package.json
@@ -5,7 +5,8 @@
"scripts": {
"dev": "astro dev",
"start": "astro dev",
- "build": "astro build"
+ "build": "astro build",
+ "preview": "astro preview"
},
"devDependencies": {
"astro": "^0.20.0"
diff --git a/examples/blog/package.json b/examples/blog/package.json
index 0e911f5a6..6ea001c84 100644
--- a/examples/blog/package.json
+++ b/examples/blog/package.json
@@ -5,7 +5,8 @@
"scripts": {
"dev": "astro dev",
"start": "astro dev",
- "build": "astro build"
+ "build": "astro build",
+ "preview": "astro preview"
},
"devDependencies": {
"astro": "^0.20.0"
diff --git a/examples/docs/package.json b/examples/docs/package.json
index 641209868..cfaa832ac 100644
--- a/examples/docs/package.json
+++ b/examples/docs/package.json
@@ -5,7 +5,8 @@
"scripts": {
"dev": "astro dev",
"start": "astro dev",
- "build": "astro build"
+ "build": "astro build",
+ "preview": "astro preview"
},
"devDependencies": {
"astro": "^0.20.0"
diff --git a/examples/docs/src/pages/index.md b/examples/docs/src/pages/index.md
index 93d75c113..cd5ce6454 100644
--- a/examples/docs/src/pages/index.md
+++ b/examples/docs/src/pages/index.md
@@ -40,7 +40,8 @@ The default Astro project has the following `scripts` in the `/package.json` fil
{
"scripts": {
"dev": "astro dev",
- "build": "astro build"
+ "build": "astro build",
+ "preview": "astro preview"
}
}
```
diff --git a/examples/framework-lit/package.json b/examples/framework-lit/package.json
index 55c3ab491..2101546f8 100644
--- a/examples/framework-lit/package.json
+++ b/examples/framework-lit/package.json
@@ -5,7 +5,8 @@
"scripts": {
"dev": "astro dev",
"start": "astro dev",
- "build": "astro build"
+ "build": "astro build",
+ "preview": "astro preview"
},
"devDependencies": {
"@astrojs/renderer-lit": "^0.1.0",
diff --git a/examples/framework-multiple/package.json b/examples/framework-multiple/package.json
index 9fb2cadaa..53184d927 100644
--- a/examples/framework-multiple/package.json
+++ b/examples/framework-multiple/package.json
@@ -5,7 +5,8 @@
"scripts": {
"dev": "astro dev",
"start": "astro dev",
- "build": "astro build"
+ "build": "astro build",
+ "preview": "astro preview"
},
"devDependencies": {
"astro": "^0.20.0"
diff --git a/examples/framework-preact/package.json b/examples/framework-preact/package.json
index a3d3366a0..96a002616 100644
--- a/examples/framework-preact/package.json
+++ b/examples/framework-preact/package.json
@@ -5,7 +5,8 @@
"scripts": {
"dev": "astro dev",
"start": "astro dev",
- "build": "astro build"
+ "build": "astro build",
+ "preview": "astro preview"
},
"devDependencies": {
"astro": "^0.20.0"
diff --git a/examples/framework-react/package.json b/examples/framework-react/package.json
index 7b49040d5..ba75403e2 100644
--- a/examples/framework-react/package.json
+++ b/examples/framework-react/package.json
@@ -5,7 +5,8 @@
"scripts": {
"dev": "astro dev",
"start": "astro dev",
- "build": "astro build"
+ "build": "astro build",
+ "preview": "astro preview"
},
"devDependencies": {
"astro": "^0.20.0"
diff --git a/examples/framework-solid/package.json b/examples/framework-solid/package.json
index 7aa34e937..a230f0093 100644
--- a/examples/framework-solid/package.json
+++ b/examples/framework-solid/package.json
@@ -5,7 +5,8 @@
"scripts": {
"dev": "astro dev",
"start": "astro dev",
- "build": "astro build"
+ "build": "astro build",
+ "preview": "astro preview"
},
"devDependencies": {
"astro": "^0.20.0",
diff --git a/examples/framework-svelte/package.json b/examples/framework-svelte/package.json
index a2e0613d6..1c3721a7d 100644
--- a/examples/framework-svelte/package.json
+++ b/examples/framework-svelte/package.json
@@ -5,7 +5,8 @@
"scripts": {
"dev": "astro dev",
"start": "astro dev",
- "build": "astro build"
+ "build": "astro build",
+ "preview": "astro preview"
},
"devDependencies": {
"astro": "^0.20.0"
diff --git a/examples/framework-vue/package.json b/examples/framework-vue/package.json
index d0077fce0..6f72e13eb 100644
--- a/examples/framework-vue/package.json
+++ b/examples/framework-vue/package.json
@@ -5,7 +5,8 @@
"scripts": {
"dev": "astro dev",
"start": "astro dev",
- "build": "astro build"
+ "build": "astro build",
+ "preview": "astro preview"
},
"devDependencies": {
"astro": "^0.20.0"
diff --git a/examples/minimal/package.json b/examples/minimal/package.json
index f8e1b5e36..cd72cf7ab 100644
--- a/examples/minimal/package.json
+++ b/examples/minimal/package.json
@@ -5,7 +5,8 @@
"scripts": {
"dev": "astro dev",
"start": "astro dev",
- "build": "astro build"
+ "build": "astro build",
+ "preview": "astro preview"
},
"devDependencies": {
"astro": "^0.20.0"
diff --git a/examples/portfolio/package.json b/examples/portfolio/package.json
index e82794b60..8408c6e7a 100644
--- a/examples/portfolio/package.json
+++ b/examples/portfolio/package.json
@@ -5,7 +5,8 @@
"scripts": {
"dev": "astro dev",
"start": "astro dev",
- "build": "astro build"
+ "build": "astro build",
+ "preview": "astro preview"
},
"devDependencies": {
"astro": "^0.20.0"
diff --git a/examples/snowpack/package.json b/examples/snowpack/package.json
index a5549ac8d..753b251dd 100644
--- a/examples/snowpack/package.json
+++ b/examples/snowpack/package.json
@@ -5,6 +5,7 @@
"scripts": {
"start": "astro dev",
"build": "astro build",
+ "preview": "astro preview",
"test": "jest /__test__/",
"format": "prettier --write \"src/**/*.js\" && yarn format:css",
"lint": "prettier --check \"src/**/*.js\""
diff --git a/examples/starter/package.json b/examples/starter/package.json
index 782f7aa1f..8e06ade93 100644
--- a/examples/starter/package.json
+++ b/examples/starter/package.json
@@ -5,7 +5,8 @@
"scripts": {
"dev": "astro dev",
"start": "astro dev",
- "build": "astro build"
+ "build": "astro build",
+ "preview": "astro preview"
},
"devDependencies": {
"astro": "^0.20.0"
diff --git a/examples/with-markdown-plugins/package.json b/examples/with-markdown-plugins/package.json
index 3beb797a9..deaba2ed2 100644
--- a/examples/with-markdown-plugins/package.json
+++ b/examples/with-markdown-plugins/package.json
@@ -5,7 +5,8 @@
"scripts": {
"dev": "astro dev",
"start": "astro dev",
- "build": "astro build"
+ "build": "astro build",
+ "preview": "astro preview"
},
"devDependencies": {
"astro": "^0.20.0",
diff --git a/examples/with-markdown/package.json b/examples/with-markdown/package.json
index 4a3933d1e..a85d43181 100644
--- a/examples/with-markdown/package.json
+++ b/examples/with-markdown/package.json
@@ -5,7 +5,8 @@
"scripts": {
"dev": "astro dev",
"start": "astro dev",
- "build": "astro build"
+ "build": "astro build",
+ "preview": "astro preview"
},
"devDependencies": {
"astro": "^0.20.0"
diff --git a/examples/with-nanostores/package.json b/examples/with-nanostores/package.json
index 453922de5..f2fe149fb 100644
--- a/examples/with-nanostores/package.json
+++ b/examples/with-nanostores/package.json
@@ -5,7 +5,8 @@
"scripts": {
"dev": "astro dev",
"start": "astro dev",
- "build": "astro build"
+ "build": "astro build",
+ "preview": "astro preview"
},
"devDependencies": {
"astro": "^0.20.0"
diff --git a/examples/with-tailwindcss/package.json b/examples/with-tailwindcss/package.json
index 74516021f..e2703508c 100644
--- a/examples/with-tailwindcss/package.json
+++ b/examples/with-tailwindcss/package.json
@@ -5,7 +5,8 @@
"scripts": {
"dev": "astro dev",
"start": "astro dev",
- "build": "astro build"
+ "build": "astro build",
+ "preview": "astro preview"
},
"devDependencies": {
"tailwindcss": "^2.1.2",