Skip to content

Commit

Permalink
next.480 to develop (#9)
Browse files Browse the repository at this point in the history
* #8 Initialize copy of next.471
* #8 Fix sveltekit demo with proper hooks
* #8 Update sveltejs/kit to next.480
* #8 Separate route.js condition
* Update readme
  • Loading branch information
daison12006013 authored Sep 10, 2022
1 parent 0579fcc commit 5771ac2
Show file tree
Hide file tree
Showing 74 changed files with 9,601 additions and 8,726 deletions.
13 changes: 13 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
8 changes: 4 additions & 4 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ module.exports = {
ignorePatterns: ['*.cjs'],
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
settings: {
'svelte3/typescript': () => require('typescript')
'svelte3/typescript': () => require('typescript'),
},
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020
ecmaVersion: 2020,
},
env: {
browser: true,
es2017: true,
node: true
}
node: true,
},
}
17 changes: 13 additions & 4 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
.svelte-kit/**
static/**
build/**
node_modules/**
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
5 changes: 4 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"useTabs": false,
"useTabs": true,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
"pluginSearchDirs": ["."],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }],
"semi": false
}
48 changes: 28 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,44 @@
# SvelteKit Projects

This project contains the lists of tools used
The copy of this branch should have at least the `v1.0.0-next.480` of `@sveltejs/kit`

- [SvelteKit](https://github.com/sveltejs/kit)
- [TailwindCSS](https://tailwindcss.com/)
- [Hooks](/src/hooks/)
- [Laravel Sanctum](https://laravel.com/docs/sanctum)
## ./make and src/route.js

## DEMO
Dynamic way of serving the `./src/routes/admin`, we've added a condition inside our `src/route.js` to pre-determine the folder we want.

- [Admin](https://sveltekit-windmill-admin.vercel.app/)
- [Blog / Personal Site](https://daison.vercel.app/)
```bash
# this demonstrates a fake logged in
$> ./make admin dev
$> ./make admin-in dev

# this demonstrates a fake logged out
$> ./make admin-out dev

## Start the server and open the app in a new browser tab
# this connects to your laravel sanctum
$> ./make admin-laravel-sanctum dev
```

- To build only for admin
The above command is similar to what it looks like below

```bash
$> ./make admin dev

# this is equivalent to
$> ROUTE_FOLDER=admin npm run dev
```

## Progress
We've stored more route projects, such as the original `demo` of sveltekit and my own resumé `blog`

```bash
# this demonstrates my bio and resumé
$> ./make blog dev

# this demonstrates the original sveltekit counter + todo
$> ./make demo dev
```

## Demo

- Separated templates
- [x] Blog
- [x] Admin
- [x] SvelteKit Demo
- Separated components (inputs / tables, etc.)
- Cypress Testing
- [Admin logged-in](https://sveltekit-windmill-admin.vercel.app/)
- [Admin logged-out](https://sveltekit-windmill-admin-out.vercel.app/)
- [Bio / Resumé](https://daison.vercel.app/)

## Framework Specific Guidelines

Expand Down
5 changes: 4 additions & 1 deletion make
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@
# As an example below:
# ./make demo dev
# ./make admin dev
# ./make admin-in dev
# ./make admin-out dev
# ./make blog dev
# ./make landing dev
#
# Others such as:
# ./make admin build
# ./make admin package
# ./make admin preview
ROUTE_FOLDER=$1 $(which npm) run $2 ${@:3}
Loading

4 comments on commit 5771ac2

@vercel
Copy link

@vercel vercel bot commented on 5771ac2 Sep 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 5771ac2 Sep 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 5771ac2 Sep 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

daison – ./

daison-git-master-daison12006013.vercel.app
daison.vercel.app
daison-daison12006013.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 5771ac2 Sep 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.