diff options
author | 2021-08-18 22:07:34 -0700 | |
---|---|---|
committer | 2021-08-18 22:07:34 -0700 | |
commit | 472c0e5ac70a80aab49739df3edfbe4bb2c5bf2c (patch) | |
tree | 87115fa13e5b19bef70ca3caefcbaa820b791128 /examples/snowpack/src | |
parent | e66872125d6a5e5246aeb7a2f1d5784d5c5493b7 (diff) | |
download | astro-472c0e5ac70a80aab49739df3edfbe4bb2c5bf2c.tar.gz astro-472c0e5ac70a80aab49739df3edfbe4bb2c5bf2c.tar.zst astro-472c0e5ac70a80aab49739df3edfbe4bb2c5bf2c.zip |
walk-back examples/snowpack changes
Diffstat (limited to 'examples/snowpack/src')
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 305d2ac1c..512c6524f 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 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 932a7b557..d3bb7c6e0 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 116a83ad8..db47b2968 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 101df7fe8..0b9f38701 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 7659a4f3e..dd6ae73f0 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 </body> ``` -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 |