Skip to content
This repository has been archived by the owner on Feb 7, 2021. It is now read-only.

Commit

Permalink
config fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiliavir committed Sep 9, 2017
1 parent 91c8a15 commit dc4631a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mvw-creator",
"version": "1.1.0",
"version": "1.1.1",
"description": "Module to generate a static website using pug, scss and typescript.",
"license": "MIT",
"author": {
Expand Down
6 changes: 4 additions & 2 deletions ts/creator-config-schema.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { SiteStructureSchema } from "mvw-navigation/js/site-structure-schema.js";

export const CreatorConfigSchema: any = {
$schema: "http://json-schema.org/draft-06/schema",

Expand All @@ -24,7 +26,7 @@ export const CreatorConfigSchema: any = {
pugPath: { type: "string" },
pugLintPath: { type: "string" },
siteTitle: { type: "string" },
structureJsonPath: { type: "string" },
structure: { $ref: SiteStructureSchema },
searchIndex: {
anyOf: [{
additionalProperties: false,
Expand All @@ -41,7 +43,7 @@ export const CreatorConfigSchema: any = {
]
}
},
required: ["destinationPath", "environment", "environments", "pugPath", "pugLintPath", "structureJsonPath"],
required: ["destinationPath", "environment", "environments", "pugPath", "pugLintPath", "structure"],
title: "JSON Schema for the MVW Creator configuration",
type: "object"
};
4 changes: 3 additions & 1 deletion ts/creator-config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { INavigationNode } from "mvw-navigation/js";

export interface ISearchIndexConfig {
destination: string;
bodySelector: string;
Expand All @@ -18,6 +20,6 @@ export interface ICreatorConfig {
pugPath: string;
pugLintPath: string;
siteTitle?: string;
structure: string;
structure: INavigationNode[];
searchIndex?: ISearchIndexConfig | boolean;
}

0 comments on commit dc4631a

Please sign in to comment.