diff --git a/apps/svelte.dev/.gitignore b/apps/svelte.dev/.gitignore index d5d05236ed..321615eddf 100644 --- a/apps/svelte.dev/.gitignore +++ b/apps/svelte.dev/.gitignore @@ -6,7 +6,6 @@ /src/routes/_home/Supporters/contributors.js /src/routes/_home/Supporters/donors.jpg /src/routes/_home/Supporters/donors.js -/static/svelte-app.json # git-repositories of synced docs go here /repos/ diff --git a/apps/svelte.dev/package.json b/apps/svelte.dev/package.json index f1afbe76d0..3c5b747365 100644 --- a/apps/svelte.dev/package.json +++ b/apps/svelte.dev/package.json @@ -50,7 +50,6 @@ "cookie": "^0.7.0", "d3-geo": "^3.1.0", "d3-geo-projection": "^4.0.0", - "do-not-zip": "^1.0.0", "flexsearch": "^0.7.43", "flru": "^1.0.2", "port-authority": "^2.0.1", diff --git a/apps/svelte.dev/scripts/svelte-app/.gitignore b/apps/svelte.dev/scripts/svelte-app/.gitignore deleted file mode 100644 index da93220bc3..0000000000 --- a/apps/svelte.dev/scripts/svelte-app/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -/node_modules/ -/public/build/ - -.DS_Store diff --git a/apps/svelte.dev/scripts/svelte-app/README.md b/apps/svelte.dev/scripts/svelte-app/README.md deleted file mode 100644 index a79c334034..0000000000 --- a/apps/svelte.dev/scripts/svelte-app/README.md +++ /dev/null @@ -1,105 +0,0 @@ -# This repo is no longer maintained. Consider using `npm init vite` and selecting the `svelte` option or — if you want a full-fledged app framework — use [SvelteKit](https://kit.svelte.dev), the official application framework for Svelte. - ---- - -# svelte app - -This is a project template for [Svelte](https://svelte.dev) apps. It lives at https://github.com/sveltejs/template. - -To create a new project based on this template using [degit](https://github.com/Rich-Harris/degit): - -```bash -npx degit sveltejs/template svelte-app -cd svelte-app -``` - -_Note that you will need to have [Node.js](https://nodejs.org) installed._ - -## Get started - -Install the dependencies... - -```bash -cd svelte-app -npm install -``` - -...then start [Rollup](https://rollupjs.org): - -```bash -npm run dev -``` - -Navigate to [localhost:8080](http://localhost:8080). You should see your app running. Edit a component file in `src`, save it, and reload the page to see your changes. - -By default, the server will only respond to requests from localhost. To allow connections from other computers, edit the `sirv` commands in package.json to include the option `--host 0.0.0.0`. - -If you're using [Visual Studio Code](https://code.visualstudio.com/) we recommend installing the official extension [Svelte for VS Code](https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode). If you are using other editors you may need to install a plugin in order to get syntax highlighting and intellisense. - -## Building and running in production mode - -To create an optimised version of the app: - -```bash -npm run build -``` - -You can run the newly built app with `npm run start`. This uses [sirv](https://github.com/lukeed/sirv), which is included in your package.json's `dependencies` so that the app will work when you deploy to platforms like [Heroku](https://heroku.com). - -## Single-page app mode - -By default, sirv will only respond to requests that match files in `public`. This is to maximise compatibility with static fileservers, allowing you to deploy your app anywhere. - -If you're building a single-page app (SPA) with multiple routes, sirv needs to be able to respond to requests for _any_ path. You can make it so by editing the `"start"` command in package.json: - -```js -"start": "sirv public --single" -``` - -## Using TypeScript - -This template comes with a script to set up a TypeScript development environment, you can run it immediately after cloning the template with: - -```bash -node scripts/setupTypeScript.js -``` - -Or remove the script via: - -```bash -rm scripts/setupTypeScript.js -``` - -If you want to use `baseUrl` or `path` aliases within your `tsconfig`, you need to set up `@rollup/plugin-alias` to tell Rollup to resolve the aliases. For more info, see [this StackOverflow question](https://stackoverflow.com/questions/63427935/setup-tsconfig-path-in-svelte). - -## Deploying to the web - -### With [Vercel](https://vercel.com) - -Install `vercel` if you haven't already: - -```bash -npm install -g vercel -``` - -Then, from within your project folder: - -```bash -cd public -vercel deploy --name my-project -``` - -### With [surge](https://surge.sh/) - -Install `surge` if you haven't already: - -```bash -npm install -g surge -``` - -Then, from within your project folder: - -```bash -npm run build -surge public my-project.surge.sh -``` diff --git a/apps/svelte.dev/scripts/svelte-app/package.json b/apps/svelte.dev/scripts/svelte-app/package.json deleted file mode 100644 index 715aa915cf..0000000000 --- a/apps/svelte.dev/scripts/svelte-app/package.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "svelte-app", - "version": "1.0.0", - "private": true, - "type": "module", - "scripts": { - "build": "rollup -c", - "dev": "rollup -c -w", - "start": "sirv public --no-clear" - }, - "devDependencies": { - "@rollup/plugin-commonjs": "^24.0.0", - "@rollup/plugin-node-resolve": "^15.0.0", - "@rollup/plugin-terser": "^0.4.0", - "rollup": "^3.15.0", - "rollup-plugin-css-only": "^4.3.0", - "rollup-plugin-livereload": "^2.0.0", - "rollup-plugin-svelte": "^7.1.2", - "svelte": "^3.55.0" - }, - "dependencies": { - "sirv-cli": "^2.0.0" - } -} diff --git a/apps/svelte.dev/scripts/svelte-app/public/favicon.png b/apps/svelte.dev/scripts/svelte-app/public/favicon.png deleted file mode 100644 index 7e6f5eb5a2..0000000000 Binary files a/apps/svelte.dev/scripts/svelte-app/public/favicon.png and /dev/null differ diff --git a/apps/svelte.dev/scripts/svelte-app/public/global.css b/apps/svelte.dev/scripts/svelte-app/public/global.css deleted file mode 100644 index c29160fa70..0000000000 --- a/apps/svelte.dev/scripts/svelte-app/public/global.css +++ /dev/null @@ -1,68 +0,0 @@ -html, -body { - position: relative; - width: 100%; - height: 100%; -} - -body { - color: #333; - margin: 0; - padding: 8px; - box-sizing: border-box; - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, - 'Helvetica Neue', sans-serif; -} - -a { - color: rgb(0, 100, 200); - text-decoration: none; -} - -a:hover { - text-decoration: underline; -} - -a:visited { - color: rgb(0, 80, 160); -} - -label { - display: block; -} - -input, -button, -select, -textarea { - font-family: inherit; - font-size: inherit; - -webkit-padding: 0.4em 0; - padding: 0.4em; - margin: 0 0 0.5em 0; - box-sizing: border-box; - border: 1px solid #ccc; - border-radius: 2px; -} - -input:disabled { - color: #ccc; -} - -button { - color: #333; - background-color: #f4f4f4; - outline: none; -} - -button:disabled { - color: #999; -} - -button:not(:disabled):active { - background-color: #ddd; -} - -button:focus { - border-color: #666; -} diff --git a/apps/svelte.dev/scripts/svelte-app/public/index.html b/apps/svelte.dev/scripts/svelte-app/public/index.html deleted file mode 100644 index df75bae420..0000000000 --- a/apps/svelte.dev/scripts/svelte-app/public/index.html +++ /dev/null @@ -1,17 +0,0 @@ - - -
- - - -