Commit 901d013e authored by Colby Russell's avatar Colby Russell

Sketching out interfaces

parents
.sw[po]
.*.sw[po]
*.js
The MIT License (MIT)
Copyright (c) individual contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Note: The software is based on the Heckle engine, which is originally
Copyright (c) 2012 Marijn Haverbeke. Other rightsholder information relevant
to the software may exist in the commit log for this and other projects, any
corresponding notices in appropriate files, and other sources. Some elements
of this work may have been integrated from other works available under the
terms of compatible licenses.
/* This Software is subject to the terms of The MIT License. */
/// <reference path="typings/node/node.d.ts" />
var fs = require("fs");
export function ensureDirectories(path: string) {
}
export function copyFileSync(inpath: string, outpath: string) {
}
{
"name": "schtickle-blog",
"version": "1.0.0",
"description": "Static blog generator",
"homepage": "https://gitlab.com/crussell/schtickle",
"bugs": "http://gitlab.com/crussell/schtickle/issues",
"repository": {
"type": "git",
"url": "https://gitlab.com/crussell/schtickle.git"
},
"license": "MIT",
"contributors": [
"Marijn Haverbeke <[email protected]>",
"Colby Russell (colbyrussell.com)"
],
"main": "schtickle.js",
"dependencies": {
"dateformat": "1.x.x",
"js-yaml": "1.x.x",
"marked": "0.2.x",
"mold-template": "1.x.x",
"rimraf": "2.x.x"
},
"keywords": [ "static", "blog", "heckle", "jekyll" ]
}
/* This Software is subject to the terms of The MIT License. */
/// <reference path="fsutils.ts" />
interface Config {
postLink: string;
}
interface Contents {
frontMatter: string;
mainContent: string;
}
interface Doc {
content: string;
name: string;
url: string;
}
interface Post extends Doc {
date: Date;
tags: string[];
// isLink: boolean;
}
interface TagToPostMap {
[index: string]: Post[];
}
interface MoldContext {
site: {
posts: Post[];
tags: TagToPostMap;
config: Config;
};
dateFormat: any;
}
interface BakedLayout {
(arg?: any): string;
fileName: string;
}
interface LayoutMap {
[index: string]: BakedLayout;
}
function readConfig(): Config {
}
function readContents(fileName: string): Contents {
}
function readPosts(config: Config): Post[] {
}
function getURL(config: Config, post: Post): string {
}
function gatherTags(posts: Post[]): TagToPostMap {
}
function prepareIncludes(context: MoldContext) {
}
function getLayout(name: string, context: MoldContext): BakedLayout {
}
function generate() {
}
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment