-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
142 changed files
with
6,271 additions
and
3,727 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,47 +8,38 @@ on: | |
env: | ||
CI: true | ||
TEST: true | ||
PLAYWRIGHT_BROWSERS_PATH: 0 | ||
|
||
jobs: | ||
Lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: 6.23.2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: "14.x" | ||
cache: pnpm | ||
- run: pnpm install --frozen-lockfile | ||
- run: pnpm lint | ||
- run: pnpm check | ||
node-version: '14' | ||
- run: npm install | ||
- run: npm run lint | ||
- run: npm run check | ||
Tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: "14" | ||
node-version: '14' | ||
|
||
- name: Cache node modules | ||
id: playwright-cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.npm | ||
path: node_modules | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: ${{ runner.os }}-node- | ||
|
||
- name: Playwright install | ||
working-directory: packages/svemix | ||
- name: Install dependencies | ||
if: steps.playwright-cache.outputs.cache-hit != 'true' | ||
run: npx playwright install-deps | ||
|
||
- name: Dependencies install | ||
working-directory: packages/svemix | ||
run: npm install | ||
run: npm ci | ||
|
||
- name: Run tests | ||
working-directory: packages/svemix | ||
run: npm run test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
.DS_Store | ||
node_modules | ||
/node_modules | ||
node_modules/ | ||
/packages/svemix/node_modules | ||
/packages/svemix-preprocess/node_modules | ||
**node_modules | ||
/build | ||
/.svelte-kit | ||
/package | ||
.env | ||
.env.* | ||
!.env.example |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,18 @@ | ||
# Welcome to Svemix | ||
|
||
Svemix is a somewhat different framework than you're probably used to. | ||
It can be seen as a full-stack addition to Svelte(SvelteKit). | ||
It can be seen as an full-stack addition to Svelte(SvelteKit). | ||
Svemix provides you with server scripts inside your Svelte components/routes, which will be transformed into endpoints. | ||
Loader functions and actions similar to remix, which also run only on the server, improved developer experience, SEO handling, easy to use forms, sessions and so much more. | ||
|
||
[For an still early example please look into this repo](https://github.com/svemix/svemix-example). | ||
|
||
This repository contains the Svemix source code. This repo and project is a work in progress, so we appreciate your patience. | ||
|
||
|
||
## Documentation | ||
|
||
For documentation about Svemix (which is missing a lot of things), please visit [our website](https://svemix.com). | ||
|
||
|
||
## Contributing | ||
|
||
If you're interested in contributing code and/or documentation, feel free to open an Pull Request. A Contributing Guide will follow in the Future. | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../dist/plugin/pipeline/transformers/ssr.js → dist/plugin/pipeline/transformers/ssr.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
packages/svemix/dist/server/endpoint.d.ts → dist/server/endpoint.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 1 addition & 6 deletions
7
packages/svemix/dist/session/cookie.js → dist/session/cookie.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +0,0 @@ | ||
# create-svelte | ||
|
||
Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte); | ||
|
||
## Creating a project | ||
|
||
If you're seeing this, you've probably already done this step. Congrats! | ||
|
||
```bash | ||
# create a new project in the current directory | ||
npm init svelte@next | ||
|
||
# create a new project in my-app | ||
npm init svelte@next my-app | ||
``` | ||
|
||
> Note: the `@next` is temporary | ||
## Developing | ||
|
||
Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server: | ||
|
||
```bash | ||
npm run dev | ||
|
||
# or start the server and open the app in a new browser tab | ||
npm run dev -- --open | ||
``` | ||
|
||
## Building | ||
|
||
Before creating a production version of your app, install an [adapter](https://kit.svelte.dev/docs#adapters) for your target environment. Then: | ||
|
||
```bash | ||
npm run build | ||
``` | ||
|
||
> You can preview the built app with `npm run preview`, regardless of whether you installed an adapter. This should _not_ be used to serve your app in production. | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,18 @@ | ||
import { getHandler, postHandler } from 'svemix/server'; | ||
|
||
import { getHandler, postHandler } from "svemix/server"; | ||
import type { MetaFunction } from 'svemix/server'; | ||
export const prerender = true; | ||
|
||
|
||
import type { MetaFunction } from "svemix/server" | ||
export const prerender = true; | ||
export const loader = () => ({}); | ||
|
||
export const loader = () => ({}) | ||
export const metadata: MetaFunction<any> = () => ({ | ||
title: 'The Full-Stack addition to SvelteKit - SVEMIX', | ||
description: | ||
'The Full-Stack addition to SvelteKit. Write your server code inside .svelte files, handle sessions, forms and SEO easily.' | ||
}); | ||
|
||
export const metadata : MetaFunction<any> = () => ({ | ||
title: 'The Full-Stack addition to SvelteKit - SVEMIX', | ||
description: 'The Full-Stack addition to SvelteKit. Write your server code inside .svelte files, handle sessions, forms and SEO easily.' | ||
}) | ||
|
||
|
||
|
||
export const get = getHandler({ | ||
hasMeta: true, | ||
loader: loader, | ||
metadata: metadata | ||
}); | ||
|
||
|
||
|
||
export const get = getHandler({ | ||
hasMeta: true, | ||
loader: loader, | ||
metadata: metadata | ||
}); |
Oops, something went wrong.