Skip to content

Commit

Permalink
Moved Publish config to build config rather than caw config
Browse files Browse the repository at this point in the history
  • Loading branch information
skymen committed Jan 17, 2025
1 parent 77a6279 commit 1f096ad
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
5 changes: 3 additions & 2 deletions build/generateDocumentation.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import fs from "fs";
import path from "path";
import * as config from "../config.caw.js";
import { publishConfig } from "../buildconfig.js";
import * as chalkUtils from "./chalkUtils.js";
import fromConsole from "./fromConsole.js";
import {
Expand Down Expand Up @@ -62,7 +63,7 @@ async function getGithubURL() {
}

export default async function generateDocumentation() {
if (config.githubConfig && !config.githubConfig.autoGenReadme) return false;
if (publishConfig && !publishConfig.autoGenReadme) return false;
chalkUtils.step("Generating README.md");

const readme = [];
Expand Down Expand Up @@ -91,7 +92,7 @@ export default async function generateDocumentation() {
) {
readme.push(`<b><u>Website:</u></b> ${config.website} <br>`);
}
if (config.addonUrl && config.addonUrl !== "") {
if (publishConfig && publishConfig.addonUrl !== "") {
readme.push(`<b><u>Addon Url:</u></b> ${config.addonUrl} <br>`);
}
//add link to c3ide2-framework
Expand Down
4 changes: 0 additions & 4 deletions build/schemas.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,6 @@ const configSchema = Joi.object({
.required(),
}).required(),
aceCategories: Joi.object().pattern(Joi.string(), Joi.string()).default({}),
githubConfig: Joi.object({
addonUrl: Joi.string().required().allow(""),
autoGenReadme: Joi.boolean().required(),
}).required(),
info: Joi.object({
icon: Joi.string().optional(),
Set: Joi.object({
Expand Down
5 changes: 5 additions & 0 deletions buildconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@ export const failOnUnusedFiles = true;
export const disableTips = false;

export const disableWarnings = false;

export const publishConfig = {
addonUrl: "",
autoGenReadme: true,
};
5 changes: 0 additions & 5 deletions config.caw.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ export const files = {
// categories that are not filled will use the folder name
export const aceCategories = {};

export const githubConfig = {
addonUrl: "",
autoGenReadme: true,
};

export const info = {
// icon: "icon.svg",
// PLUGIN world only
Expand Down

0 comments on commit 1f096ad

Please sign in to comment.