Explorar el Código

Add example project

master
Jonas Duri hace 1 año
padre
commit
80d9d7a276
Se han modificado 9 ficheros con 8891 adiciones y 0 borrados
  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 Ver fichero

@@ -59,3 +59,5 @@ typings/

# next.js build output
.next
.idea
dist/

+ 13
- 0
README.md Ver fichero

@@ -1,2 +1,15 @@
# stasis-basic-example
This is a basic example project for the Stasis static site generator


## Setup

`npm install`

## Build

`npm run build`

## Serve

`npm run serve`

+ 8806
- 0
package-lock.json
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


+ 34
- 0
package.json Ver fichero

@@ -0,0 +1,34 @@
{
"name": "stasis-basic-example",
"version": "1.0.0",
"description": "This is a basic example project for the Stasis static site generator",
"main": "index.js",
"scripts": {
"build": "stasis-cli build -s stasis.config.json src",
"serve": "stasis-cli serve -s stasis.config.json src",
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Gioni06/stasis-basic-example.git"
},
"keywords": [
"Stasis",
"Static",
"Site",
"Generator",
"Example"
],
"author": "Jonas Duri",
"license": "ISC",
"bugs": {
"url": "https://github.com/Gioni06/stasis-basic-example/issues"
},
"homepage": "https://github.com/Gioni06/stasis-basic-example#readme",
"devDependencies": {
"sass": "^1.17.2"
},
"dependencies": {
"stasis-generator": "0.0.4"
}
}

+ 5
- 0
src/assets/main.scss Ver fichero

@@ -0,0 +1,5 @@
$font-color: #151515;

body {
color: $font-color
}

+ 13
- 0
src/layouts/base.hbs Ver fichero

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

+ 6
- 0
src/pages/index.md Ver fichero

@@ -0,0 +1,6 @@
---
layout: base
title: Stasis Basic Example
---

# Hello World

+ 3
- 0
src/partials/header.hbs Ver fichero

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

+ 9
- 0
stasis.config.json Ver fichero

@@ -0,0 +1,9 @@
{
"sourcePath": "src",
"publicPath": "dist",
"assetsPath": "assets",
"staticPath": "static",
"entryAssets": [
"**/*"
]
}

Cargando…
Cancelar
Guardar