@schemavaults/theme 0.22.18 → 0.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -39,20 +39,7 @@ export default config;
|
|
|
39
39
|
// Import the config factory
|
|
40
40
|
import { SchemaVaultsTailwindConfigFactory } from "@schemavaults/theme";
|
|
41
41
|
import { join } from "path";
|
|
42
|
-
import { lstatSync,
|
|
43
|
-
|
|
44
|
-
function node_modules(): string {
|
|
45
|
-
const currentDirectory: string = import.meta.dirname;
|
|
46
|
-
|
|
47
|
-
let node_modules_path: string;
|
|
48
|
-
if (currentDirectory.endsWith("/src") || currentDirectory.endsWith("/dist")) {
|
|
49
|
-
node_modules_path = join(currentDirectory, "..", "node_modules");
|
|
50
|
-
} else {
|
|
51
|
-
node_modules_path = join(currentDirectory, "node_modules");
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
return node_modules_path;
|
|
55
|
-
}
|
|
42
|
+
import { lstatSync, existsSync, type Stats } from "fs";
|
|
56
43
|
|
|
57
44
|
function isdir(path: string): boolean {
|
|
58
45
|
if (!existsSync(path)) return false;
|
|
@@ -68,13 +55,8 @@ function isdir(path: string): boolean {
|
|
|
68
55
|
return lstatResult.isDirectory();
|
|
69
56
|
}
|
|
70
57
|
|
|
71
|
-
if (!isdir(node_modules())) {
|
|
72
|
-
throw new Error("Failed to resolve node_modules/ directory for test!");
|
|
73
|
-
}
|
|
74
|
-
|
|
75
58
|
// Initialize the config factory
|
|
76
59
|
const configFactory = new SchemaVaultsTailwindConfigFactory({
|
|
77
|
-
node_modules,
|
|
78
60
|
isdir,
|
|
79
61
|
join,
|
|
80
62
|
scope: 'schemavaults'
|
|
@@ -5,10 +5,10 @@ type OsJoinFn = (path_segment: string, ...remaining_path_segments: string[]) =>
|
|
|
5
5
|
export interface ISchemaVaultsTailwindConfigFactoryInitOptions {
|
|
6
6
|
debug?: boolean;
|
|
7
7
|
join?: OsJoinFn;
|
|
8
|
-
node_modules?: string | (() => string);
|
|
9
8
|
isdir?: (path: string) => boolean;
|
|
10
9
|
scope?: string;
|
|
11
10
|
fileExtensions?: readonly string[];
|
|
11
|
+
project_root?: string;
|
|
12
12
|
}
|
|
13
13
|
export interface ISchemaVaultsTailwindConfigCreationOptions {
|
|
14
14
|
content: readonly string[];
|
|
@@ -22,14 +22,13 @@ type ThemeValue = ThemeExtension[string];
|
|
|
22
22
|
export declare class SchemaVaultsTailwindConfigFactory implements ISchemaVaultsTailwindConfigFactory {
|
|
23
23
|
protected readonly debug: boolean;
|
|
24
24
|
protected readonly join: OsJoinFn;
|
|
25
|
-
protected readonly node_modules_path: string | undefined;
|
|
26
25
|
protected readonly isdir: (path: string) => boolean;
|
|
27
26
|
protected readonly scope: string;
|
|
27
|
+
protected readonly project_root: string;
|
|
28
28
|
protected static readonly defaultFileExtensionsToSearch: readonly ["js", "jsx", "ts", "tsx"];
|
|
29
29
|
protected readonly fileExtensionsToIncludeInTailwindClassNamesSearch: readonly string[];
|
|
30
30
|
private static defaultJoinImplementation;
|
|
31
31
|
private static defaultIsDirImplementation;
|
|
32
|
-
private static getDefaultResolveNodeModulesDirectoryPathImplementation;
|
|
33
32
|
constructor(opts?: ISchemaVaultsTailwindConfigFactoryInitOptions);
|
|
34
33
|
/**
|
|
35
34
|
* @description Load TailwindCSS plugins to use in theme configuration
|
|
@@ -41,9 +40,7 @@ export declare class SchemaVaultsTailwindConfigFactory implements ISchemaVaultsT
|
|
|
41
40
|
protected get brandColors(): ThemeValue;
|
|
42
41
|
protected get screenSizes(): Record<ScreenBreakpointID, `${number}px`>;
|
|
43
42
|
protected get themeExtension(): ThemeExtension;
|
|
44
|
-
protected
|
|
45
|
-
get node_modules(): string;
|
|
46
|
-
protected resolveSchemaVaultsPackagePath(pkg_blob_string: string): string;
|
|
43
|
+
protected resolveOrganizationScopedPackagePath(pkg_blob_string: string): string;
|
|
47
44
|
private static possibleBuildDirectories;
|
|
48
45
|
createConfig(opts?: ISchemaVaultsTailwindConfigCreationOptions): TailwindConfig;
|
|
49
46
|
}
|
|
@@ -5,12 +5,13 @@ import { getScreenBreakpoint, listScreenBreakpoints, } from "./ScreenBreakpoints
|
|
|
5
5
|
import { existsSync, lstatSync } from "fs";
|
|
6
6
|
// TailwindCSS Plugins:
|
|
7
7
|
import tailwindAnimatePlugin from "./plugins/tailwindcss-animate";
|
|
8
|
+
import * as resolve from "resolve";
|
|
8
9
|
export class SchemaVaultsTailwindConfigFactory {
|
|
9
10
|
debug;
|
|
10
11
|
join;
|
|
11
|
-
node_modules_path;
|
|
12
12
|
isdir;
|
|
13
13
|
scope;
|
|
14
|
+
project_root;
|
|
14
15
|
static defaultFileExtensionsToSearch = [
|
|
15
16
|
"js",
|
|
16
17
|
"jsx",
|
|
@@ -31,23 +32,6 @@ export class SchemaVaultsTailwindConfigFactory {
|
|
|
31
32
|
}
|
|
32
33
|
return lstatSync(maybeDirPath).isDirectory();
|
|
33
34
|
}
|
|
34
|
-
static getDefaultResolveNodeModulesDirectoryPathImplementation(join, isdir) {
|
|
35
|
-
const cwd = process.cwd();
|
|
36
|
-
if (isdir(join(cwd, "node_modules"))) {
|
|
37
|
-
return () => join(cwd, "node_modules");
|
|
38
|
-
}
|
|
39
|
-
else if (isdir(join(cwd, "..", "node_modules"))) {
|
|
40
|
-
return () => join(cwd, "..", "node_modules");
|
|
41
|
-
}
|
|
42
|
-
else if (isdir(join(cwd, "..", "..", "node_modules"))) {
|
|
43
|
-
return () => join(cwd, "..", "..", "node_modules");
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
console.error("Failed to resolve path to 'node_modules' directory from SchemaVaultsTailwindConfigFactory!");
|
|
47
|
-
console.error("You can pass a custom resolver function to the config factory constructor to fix this!");
|
|
48
|
-
process.exit(1);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
35
|
constructor(opts) {
|
|
52
36
|
this.debug = opts?.debug ?? false;
|
|
53
37
|
if (this.debug) {
|
|
@@ -61,12 +45,6 @@ export class SchemaVaultsTailwindConfigFactory {
|
|
|
61
45
|
typeof opts?.isdir === "function"
|
|
62
46
|
? opts.isdir
|
|
63
47
|
: SchemaVaultsTailwindConfigFactory.defaultIsDirImplementation;
|
|
64
|
-
this.node_modules_path =
|
|
65
|
-
typeof opts?.node_modules === "string"
|
|
66
|
-
? opts.node_modules
|
|
67
|
-
: typeof opts?.node_modules === "function"
|
|
68
|
-
? opts.node_modules()
|
|
69
|
-
: SchemaVaultsTailwindConfigFactory.getDefaultResolveNodeModulesDirectoryPathImplementation(this.join, this.isdir)();
|
|
70
48
|
this.scope = opts?.scope ?? DefaultOrgScope;
|
|
71
49
|
if (this.scope.startsWith("@")) {
|
|
72
50
|
throw new Error("Don't pass the @ in the scope, we'll handle adding passing that!");
|
|
@@ -74,6 +52,7 @@ export class SchemaVaultsTailwindConfigFactory {
|
|
|
74
52
|
this.fileExtensionsToIncludeInTailwindClassNamesSearch = Array.isArray(opts?.fileExtensions)
|
|
75
53
|
? opts.fileExtensions
|
|
76
54
|
: SchemaVaultsTailwindConfigFactory.defaultFileExtensionsToSearch;
|
|
55
|
+
this.project_root = opts?.project_root ?? process.cwd();
|
|
77
56
|
if (this.debug) {
|
|
78
57
|
console.log(`[SchemaVaultsTailwindConfigFactory] Initialized '@${this.scope}' config factory`);
|
|
79
58
|
}
|
|
@@ -118,21 +97,7 @@ export class SchemaVaultsTailwindConfigFactory {
|
|
|
118
97
|
};
|
|
119
98
|
return extend;
|
|
120
99
|
}
|
|
121
|
-
|
|
122
|
-
if (typeof this.node_modules_path === "string") {
|
|
123
|
-
return this.node_modules_path;
|
|
124
|
-
}
|
|
125
|
-
throw new Error("Failed to resolve path to node_modules/ directory!");
|
|
126
|
-
}
|
|
127
|
-
// Get the path to the node_modules/ directory
|
|
128
|
-
get node_modules() {
|
|
129
|
-
const path = this.resolveNodeModulesDirectoryPath();
|
|
130
|
-
if (!this.isdir(path)) {
|
|
131
|
-
throw new Error("Expected result of node_modules getter to be the path to a directory!");
|
|
132
|
-
}
|
|
133
|
-
return path;
|
|
134
|
-
}
|
|
135
|
-
resolveSchemaVaultsPackagePath(pkg_blob_string) {
|
|
100
|
+
resolveOrganizationScopedPackagePath(pkg_blob_string) {
|
|
136
101
|
const scope = this.scope;
|
|
137
102
|
if (!pkg_blob_string.startsWith(`@${scope}/`)) {
|
|
138
103
|
throw new Error(`This method should only be called if content path starts with @${scope}/...`);
|
|
@@ -144,13 +109,24 @@ export class SchemaVaultsTailwindConfigFactory {
|
|
|
144
109
|
throw new TypeError("Failed to resolve package name from package blob string");
|
|
145
110
|
}
|
|
146
111
|
const package_name = pkg_blob_parts[1];
|
|
147
|
-
const
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
112
|
+
const org_package_identifier = `@${scope}/${package_name}`;
|
|
113
|
+
let package_path;
|
|
114
|
+
try {
|
|
115
|
+
package_path = resolve.sync(org_package_identifier, {
|
|
116
|
+
basedir: this.project_root, // resolve from where tailwind.config.ts is running from
|
|
117
|
+
});
|
|
118
|
+
if (typeof package_path !== "string") {
|
|
119
|
+
throw new TypeError("Failed to resolve package path; result not a string!");
|
|
120
|
+
}
|
|
121
|
+
if (!this.isdir(package_path)) {
|
|
122
|
+
throw new Error(`Expected there to be a directory for package '@${scope}/${package_name}' at path '${package_path}'!`);
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
catch (e) {
|
|
126
|
+
console.error(`Failed to resolve path to package '@${scope}/${package_name}':`, e);
|
|
151
127
|
throw new Error(`Failed to resolve path to package: '@${scope}/${package_name}'!`);
|
|
152
128
|
}
|
|
153
|
-
return
|
|
129
|
+
return package_path;
|
|
154
130
|
}
|
|
155
131
|
static possibleBuildDirectories = [
|
|
156
132
|
"dist",
|
|
@@ -175,7 +151,7 @@ export class SchemaVaultsTailwindConfigFactory {
|
|
|
175
151
|
content_input.forEach((content_path_input) => {
|
|
176
152
|
const content_length_at_start = content.length;
|
|
177
153
|
if (content_path_input.startsWith(`@${scope}/`)) {
|
|
178
|
-
const package_path = this.
|
|
154
|
+
const package_path = this.resolveOrganizationScopedPackagePath(content_path_input);
|
|
179
155
|
SchemaVaultsTailwindConfigFactory.possibleBuildDirectories.forEach((possible_build_dir) => {
|
|
180
156
|
const buildSubdirPath = this.join(package_path, possible_build_dir);
|
|
181
157
|
let hasBuildSubdirectory;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TailwindConfigFactory.js","sourceRoot":"","sources":["../src/TailwindConfigFactory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,eAAe,MAAM,mBAAmB,CAAC,CAAC,wCAAwC;AACzF,OAAO,EACL,mBAAmB,EACnB,qBAAqB,GAEtB,MAAM,qBAAqB,CAAC;AAM7B,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAE3C,uBAAuB;AACvB,OAAO,qBAAqB,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"TailwindConfigFactory.js","sourceRoot":"","sources":["../src/TailwindConfigFactory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,eAAe,MAAM,mBAAmB,CAAC,CAAC,wCAAwC;AACzF,OAAO,EACL,mBAAmB,EACnB,qBAAqB,GAEtB,MAAM,qBAAqB,CAAC;AAM7B,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAE3C,uBAAuB;AACvB,OAAO,qBAAqB,MAAM,+BAA+B,CAAC;AAClE,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AA8BnC,MAAM,OAAO,iCAAiC;IAGzB,KAAK,CAAU;IAEf,IAAI,CAAW;IAEf,KAAK,CAA4B;IAEjC,KAA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,CAAC;QAED,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC7B,MAAM,MAAM,GAAmB,IAAI,CAAC,cAAc,CAAC;QAEnD,MAAM,MAAM,GAAG;YACb,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;YACrB,KAAK,EAAE,EAAE,MAAM,EAAgC;YAC/C,OAAO;YACP,QAAQ,EAAE,OAAO;SACgB,CAAC;QAEpC,OAAO,CAAC,MAAM,CACZ,MAAM,CAAC,OAAO,CAAC,MAAM,IAAI,CAAC,EAC1B,gFAAgF,CACjF,CAAC;QAEF,OAAO,CAAC,MAAM,CACZ,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,IAAI,KAAK,QAAQ,CAAC,EACxD,0FAA0F,CAC3F,CAAC;QAEF,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACf,OAAO,CAAC,GAAG,CACT,qEAAqE,EACrE,MAAM,CACP,CAAC;QACJ,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;;AAGH,eAAe,iCAAiC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schemavaults/theme",
|
|
3
3
|
"description": "TailwindCSS theme shared by different SchemaVaults applications",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.23.1",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
7
|
"repository": {
|
|
@@ -13,13 +13,15 @@
|
|
|
13
13
|
"react": "19.0.0"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"tailwindcss-animate": "1.0.7"
|
|
16
|
+
"tailwindcss-animate": "1.0.7",
|
|
17
|
+
"resolve": "1.22.11"
|
|
17
18
|
},
|
|
18
19
|
"devDependencies": {
|
|
19
20
|
"@types/react": "19.0.0",
|
|
20
21
|
"@types/react-dom": "19.0.0",
|
|
22
|
+
"@types/resolve": "1.20.6",
|
|
21
23
|
"tsc-alias": "1.8.16",
|
|
22
|
-
"bun-types": "1.
|
|
24
|
+
"bun-types": "1.3.3",
|
|
23
25
|
"typescript": "5.9.3",
|
|
24
26
|
"ignore-loader": "0.1.2",
|
|
25
27
|
"tailwindcss": "3.4.17"
|
|
@@ -34,7 +36,8 @@
|
|
|
34
36
|
"build": "bun run build:js",
|
|
35
37
|
"postbuild": "bun run build:cleanup",
|
|
36
38
|
"clean": "rm -rf ./dist",
|
|
37
|
-
"test": "NODE_ENV=test bun test"
|
|
39
|
+
"test:unit": "NODE_ENV=test bun test",
|
|
40
|
+
"test": "bun run test:unit"
|
|
38
41
|
},
|
|
39
42
|
"exports": {
|
|
40
43
|
"./globals.css": {
|
|
@@ -81,5 +84,5 @@
|
|
|
81
84
|
"publishConfig": {
|
|
82
85
|
"access": "public"
|
|
83
86
|
},
|
|
84
|
-
"packageManager": "bun@1.
|
|
87
|
+
"packageManager": "bun@1.3.3"
|
|
85
88
|
}
|