refactor: move common to theme folder

This commit is contained in:
Sergey Onufrienko 2023-05-30 16:53:12 +02:00
parent ac63043c27
commit 05d1dd6b11
No known key found for this signature in database
GPG key ID: 3299873ECFD30CA3
6 changed files with 8 additions and 8 deletions

View file

@ -4,7 +4,7 @@ import { ColorScheme, Meta } from "./themes/common/colorScheme"
const THEMES_DIRECTORY = path.resolve(`${__dirname}/themes`) const THEMES_DIRECTORY = path.resolve(`${__dirname}/themes`)
const STAFF_DIRECTORY = path.resolve(`${__dirname}/themes/staff`) const STAFF_DIRECTORY = path.resolve(`${__dirname}/themes/staff`)
const IGNORE_ITEMS = ["staff", "common", "template.ts"] const IGNORE_ITEMS = ["staff", "common", "common.ts"]
const ACCEPT_EXTENSION = ".ts" const ACCEPT_EXTENSION = ".ts"
function getAllTsFiles(directoryPath: string) { function getAllTsFiles(directoryPath: string) {

View file

@ -1,4 +1,4 @@
import { License, Meta, ThemeSyntax } from "./colorScheme" import { License, Meta, ThemeSyntax } from "../common/colorScheme"
export interface Variant { export interface Variant {
meta: Meta meta: Meta

View file

@ -1,5 +1,5 @@
import { createColorScheme } from "../common/ramps" import { createColorScheme } from "../common/ramps"
import { ayu, meta as themeMeta, buildTheme } from "../common/ayu-common" import { ayu, meta as themeMeta, buildTheme } from "./common"
export const meta = { export const meta = {
...themeMeta, ...themeMeta,

View file

@ -1,5 +1,5 @@
import { createColorScheme } from "../common/ramps" import { createColorScheme } from "../common/ramps"
import { ayu, meta as themeMeta, buildTheme } from "../common/ayu-common" import { ayu, meta as themeMeta, buildTheme } from "./common"
export const meta = { export const meta = {
...themeMeta, ...themeMeta,

View file

@ -1,5 +1,5 @@
import { createColorScheme } from "../common/ramps" import { createColorScheme } from "../common/ramps"
import { ayu, meta as themeMeta, buildTheme } from "../common/ayu-common" import { ayu, meta as themeMeta, buildTheme } from "./common"
export const meta = { export const meta = {
...themeMeta, ...themeMeta,

View file

@ -1,8 +1,8 @@
import { dark, light, mirage } from "ayu" import { dark, light, mirage } from "ayu"
import { ThemeSyntax } from "./syntax" import { ThemeSyntax } from "../common/syntax"
import chroma from "chroma-js" import chroma from "chroma-js"
import { colorRamp } from "./ramps" import { colorRamp } from "../common/ramps"
import { Meta } from "./colorScheme" import { Meta } from "../common/colorScheme"
export const ayu = { export const ayu = {
dark, dark,