Bläddra i källkod

Add example project

master
Jonas Duri 9 månader sedan
förälder
incheckning
80d9d7a276
9 ändrade filer med 8891 tillägg och 0 borttagningar
  1. 2
    0
      .gitignore
  2. 13
    0
      README.md
  3. 8806
    0
      package-lock.json
  4. 34
    0
      package.json
  5. 5
    0
      src/assets/main.scss
  6. 13
    0
      src/layouts/base.hbs
  7. 6
    0
      src/pages/index.md
  8. 3
    0
      src/partials/header.hbs
  9. 9
    0
      stasis.config.json

+ 2
- 0
.gitignore Visa fil

@@ -59,3 +59,5 @@ typings/
59 59
 
60 60
 # next.js build output
61 61
 .next
62
+.idea
63
+dist/

+ 13
- 0
README.md Visa fil

@@ -1,2 +1,15 @@
1 1
 # stasis-basic-example
2 2
 This is a basic example project for the Stasis static site generator
3
+
4
+
5
+## Setup
6
+
7
+`npm install`
8
+
9
+## Build
10
+
11
+`npm run build`
12
+
13
+## Serve
14
+
15
+`npm run serve`

+ 8806
- 0
package-lock.json
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 34
- 0
package.json Visa fil

@@ -0,0 +1,34 @@
1
+{
2
+  "name": "stasis-basic-example",
3
+  "version": "1.0.0",
4
+  "description": "This is a basic example project for the Stasis static site generator",
5
+  "main": "index.js",
6
+  "scripts": {
7
+    "build": "stasis-cli build -s stasis.config.json src",
8
+    "serve": "stasis-cli serve -s stasis.config.json src",
9
+    "test": "echo \"Error: no test specified\" && exit 1"
10
+  },
11
+  "repository": {
12
+    "type": "git",
13
+    "url": "git+https://github.com/Gioni06/stasis-basic-example.git"
14
+  },
15
+  "keywords": [
16
+    "Stasis",
17
+    "Static",
18
+    "Site",
19
+    "Generator",
20
+    "Example"
21
+  ],
22
+  "author": "Jonas Duri",
23
+  "license": "ISC",
24
+  "bugs": {
25
+    "url": "https://github.com/Gioni06/stasis-basic-example/issues"
26
+  },
27
+  "homepage": "https://github.com/Gioni06/stasis-basic-example#readme",
28
+  "devDependencies": {
29
+    "sass": "^1.17.2"
30
+  },
31
+  "dependencies": {
32
+    "stasis-generator": "0.0.4"
33
+  }
34
+}

+ 5
- 0
src/assets/main.scss Visa fil

@@ -0,0 +1,5 @@
1
+$font-color: #151515;
2
+
3
+body {
4
+	color: $font-color
5
+}

+ 13
- 0
src/layouts/base.hbs Visa fil

@@ -0,0 +1,13 @@
1
+<!DOCTYPE html>
2
+<html lang="en">
3
+<head>
4
+	<meta charset="UTF-8">
5
+	<meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+	<meta http-equiv="X-UA-Compatible" content="ie=edge">
7
+	<title>{{meta.title}}</title>
8
+</head>
9
+<body>
10
+	{{> header}}
11
+	{{{body}}}
12
+</body>
13
+</html>

+ 6
- 0
src/pages/index.md Visa fil

@@ -0,0 +1,6 @@
1
+---
2
+layout: base
3
+title: Stasis Basic Example
4
+---
5
+
6
+# Hello World

+ 3
- 0
src/partials/header.hbs Visa fil

@@ -0,0 +1,3 @@
1
+<header>
2
+	<h1>Header Partial</h1>
3
+</header>

+ 9
- 0
stasis.config.json Visa fil

@@ -0,0 +1,9 @@
1
+{
2
+	"sourcePath": "src",
3
+	"publicPath": "dist",
4
+	"assetsPath": "assets",
5
+	"staticPath": "static",
6
+	"entryAssets": [
7
+		"**/*"
8
+	]
9
+}

Laddar…
Avbryt
Spara