diff --git a/docs_src/.env.default b/docs_src/.env.default deleted file mode 100644 index 45ad79b..0000000 --- a/docs_src/.env.default +++ /dev/null @@ -1,4 +0,0 @@ -GITHUB_CLIENT_ID= -GITHUB_CLIENT_SECRET= -BASEURL=http://localhost:3000 -SESSION_SECRET=correcthorsebatterystaple \ No newline at end of file diff --git a/docs_src/.gitignore b/docs_src/.gitignore deleted file mode 100644 index ffb52a2..0000000 --- a/docs_src/.gitignore +++ /dev/null @@ -1,6 +0,0 @@ -.DS_Store -node_modules -yarn-error.log -.env -/cypress/screenshots/ -/__sapper__/ diff --git a/docs_src/Dockerfile b/docs_src/Dockerfile deleted file mode 100644 index 97d331e..0000000 --- a/docs_src/Dockerfile +++ /dev/null @@ -1,13 +0,0 @@ -FROM node:10.15-slim - -# Create app directory -WORKDIR /usr/src/app - -COPY package*.json ./ -RUN npm install -COPY . . - -RUN npm run build - -EXPOSE 3000 -CMD npm run start \ No newline at end of file diff --git a/docs_src/LICENSE b/docs_src/LICENSE deleted file mode 100644 index 9eae404..0000000 --- a/docs_src/LICENSE +++ /dev/null @@ -1,42 +0,0 @@ - ---- - -The site CSS, html, design and structure are from the Svelte Project and are under the following license: - -Copyright (c) 2016 [these people](https://github.com/sveltejs/svelte/graphs/contributors) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - ------- - -Guide content was ported from the nativescript vue documentation which is covered by this license: - -MIT License - -Copyright (c) 2019 NativeScript-Vue - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - ----- - -Logo, Blog posts and original contributions to the documents are covered by the license in the parent folder. diff --git a/docs_src/README.md b/docs_src/README.md deleted file mode 100644 index d120200..0000000 --- a/docs_src/README.md +++ /dev/null @@ -1,88 +0,0 @@ -# sapper-template - -The default [Sapper](https://github.com/sveltejs/sapper) template, with branches for Rollup and webpack. To clone it and get started: - -```bash -# for Rollup -npx degit sveltejs/sapper-template#rollup my-app -# for webpack -npx degit sveltejs/sapper-template#webpack my-app -cd my-app -npm install # or yarn! -npm run dev -``` - -Open up [localhost:3000](http://localhost:3000) and start clicking around. - -Consult [sapper.svelte.technology](https://sapper.svelte.technology) for help getting started. - - -## Structure - -Sapper expects to find two directories in the root of your project — `src` and `static`. - - -### src - -The [src](src) directory contains the entry points for your app — `client.js`, `server.js` and (optionally) a `service-worker.js` — along with a `template.html` file and a `routes` directory. - - -#### src/routes - -This is the heart of your Sapper app. There are two kinds of routes — *pages*, and *server routes*. - -**Pages** are Svelte components written in `.html` files. When a user first visits the application, they will be served a server-rendered version of the route in question, plus some JavaScript that 'hydrates' the page and initialises a client-side router. From that point forward, navigating to other pages is handled entirely on the client for a fast, app-like feel. (Sapper will preload and cache the code for these subsequent pages, so that navigation is instantaneous.) - -**Server routes** are modules written in `.js` files, that export functions corresponding to HTTP methods. Each function receives Express `request` and `response` objects as arguments, plus a `next` function. This is useful for creating a JSON API, for example. - -There are three simple rules for naming the files that define your routes: - -* A file called `src/routes/about.html` corresponds to the `/about` route. A file called `src/routes/blog/[slug].html` corresponds to the `/blog/:slug` route, in which case `params.slug` is available to the route -* The file `src/routes/index.html` (or `src/routes/index.js`) corresponds to the root of your app. `src/routes/about/index.html` is treated the same as `src/routes/about.html`. -* Files and directories with a leading underscore do *not* create routes. This allows you to colocate helper modules and components with the routes that depend on them — for example you could have a file called `src/routes/_helpers/datetime.js` and it would *not* create a `/_helpers/datetime` route - - -### static - -The [static](static) directory contains any static assets that should be available. These are served using [sirv](https://github.com/lukeed/sirv). - -In your [service-worker.js](app/service-worker.js) file, you can import these as `files` from the generated manifest... - -```js -import { files } from '../__sapper__/service-worker.js'; -``` - -...so that you can cache them (though you can choose not to, for example if you don't want to cache very large files). - - -## Bundler config - -Sapper uses Rollup or webpack to provide code-splitting and dynamic imports, as well as compiling your Svelte components. With webpack, it also provides hot module reloading. As long as you don't do anything daft, you can edit the configuration files to add whatever plugins you'd like. - - -## Production mode and deployment - -To start a production version of your app, run `npm run build && npm start`. This will disable live reloading, and activate the appropriate bundler plugins. - -You can deploy your application to any environment that supports Node 8 or above. As an example, to deploy to [Now](https://zeit.co/now), run these commands: - -```bash -npm install -g now -now -``` - - -## Using external components with webpack - -When using Svelte components installed from npm, such as [@sveltejs/svelte-virtual-list](https://github.com/sveltejs/svelte-virtual-list), Svelte needs the original component source (rather than any precompiled JavaScript that ships with the component). This allows the component to be rendered server-side, and also keeps your client-side app smaller. - -Because of that, it's essential that webpack doesn't treat the package as an *external dependency*. You can either modify the `externals` option in [webpack/server.config.js](webpack/server.config.js), or simply install the package to `devDependencies` rather than `dependencies`, which will cause it to get bundled (and therefore compiled) with your app: - -```bash -yarn add -D @sveltejs/svelte-virtual-list -``` - - -## Bugs and feedback - -Sapper is in early development, and may have the odd rough edge here and there. Please be vocal over on the [Sapper issue tracker](https://github.com/sveltejs/sapper/issues). diff --git a/docs_src/content/blog/2019-02-28-svelte-goes-native.md b/docs_src/content/blog/2019-02-28-svelte-goes-native.md deleted file mode 100644 index 11e2efd..0000000 --- a/docs_src/content/blog/2019-02-28-svelte-goes-native.md +++ /dev/null @@ -1,47 +0,0 @@ ---- -title: Svelte Goes Native -description: Svelte comes to NativeScript -pubdate: 2019-02-28 -author: Halfnelson -authorURL: https://twitter.com/halfnelson_au/ ---- - -Svelte is a next gen web framework that compiles your component code into fast, efficient, vanilla javascript DOM manipulations. - -Nativescript takes the native api surface of iOS and Android and exposes them as vanilla javascript objects. - -Svelte Native is a library that exposes NativeScripts view objects as DOM elements which can be manipulated by Svelte components. - -![nativescript + svelte = svelte-native](/logos_combined.svg) - - - -### But doesn't NativeScript already offer Vue and Angular support? - -It does!, and they are supported by the nativescript developers. However the marriage of Svelte's tiny payload size, low boilerplate component definitions, and hyper efficient DOM updates seem like a great fit for mobile development. - - - -### What does it look like - -```html - - - -