From 472c0e5ac70a80aab49739df3edfbe4bb2c5bf2c Mon Sep 17 00:00:00 2001 From: "Fred K. Schott" Date: Wed, 18 Aug 2021 22:07:34 -0700 Subject: [PATCH] walk-back examples/snowpack changes --- examples/snowpack/README.md | 2 +- examples/snowpack/package.json | 1 - .../snowpack/src/pages/guides/https-ssl-certificates.md | 2 +- examples/snowpack/src/pages/tutorials/getting-started.md | 6 +++--- examples/snowpack/src/pages/tutorials/quick-start.md | 4 ++-- examples/snowpack/src/pages/tutorials/react.md | 2 +- examples/snowpack/src/pages/tutorials/svelte.md | 6 +++--- 7 files changed, 11 insertions(+), 12 deletions(-) diff --git a/examples/snowpack/README.md b/examples/snowpack/README.md index d3197882aa..bde1f08268 100644 --- a/examples/snowpack/README.md +++ b/examples/snowpack/README.md @@ -27,7 +27,7 @@ npm install 3. Run the Astro dev environment. ```shell -npm run dev +npm start ``` 4. Build the website. (Not yet working.) diff --git a/examples/snowpack/package.json b/examples/snowpack/package.json index 6642d76730..2d6121895f 100644 --- a/examples/snowpack/package.json +++ b/examples/snowpack/package.json @@ -3,7 +3,6 @@ "version": "0.0.1", "private": true, "scripts": { - "dev": "astro dev", "start": "astro dev", "build": "astro build", "test": "jest /__test__/", diff --git a/examples/snowpack/src/pages/guides/https-ssl-certificates.md b/examples/snowpack/src/pages/guides/https-ssl-certificates.md index 305d2ac1cc..512c6524f9 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: ``` -npm run dev -- --secure +npm start -- --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 932a7b5577..d3bb7c6e0b 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": { -+ "dev": "snowpack dev", ++ "start": "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 run dev +npm start ``` 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": { - "dev": "snowpack dev", + "start": "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 116a83ad8e..db47b2968e 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 run dev (or: "yarn run ...", "pnpm run ...") +// npm start (or: "yarn run ...", "pnpm run ...") "scripts": { - "dev": "snowpack dev", + "start": "snowpack dev", "build": "snowpack build" } ``` diff --git a/examples/snowpack/src/pages/tutorials/react.md b/examples/snowpack/src/pages/tutorials/react.md index 101df7fe85..0b9f387018 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 run dev +npm start ``` 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 7659a4f3e2..dd6ae73f03 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 run dev +npm start ``` 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 run dev`. +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`. > 💡 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 ``` -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 +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 ## Adding an animated Svelte Logo