-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit 87ef315
Showing
13 changed files
with
2,509 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.DS_Store | ||
node_modules | ||
public/bundle.* |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# svelte 3 template with svelte-spa-router | ||
|
||
This is a project template for [Svelte 3](https://svelte.dev) apps with router. It lives at https://github.com/me7/sv3. | ||
|
||
To create a new project based on this template using [degit](https://github.com/Rich-Harris/degit): | ||
|
||
```bash | ||
degit me7/sv3 svelte-app | ||
cd svelte-app | ||
``` | ||
|
||
## Get started | ||
|
||
``` | ||
yarn | ||
yarn dev | ||
``` | ||
|
||
Navigate to [localhost:5000](http://localhost:5000). You should see your app running. Edit a component file in `src`, save it, and reload the page to see your changes. | ||
|
||
|
||
## Deploy to [netlify](https://app.netlify.com) | ||
|
||
goto [netlify dashboard](https://app.netlify.com) then drag public folder to deploy |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "svelte-app", | ||
"version": "1.0.0", | ||
"devDependencies": { | ||
"npm-run-all": "^4.1.5", | ||
"rollup": "^1.12.0", | ||
"rollup-plugin-commonjs": "^10.0.0", | ||
"rollup-plugin-livereload": "^1.0.0", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"rollup-plugin-svelte": "^5.0.3", | ||
"rollup-plugin-terser": "^4.0.4", | ||
"svelte": "^3.0.0" | ||
}, | ||
"dependencies": { | ||
"sirv-cli": "^0.4.4", | ||
"svelte-spa-router": "^1.1.3" | ||
}, | ||
"scripts": { | ||
"build": "rollup -c", | ||
"autobuild": "rollup -c -w", | ||
"dev": "run-p start:dev autobuild", | ||
"start": "sirv public --single", | ||
"start:dev": "sirv public --single --dev" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.