diff --git a/README.md b/README.md
index 9343bb2..6680745 100644
--- a/README.md
+++ b/README.md
@@ -155,7 +155,6 @@ Directory `components-demo` contains demo packages that show usage of icon compo
- [Vue 2 demo](./components-demo/vue2-demo/) - demo for Vue 2 component. Run `npm run build` to build demo and `npm run serve` to start it.
- [Svelte demo](./components-demo/svelte-demo/) - demo for Svelte component. Run `npm run dev` to start demo.
- [Svelte demo with Vite](./components-demo/svelte-demo-vite/) - demo for Svelte component using Vite. Run `npm run dev` to start demo.
-- [Sapper demo](./components-demo/sapper-demo/) - demo for Sapper, using Svelte component on the server and in the browser. Run `npm run dev` to start the demo (deprecated, use SvelteKit instead of Sapper).
- [SvelteKit demo](./components-demo/sveltekit-demo/) - demo for SvelteKit, using Svelte component on the server and in the browser. Run `npm run dev` to start the demo.
- [Ember demo](./components-demo/ember-demo/) - demo for Ember component. Run `npm run build` to build demo and `npm run start` to start it.
diff --git a/components-demo/sapper-demo/.gitignore b/components-demo/sapper-demo/.gitignore
deleted file mode 100644
index 5aea041..0000000
--- a/components-demo/sapper-demo/.gitignore
+++ /dev/null
@@ -1,6 +0,0 @@
-.DS_Store
-/node_modules/
-/src/node_modules/@sapper/
-yarn-error.log
-/cypress/screenshots/
-/__sapper__/
diff --git a/components-demo/sapper-demo/README.md b/components-demo/sapper-demo/README.md
deleted file mode 100644
index 51eb7aa..0000000
--- a/components-demo/sapper-demo/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# sapper-template
-
-The default [Sapper](https://github.com/sveltejs/sapper) template, available for Rollup and webpack.
diff --git a/components-demo/sapper-demo/cypress.json b/components-demo/sapper-demo/cypress.json
deleted file mode 100644
index f5622fa..0000000
--- a/components-demo/sapper-demo/cypress.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "baseUrl": "http://localhost:3000",
- "video": false
-}
\ No newline at end of file
diff --git a/components-demo/sapper-demo/cypress/fixtures/example.json b/components-demo/sapper-demo/cypress/fixtures/example.json
deleted file mode 100644
index da18d93..0000000
--- a/components-demo/sapper-demo/cypress/fixtures/example.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "name": "Using fixtures to represent data",
- "email": "hello@cypress.io",
- "body": "Fixtures are a great way to mock data for responses to routes"
-}
\ No newline at end of file
diff --git a/components-demo/sapper-demo/cypress/integration/spec.js b/components-demo/sapper-demo/cypress/integration/spec.js
deleted file mode 100644
index 9a7140d..0000000
--- a/components-demo/sapper-demo/cypress/integration/spec.js
+++ /dev/null
@@ -1,19 +0,0 @@
-describe('Sapper template app', () => {
- beforeEach(() => {
- cy.visit('/')
- });
-
- it('has the correct
', () => {
- cy.contains('h1', 'Great success!')
- });
-
- it('navigates to /about', () => {
- cy.get('nav a').contains('about').click();
- cy.url().should('include', '/about');
- });
-
- it('navigates to /blog', () => {
- cy.get('nav a').contains('blog').click();
- cy.url().should('include', '/blog');
- });
-});
\ No newline at end of file
diff --git a/components-demo/sapper-demo/cypress/plugins/index.js b/components-demo/sapper-demo/cypress/plugins/index.js
deleted file mode 100644
index fd170fb..0000000
--- a/components-demo/sapper-demo/cypress/plugins/index.js
+++ /dev/null
@@ -1,17 +0,0 @@
-// ***********************************************************
-// This example plugins/index.js can be used to load plugins
-//
-// You can change the location of this file or turn off loading
-// the plugins file with the 'pluginsFile' configuration option.
-//
-// You can read more here:
-// https://on.cypress.io/plugins-guide
-// ***********************************************************
-
-// This function is called when a project is opened or re-opened (e.g. due to
-// the project's config changing)
-
-module.exports = (on, config) => {
- // `on` is used to hook into various events Cypress emits
- // `config` is the resolved Cypress config
-}
diff --git a/components-demo/sapper-demo/cypress/support/commands.js b/components-demo/sapper-demo/cypress/support/commands.js
deleted file mode 100644
index c1f5a77..0000000
--- a/components-demo/sapper-demo/cypress/support/commands.js
+++ /dev/null
@@ -1,25 +0,0 @@
-// ***********************************************
-// This example commands.js shows you how to
-// create various custom commands and overwrite
-// existing commands.
-//
-// For more comprehensive examples of custom
-// commands please read more here:
-// https://on.cypress.io/custom-commands
-// ***********************************************
-//
-//
-// -- This is a parent command --
-// Cypress.Commands.add("login", (email, password) => { ... })
-//
-//
-// -- This is a child command --
-// Cypress.Commands.add("drag", { prevSubject: 'element'}, (subject, options) => { ... })
-//
-//
-// -- This is a dual command --
-// Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... })
-//
-//
-// -- This is will overwrite an existing command --
-// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... })
diff --git a/components-demo/sapper-demo/cypress/support/index.js b/components-demo/sapper-demo/cypress/support/index.js
deleted file mode 100644
index d68db96..0000000
--- a/components-demo/sapper-demo/cypress/support/index.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// ***********************************************************
-// This example support/index.js is processed and
-// loaded automatically before your test files.
-//
-// This is a great place to put global configuration and
-// behavior that modifies Cypress.
-//
-// You can change the location of this file or turn off
-// automatically serving support files with the
-// 'supportFile' configuration option.
-//
-// You can read more here:
-// https://on.cypress.io/configuration
-// ***********************************************************
-
-// Import commands.js using ES2015 syntax:
-import './commands'
-
-// Alternatively you can use CommonJS syntax:
-// require('./commands')
diff --git a/components-demo/sapper-demo/package.json b/components-demo/sapper-demo/package.json
deleted file mode 100644
index d4fe6be..0000000
--- a/components-demo/sapper-demo/package.json
+++ /dev/null
@@ -1,39 +0,0 @@
-{
- "name": "@iconify-demo/sapper",
- "description": "Sapper demo for Iconify for Svelte",
- "version": "0.0.1",
- "private": true,
- "scripts": {
- "dev": "sapper dev",
- "build": "sapper build --legacy",
- "export": "sapper export --legacy",
- "start": "node __sapper__/build",
- "cy:run": "cypress run",
- "cy:open": "cypress open",
- "test": "run-p --race dev cy:run"
- },
- "dependencies": {
- "compression": "^1.7.4",
- "polka": "^0.5.2",
- "sirv": "^2.0.2"
- },
- "devDependencies": {
- "@babel/core": "^7.21.4",
- "@babel/plugin-syntax-dynamic-import": "^7.8.3",
- "@babel/plugin-transform-runtime": "^7.21.4",
- "@babel/preset-env": "^7.21.4",
- "@babel/runtime": "^7.21.0",
- "@iconify-icons/openmoji": "^1.2.20",
- "@iconify/svelte": "workspace:*",
- "@rollup/plugin-babel": "^6.0.3",
- "@rollup/plugin-commonjs": "^24.0.1",
- "@rollup/plugin-node-resolve": "^15.0.1",
- "@rollup/plugin-replace": "^5.0.2",
- "npm-run-all": "^4.1.5",
- "rollup": "^3.20.2",
- "rollup-plugin-svelte": "^7.1.4",
- "rollup-plugin-terser": "^7.0.2",
- "sapper": "^0.29.3",
- "svelte": "^3.58.0"
- }
-}
diff --git a/components-demo/sapper-demo/rollup.config.js b/components-demo/sapper-demo/rollup.config.js
deleted file mode 100644
index 8ebfb18..0000000
--- a/components-demo/sapper-demo/rollup.config.js
+++ /dev/null
@@ -1,120 +0,0 @@
-import resolve from '@rollup/plugin-node-resolve';
-import replace from '@rollup/plugin-replace';
-import commonjs from '@rollup/plugin-commonjs';
-import svelte from 'rollup-plugin-svelte';
-import babel from '@rollup/plugin-babel';
-import { terser } from 'rollup-plugin-terser';
-import config from 'sapper/config/rollup.js';
-import pkg from './package.json';
-
-const mode = process.env.NODE_ENV;
-const dev = mode === 'development';
-const legacy = !!process.env.SAPPER_LEGACY_BUILD;
-
-const onwarn = (warning, onwarn) =>
- (warning.code === 'MISSING_EXPORT' && /'preload'/.test(warning.message)) ||
- (warning.code === 'CIRCULAR_DEPENDENCY' &&
- /[/\\]@sapper[/\\]/.test(warning.message)) ||
- onwarn(warning);
-
-export default {
- client: {
- input: config.client.input(),
- output: config.client.output(),
- plugins: [
- replace({
- 'process.browser': true,
- 'process.env.NODE_ENV': JSON.stringify(mode),
- }),
- svelte({
- compilerOptions: {
- dev,
- hydratable: true,
- // emitCss: true,
- },
- }),
- resolve({
- browser: true,
- dedupe: ['svelte'],
- }),
- commonjs(),
-
- legacy &&
- babel({
- extensions: ['.js', '.mjs', '.html', '.svelte'],
- babelHelpers: 'runtime',
- exclude: ['node_modules/@babel/**'],
- presets: [
- [
- '@babel/preset-env',
- {
- targets: '> 0.25%, not dead',
- },
- ],
- ],
- plugins: [
- '@babel/plugin-syntax-dynamic-import',
- [
- '@babel/plugin-transform-runtime',
- {
- useESModules: true,
- },
- ],
- ],
- }),
-
- !dev &&
- terser({
- module: true,
- }),
- ],
-
- preserveEntrySignatures: false,
- onwarn,
- },
-
- server: {
- input: config.server.input(),
- output: config.server.output(),
- plugins: [
- replace({
- 'process.browser': false,
- 'process.env.NODE_ENV': JSON.stringify(mode),
- }),
- svelte({
- compilerOptions: {
- generate: 'ssr',
- hydratable: true,
- dev,
- },
- }),
- resolve({
- dedupe: ['svelte'],
- }),
- commonjs(),
- ],
- external: Object.keys(pkg.dependencies).concat(
- require('module').builtinModules
- ),
-
- preserveEntrySignatures: 'strict',
- onwarn,
- },
-
- serviceworker: {
- input: config.serviceworker.input(),
- output: config.serviceworker.output(),
- plugins: [
- resolve(),
- replace({
- 'process.browser': true,
- 'process.env.NODE_ENV': JSON.stringify(mode),
- }),
- commonjs(),
- !dev && terser(),
- ],
-
- preserveEntrySignatures: false,
- onwarn,
- },
-};
diff --git a/components-demo/sapper-demo/src/client.js b/components-demo/sapper-demo/src/client.js
deleted file mode 100644
index cec9172..0000000
--- a/components-demo/sapper-demo/src/client.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import * as sapper from '@sapper/app';
-
-sapper.start({
- target: document.querySelector('#sapper')
-});
\ No newline at end of file
diff --git a/components-demo/sapper-demo/src/components/Nav.svelte b/components-demo/sapper-demo/src/components/Nav.svelte
deleted file mode 100644
index fefaaf9..0000000
--- a/components-demo/sapper-demo/src/components/Nav.svelte
+++ /dev/null
@@ -1,89 +0,0 @@
-
-
-
-
-
diff --git a/components-demo/sapper-demo/src/routes/_error.svelte b/components-demo/sapper-demo/src/routes/_error.svelte
deleted file mode 100644
index 320e587..0000000
--- a/components-demo/sapper-demo/src/routes/_error.svelte
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
-
- {status}
-
-
-
{status}
-
-
{error.message}
-
-{#if dev && error.stack}
-
{error.stack}
-{/if}
diff --git a/components-demo/sapper-demo/src/routes/_layout.svelte b/components-demo/sapper-demo/src/routes/_layout.svelte
deleted file mode 100644
index 8432299..0000000
--- a/components-demo/sapper-demo/src/routes/_layout.svelte
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/components-demo/sapper-demo/src/routes/about.svelte b/components-demo/sapper-demo/src/routes/about.svelte
deleted file mode 100644
index e1734b3..0000000
--- a/components-demo/sapper-demo/src/routes/about.svelte
+++ /dev/null
@@ -1,7 +0,0 @@
-
- About
-
-
-
About this site
-
-
This is the 'about' page. There's not much here.
\ No newline at end of file
diff --git a/components-demo/sapper-demo/src/routes/blog/[slug].json.js b/components-demo/sapper-demo/src/routes/blog/[slug].json.js
deleted file mode 100644
index 176890d..0000000
--- a/components-demo/sapper-demo/src/routes/blog/[slug].json.js
+++ /dev/null
@@ -1,28 +0,0 @@
-import posts from './_posts.js';
-
-const lookup = new Map();
-posts.forEach(post => {
- lookup.set(post.slug, JSON.stringify(post));
-});
-
-export function get(req, res, next) {
- // the `slug` parameter is available because
- // this file is called [slug].json.js
- const { slug } = req.params;
-
- if (lookup.has(slug)) {
- res.writeHead(200, {
- 'Content-Type': 'application/json'
- });
-
- res.end(lookup.get(slug));
- } else {
- res.writeHead(404, {
- 'Content-Type': 'application/json'
- });
-
- res.end(JSON.stringify({
- message: `Not found`
- }));
- }
-}
diff --git a/components-demo/sapper-demo/src/routes/blog/[slug].svelte b/components-demo/sapper-demo/src/routes/blog/[slug].svelte
deleted file mode 100644
index 9e0c419..0000000
--- a/components-demo/sapper-demo/src/routes/blog/[slug].svelte
+++ /dev/null
@@ -1,64 +0,0 @@
-
-
-
-
-
-
-
- {post.title}
-
-
-
{post.title}
-
-
- {@html post.html}
-
diff --git a/components-demo/sapper-demo/src/routes/blog/_posts.js b/components-demo/sapper-demo/src/routes/blog/_posts.js
deleted file mode 100644
index 256c71e..0000000
--- a/components-demo/sapper-demo/src/routes/blog/_posts.js
+++ /dev/null
@@ -1,92 +0,0 @@
-// Ordinarily, you'd generate this data from markdown files in your
-// repo, or fetch them from a database of some kind. But in order to
-// avoid unnecessary dependencies in the starter template, and in the
-// service of obviousness, we're just going to leave it here.
-
-// This file is called `_posts.js` rather than `posts.js`, because
-// we don't want to create an `/blog/posts` route — the leading
-// underscore tells Sapper not to do that.
-
-const posts = [
- {
- title: 'What is Sapper?',
- slug: 'what-is-sapper',
- html: `
-
First, you have to know what Svelte is. Svelte is a UI framework with a bold new idea: rather than providing a library that you write code with (like React or Vue, for example), it's a compiler that turns your components into highly optimized vanilla JavaScript. If you haven't already read the introductory blog post, you should!
-
-
Sapper is a Next.js-style framework (more on that here) built around Svelte. It makes it embarrassingly easy to create extremely high performance web apps. Out of the box, you get:
-
-
-
Code-splitting, dynamic imports and hot module replacement, powered by webpack
-
Server-side rendering (SSR) with client-side hydration
-
Service worker for offline support, and all the PWA bells and whistles
-
The nicest development experience you've ever had, or your money back
-
-
-
It's implemented as Express middleware. Everything is set up and waiting for you to get started, but you keep complete control over the server, service worker, webpack config and everything else, so it's as flexible as you need it to be.
- `
- },
-
- {
- title: 'How to use Sapper',
- slug: 'how-to-use-sapper',
- html: `
-
In war, the soldiers who build bridges, repair roads, clear minefields and conduct demolitions — all under combat conditions — are known as sappers.
-
-
For web developers, the stakes are generally lower than those for combat engineers. But we face our own hostile environment: underpowered devices, poor network connections, and the complexity inherent in front-end engineering. Sapper, which is short for Svelte app maker, is your courageous and dutiful ally.
- `
- },
-
- {
- title: 'How is Sapper different from Next.js?',
- slug: 'how-is-sapper-different-from-next',
- html: `
-
Next.js is a React framework from Zeit, and is the inspiration for Sapper. There are a few notable differences, however:
-
-
-
It's powered by Svelte instead of React, so it's faster and your apps are smaller
-
Instead of route masking, we encode route parameters in filenames. For example, the page you're looking at right now is src/routes/blog/[slug].svelte
-
As well as pages (Svelte components, which render on server or client), you can create server routes in your routes directory. These are just .js files that export functions corresponding to HTTP methods, and receive Express request and response objects as arguments. This makes it very easy to, for example, add a JSON API such as the one powering this very page
-
Links are just <a> elements, rather than framework-specific <Link> components. That means, for example, that this link right here, despite being inside a blob of HTML, works with the router as you'd expect.
-
- `
- },
-
- {
- title: 'How can I get involved?',
- slug: 'how-can-i-get-involved',
- html: `
-
We're so glad you asked! Come on over to the Svelte and Sapper repos, and join us in the Discord chatroom. Everyone is welcome, especially you!
Icon above and icons in navigation are rendered by Sapper on server side.
-
See components/Nav.svelte and routes/index.svelte
-
-
- List of blog posts (click "Blog" in navigation) uses same icon multiple times.
- It does not make sense to render it on server side and send multiple SVG
- elements to browser, so icon data is loaded asynchronously and component is
- rendered on client side.
-
-
See routes/blog/index.svelte
diff --git a/components-demo/sapper-demo/src/server.js b/components-demo/sapper-demo/src/server.js
deleted file mode 100644
index c77f593..0000000
--- a/components-demo/sapper-demo/src/server.js
+++ /dev/null
@@ -1,17 +0,0 @@
-import sirv from 'sirv';
-import polka from 'polka';
-import compression from 'compression';
-import * as sapper from '@sapper/server';
-
-const { PORT, NODE_ENV } = process.env;
-const dev = NODE_ENV === 'development';
-
-polka() // You can also use Express
- .use(
- compression({ threshold: 0 }),
- sirv('static', { dev }),
- sapper.middleware()
- )
- .listen(PORT, err => {
- if (err) console.log('error', err);
- });
diff --git a/components-demo/sapper-demo/src/service-worker.js b/components-demo/sapper-demo/src/service-worker.js
deleted file mode 100644
index 2289a55..0000000
--- a/components-demo/sapper-demo/src/service-worker.js
+++ /dev/null
@@ -1,82 +0,0 @@
-import { timestamp, files, shell, routes } from '@sapper/service-worker';
-
-const ASSETS = `cache${timestamp}`;
-
-// `shell` is an array of all the files generated by the bundler,
-// `files` is an array of everything in the `static` directory
-const to_cache = shell.concat(files);
-const cached = new Set(to_cache);
-
-self.addEventListener('install', event => {
- event.waitUntil(
- caches
- .open(ASSETS)
- .then(cache => cache.addAll(to_cache))
- .then(() => {
- self.skipWaiting();
- })
- );
-});
-
-self.addEventListener('activate', event => {
- event.waitUntil(
- caches.keys().then(async keys => {
- // delete old caches
- for (const key of keys) {
- if (key !== ASSETS) await caches.delete(key);
- }
-
- self.clients.claim();
- })
- );
-});
-
-self.addEventListener('fetch', event => {
- if (event.request.method !== 'GET' || event.request.headers.has('range')) return;
-
- const url = new URL(event.request.url);
-
- // don't try to handle e.g. data: URIs
- if (!url.protocol.startsWith('http')) return;
-
- // ignore dev server requests
- if (url.hostname === self.location.hostname && url.port !== self.location.port) return;
-
- // always serve static files and bundler-generated assets from cache
- if (url.host === self.location.host && cached.has(url.pathname)) {
- event.respondWith(caches.match(event.request));
- return;
- }
-
- // for pages, you might want to serve a shell `service-worker-index.html` file,
- // which Sapper has generated for you. It's not right for every
- // app, but if it's right for yours then uncomment this section
- /*
- if (url.origin === self.origin && routes.find(route => route.pattern.test(url.pathname))) {
- event.respondWith(caches.match('/service-worker-index.html'));
- return;
- }
- */
-
- if (event.request.cache === 'only-if-cached') return;
-
- // for everything else, try the network first, falling back to
- // cache if the user is offline. (If the pages never change, you
- // might prefer a cache-first approach to a network-first one.)
- event.respondWith(
- caches
- .open(`offline${timestamp}`)
- .then(async cache => {
- try {
- const response = await fetch(event.request);
- cache.put(event.request, response.clone());
- return response;
- } catch(err) {
- const response = await cache.match(event.request);
- if (response) return response;
-
- throw err;
- }
- })
- );
-});
diff --git a/components-demo/sapper-demo/src/template.html b/components-demo/sapper-demo/src/template.html
deleted file mode 100644
index 7c0f817..0000000
--- a/components-demo/sapper-demo/src/template.html
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
-
-
-
-
- %sapper.base%
-
-
-
-
-
-
- %sapper.scripts%
-
-
- %sapper.styles%
-
-
- %sapper.head%
-
-
-
-