Skip to content

Commit 7613441

Browse files
author
Ben Monro
committed
initial commit
0 parents  commit 7613441

File tree

14 files changed

+11807
-0
lines changed

14 files changed

+11807
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.DS_Store
2+
node_modules
3+
public/bundle.*

README.md

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
*Psst — looking for a shareable component template? Go here --> [sveltejs/component-template](https://github.com/sveltejs/component-template)*
2+
3+
---
4+
5+
# svelte app
6+
7+
This is a project template for [Svelte](https://svelte.technology) apps. It lives at https://github.com/sveltejs/template.
8+
9+
To create a new project based on this template using [degit](https://github.com/Rich-Harris/degit):
10+
11+
```bash
12+
npx degit sveltejs/template svelte-app
13+
cd svelte-app
14+
```
15+
16+
*Note that you will need to have [Node.js](https://nodejs.org) installed.*
17+
18+
19+
## Get started
20+
21+
Install the dependencies...
22+
23+
```bash
24+
cd svelte-app
25+
npm install
26+
```
27+
28+
...then start [Rollup](https://rollupjs.org):
29+
30+
```bash
31+
npm run dev
32+
```
33+
34+
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.
35+
36+
37+
## Deploying to the web
38+
39+
### With [now](https://zeit.co/now)
40+
41+
Install `now` if you haven't already:
42+
43+
```bash
44+
npm install -g now
45+
```
46+
47+
Then, from within your project folder:
48+
49+
```bash
50+
now
51+
```
52+
53+
As an alternative, use the [Now desktop client](https://zeit.co/download) and simply drag the unzipped project folder to the taskbar icon.
54+
55+
### With [surge](https://surge.sh/)
56+
57+
Install `surge` if you haven't already:
58+
59+
```bash
60+
npm install -g surge
61+
```
62+
63+
Then, from within your project folder:
64+
65+
```bash
66+
npm run build
67+
surge public
68+
```

jest.config.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const { jest: jestConfig } = require("kcd-scripts/config");
2+
3+
const config = Object.assign(jestConfig, {
4+
roots: ["tests"],
5+
testMatch: ["/**/*.spec.js"],
6+
transform: {
7+
...jestConfig.transform,
8+
"\\.svelte$": "./tests/transform"
9+
},
10+
transformIgnorePatterns: [
11+
...jestConfig.transformIgnorePatterns,
12+
"/node_modules/(?!svelte).+\\.js$"
13+
],
14+
moduleFileExtensions: [...jestConfig.moduleFileExtensions, "svelte"]
15+
});
16+
module.exports = config;

0 commit comments

Comments
 (0)