summaryrefslogtreecommitdiff
path: root/examples/snowpack/src
diff options
context:
space:
mode:
authorGravatar Jonathan Neal <jonathantneal@hotmail.com> 2021-08-19 01:07:08 -0400
committerGravatar GitHub <noreply@github.com> 2021-08-18 22:07:08 -0700
commite66872125d6a5e5246aeb7a2f1d5784d5c5493b7 (patch)
tree05bfcb3ec8c33a798fdc32b8d1633151e7a8a113 /examples/snowpack/src
parentece0953aed6879b4e7bf2b812b4a20508181b496 (diff)
downloadastro-e66872125d6a5e5246aeb7a2f1d5784d5c5493b7.tar.gz
astro-e66872125d6a5e5246aeb7a2f1d5784d5c5493b7.tar.zst
astro-e66872125d6a5e5246aeb7a2f1d5784d5c5493b7.zip
add dev script, switch documentation from advising start to dev script (#1141)
Diffstat (limited to 'examples/snowpack/src')
-rw-r--r--examples/snowpack/src/pages/guides/https-ssl-certificates.md2
-rw-r--r--examples/snowpack/src/pages/tutorials/getting-started.md6
-rw-r--r--examples/snowpack/src/pages/tutorials/quick-start.md4
-rw-r--r--examples/snowpack/src/pages/tutorials/react.md2
-rw-r--r--examples/snowpack/src/pages/tutorials/svelte.md6
5 files changed, 10 insertions, 10 deletions
diff --git a/examples/snowpack/src/pages/guides/https-ssl-certificates.md b/examples/snowpack/src/pages/guides/https-ssl-certificates.md
index 512c6524f..305d2ac1c 100644
--- a/examples/snowpack/src/pages/guides/https-ssl-certificates.md
+++ b/examples/snowpack/src/pages/guides/https-ssl-certificates.md
@@ -12,7 +12,7 @@ This guide has an example repo:
</div>
```
-npm start -- --secure
+npm run dev -- --secure
```
Snowpack provides an easy way to use a local HTTPS server during development through the use of the `--secure` flag. When enabled, Snowpack will look for a `snowpack.key` and `snowpack.crt` file in the root directory and use that to create an HTTPS server with HTTP2 support enabled.
diff --git a/examples/snowpack/src/pages/tutorials/getting-started.md b/examples/snowpack/src/pages/tutorials/getting-started.md
index d3bb7c6e0..932a7b557 100644
--- a/examples/snowpack/src/pages/tutorials/getting-started.md
+++ b/examples/snowpack/src/pages/tutorials/getting-started.md
@@ -71,7 +71,7 @@ Add the Snowpack development server to `package.json` under as the `start` scrip
```diff
"scripts": {
-+ "start": "snowpack dev",
++ "dev": "snowpack dev",
"test": "echo \"Error: no test specified\" && exit 1"
},
@@ -80,7 +80,7 @@ Add the Snowpack development server to `package.json` under as the `start` scrip
Run the following on the command line to start the Snowpack development server
```
-npm start
+npm run dev
```
If all went well, Snowpack automatically opens your site in a new browser!
@@ -205,7 +205,7 @@ Add the `snowpack build` command to package.json so it's easier to run on the co
```diff
"scripts": {
- "start": "snowpack dev",
+ "dev": "snowpack dev",
+ "build": "snowpack build",
"test": "echo \"Error: no test specified\" && exit 1"
diff --git a/examples/snowpack/src/pages/tutorials/quick-start.md b/examples/snowpack/src/pages/tutorials/quick-start.md
index db47b2968..116a83ad8 100644
--- a/examples/snowpack/src/pages/tutorials/quick-start.md
+++ b/examples/snowpack/src/pages/tutorials/quick-start.md
@@ -29,9 +29,9 @@ For long-term development, the best way to use Snowpack is with a package.json s
```js
// Recommended: package.json scripts
-// npm start (or: "yarn run ...", "pnpm run ...")
+// npm run dev (or: "yarn run ...", "pnpm run ...")
"scripts": {
- "start": "snowpack dev",
+ "dev": "snowpack dev",
"build": "snowpack build"
}
```
diff --git a/examples/snowpack/src/pages/tutorials/react.md b/examples/snowpack/src/pages/tutorials/react.md
index 0b9f38701..101df7fe8 100644
--- a/examples/snowpack/src/pages/tutorials/react.md
+++ b/examples/snowpack/src/pages/tutorials/react.md
@@ -36,7 +36,7 @@ You can now head to the new directory and start Snowpack with the following two
```bash
cd react-snowpack
-npm start
+npm run dev
```
You should see your new website up and running!
diff --git a/examples/snowpack/src/pages/tutorials/svelte.md b/examples/snowpack/src/pages/tutorials/svelte.md
index dd6ae73f0..7659a4f3e 100644
--- a/examples/snowpack/src/pages/tutorials/svelte.md
+++ b/examples/snowpack/src/pages/tutorials/svelte.md
@@ -39,7 +39,7 @@ Head to the new `svelte-snowpack` directory and start Snowpack with the followin
```bash
cd svelte-snowpack
-npm start
+npm run dev
```
You should see your new website up and running!
@@ -75,7 +75,7 @@ module.exports = {
],
```
-Restart your Snowpack dev server to run it with the new configuration. Exit the process (ctrl + c in most Windows/Linux/macOS) and start it again with `npm start`.
+Restart your Snowpack dev server to run it with the new configuration. Exit the process (ctrl + c in most Windows/Linux/macOS) and start it again with `npm run dev`.
> 💡 Tip: Restart the Snowpack development server when you make configuration changes (changes to the `snowpack.config.js`).
@@ -192,7 +192,7 @@ The `mount` configuration changes where Snowpack scan for and builds files. Head
</body>
```
-You'll need to restart Snowpack (stop the process in terminal and then run `npm start` again) for configuration file changes. It should look exactly as it did before, but now using your brand new project folder layout
+You'll need to restart Snowpack (stop the process in terminal and then run `npm run dev` again) for configuration file changes. It should look exactly as it did before, but now using your brand new project folder layout
## Adding an animated Svelte Logo