Skip to content

Commit

Permalink
Merge pull request #1 from welsonjr/master
Browse files Browse the repository at this point in the history
Update to svelte v3
  • Loading branch information
Timothy Johnson committed Jun 13, 2019
2 parents 57cf0ba + cd7b34d commit 876b8c3
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3,555 deletions.
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,18 @@
"version": "1.0.0",
"description": "Example Parcel Svelte setup",
"scripts": {
"start": "parcel src/index.html"
"start": "parcel src/index.html",
"build": "parcel build --no-source-maps src/index.html"
},
"browserslist": [
"last 1 chrome versions"
],
"main": "index.js",
"author": "Timothy Johnson",
"license": "GPL-3.0",
"devDependencies": {
"parcel-bundler": "^1.8.1",
"parcel-plugin-svelte": "^1.2.1",
"svelte": "^2.7.2"
"parcel-plugin-svelte": "^3.0.1",
"svelte": "^3.5.1"
}
}
3 changes: 3 additions & 0 deletions src/App.svelte
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<script>
export let name;
</script>
<h1>Hello {name}!</h1>

<style>
Expand Down
2 changes: 1 addition & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import App from './App.svelte';

const app = new App({
target: document.body,
data: {
props: {
name: 'world'
}
});
Expand Down
Loading

0 comments on commit 876b8c3

Please sign in to comment.