beathers 5.3.0 → 5.3.2
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/CHANGELOG +13 -0
- package/dist/css/beathers.min.css +1 -1
- package/dist/css/beathers.min.css.map +1 -1
- package/dist/data/colors.d.ts +1 -0
- package/dist/data/font.d.ts +1 -0
- package/dist/data/index.d.ts +1 -0
- package/dist/index.d.ts +5 -4
- package/dist/index.js +4 -4
- package/dist/scripts/cli.d.ts +1 -0
- package/dist/scripts/cli.js +1 -1
- package/dist/scripts/commands/build.d.ts +1 -0
- package/dist/scripts/commands/build.js +3 -3
- package/dist/scripts/commands/colors.d.ts +1 -0
- package/dist/scripts/commands/colors.js +2 -2
- package/dist/scripts/commands/fonts.d.ts +1 -0
- package/dist/scripts/commands/fonts.js +2 -2
- package/dist/scripts/commands/help.d.ts +1 -0
- package/dist/scripts/commands/index.d.ts +2 -1
- package/dist/scripts/commands/init.d.ts +1 -0
- package/dist/scripts/commands/init.js +2 -2
- package/dist/scripts/commands/list.d.ts +1 -0
- package/dist/scripts/commands/list.js +1 -1
- package/dist/scripts/commands/version.d.ts +1 -0
- package/dist/scripts/commands/version.js +4 -1
- package/dist/scripts/helpers/BuildScssVariables.d.ts +2 -1
- package/dist/scripts/helpers/CallNewVariables.d.ts +1 -0
- package/dist/scripts/helpers/LoadUserConfigs.d.ts +2 -1
- package/dist/scripts/helpers/Merge.d.ts +2 -1
- package/dist/scripts/helpers/ReadDefaultValues.d.ts +2 -1
- package/dist/scripts/helpers/index.d.ts +1 -0
- package/dist/scripts/types.d.ts +1 -0
- package/{src → dist}/scss/beathers.min.scss +1 -1
- package/package.json +11 -3
- package/readme.md +2 -1
- /package/{src → dist}/scss/_variables.scss +0 -0
- /package/{src → dist}/scss/beathers-icons.min.scss +0 -0
- /package/{src → dist}/scss/functions/_colors.scss +0 -0
- /package/{src → dist}/scss/functions/_mediaQueries.scss +0 -0
- /package/{src → dist}/scss/functions/_others.scss +0 -0
- /package/{src → dist}/scss/functions/_typographic.scss +0 -0
- /package/{src → dist}/scss/functions/_validations.scss +0 -0
- /package/{src → dist}/scss/settings/_configs.scss +0 -0
- /package/{src → dist}/scss/settings/_defaults.scss +0 -0
- /package/{src → dist}/scss/settings/_index.scss +0 -0
- /package/{src → dist}/scss/style/_colors.scss +0 -0
- /package/{src → dist}/scss/style/_grid.scss +0 -0
- /package/{src → dist}/scss/style/_resets.scss +0 -0
- /package/{src → dist}/scss/style/_shaping.scss +0 -0
- /package/{src → dist}/scss/style/_typographic.scss +0 -0
package/dist/scripts/cli.d.ts
CHANGED
package/dist/scripts/cli.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* eslint-disable no-console */
|
|
2
|
-
import { BuildScssVariables, DeepMerge, LoadUserConfigs, ReadDefaultValues } from '@helpers';
|
|
3
2
|
import { exec } from 'child_process';
|
|
4
3
|
import fs from 'fs-extra';
|
|
5
4
|
import { fileURLToPath } from 'node:url';
|
|
6
5
|
import path from 'path';
|
|
7
6
|
import { promisify } from 'util';
|
|
8
|
-
import { promptInput } from '
|
|
7
|
+
import { promptInput } from '../commands/index.js';
|
|
8
|
+
import { BuildScssVariables, DeepMerge, LoadUserConfigs, ReadDefaultValues } from '../helpers/index.js';
|
|
9
9
|
const execAsync = promisify(exec);
|
|
10
10
|
const __filename = fileURLToPath(import.meta.url);
|
|
11
11
|
const __dirname = path.dirname(__filename);
|
|
@@ -109,7 +109,7 @@ if (import.meta.url === `file://${process.argv[1]}`) {
|
|
|
109
109
|
const args = process.argv.slice(2);
|
|
110
110
|
if (args.includes('--local')) {
|
|
111
111
|
console.log('🏠 Local build mode enabled');
|
|
112
|
-
const { promptInput } = await import('
|
|
112
|
+
const { promptInput } = await import('../commands/index.js');
|
|
113
113
|
const customOutputPath = await promptInput('📁 Output path (e.g., public/css): ');
|
|
114
114
|
if (!customOutputPath) {
|
|
115
115
|
console.error('❌ Please provide an output path when using \x1b[33m--local\x1b[0m flag.');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable no-console */
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { colorsList } from '../../data/index.js';
|
|
3
|
+
import { findConfigFile, loadConfig, promptInput, promptSelection, saveConfig } from '../commands/index.js';
|
|
4
4
|
export async function AddColors() {
|
|
5
5
|
const configFile = await findConfigFile();
|
|
6
6
|
if (!configFile) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable no-console */
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { importedFont, localFont } from '../../data/index.js';
|
|
3
|
+
import { findConfigFile, loadConfig, promptInput, promptSelection, promptUser, saveConfig } from '../commands/index.js';
|
|
4
4
|
export async function AddFont() {
|
|
5
5
|
const configFile = await findConfigFile();
|
|
6
6
|
if (!configFile) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Theme } from '
|
|
1
|
+
import { Theme } from '../types.js';
|
|
2
2
|
export declare function promptUser(question: string): Promise<boolean>;
|
|
3
3
|
export declare function promptInput(question: string): Promise<string>;
|
|
4
4
|
export declare function promptSelection<T extends string>(question: string, options: T[]): Promise<T>;
|
|
@@ -11,3 +11,4 @@ export * from './fonts.js';
|
|
|
11
11
|
export * from './help.js';
|
|
12
12
|
export * from './init.js';
|
|
13
13
|
export * from './version.js';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* eslint-disable no-console */
|
|
2
|
-
import { ReadDefaultValues } from '@helpers';
|
|
3
2
|
import fs from 'fs-extra';
|
|
4
3
|
import { fileURLToPath } from 'node:url';
|
|
5
4
|
import path from 'path';
|
|
6
|
-
import { promptSelection, promptUser } from '
|
|
5
|
+
import { promptSelection, promptUser } from '../commands/index.js';
|
|
6
|
+
import { ReadDefaultValues } from '../helpers/index.js';
|
|
7
7
|
async function getDefaultValues() {
|
|
8
8
|
const __filename = fileURLToPath(import.meta.url);
|
|
9
9
|
const __dirname = path.dirname(__filename);
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export declare function Commands(args: any): Record<string, () => void | Promise<void>>;
|
|
2
2
|
export type CommandKey = '--help' | '-v' | '--version' | 'init' | 'build' | 'add-font' | 'remove-font' | 'import-font-sample' | 'add-colors' | 'remove-color' | 'import-color-pack' | 'import-color';
|
|
3
|
+
//# sourceMappingURL=list.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable no-console */
|
|
2
|
-
import { AddColors, AddFont, Build, Help, ImportColor, ImportColorPack, ImportFont, Init, RemoveColor, RemoveFont, Version, } from '
|
|
2
|
+
import { AddColors, AddFont, Build, Help, ImportColor, ImportColorPack, ImportFont, Init, RemoveColor, RemoveFont, Version, } from '../commands/index.js';
|
|
3
3
|
const commands = {
|
|
4
4
|
'--help': () => Help(),
|
|
5
5
|
'-v': () => Version(),
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/* eslint-disable no-console */
|
|
2
2
|
import fs from 'fs-extra';
|
|
3
|
+
import { fileURLToPath } from 'node:url';
|
|
3
4
|
import path from 'path';
|
|
4
5
|
export function Version() {
|
|
5
|
-
const
|
|
6
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
7
|
+
const __dirname = path.dirname(__filename);
|
|
8
|
+
const packagePath = path.join(__dirname, '../../..', 'package.json');
|
|
6
9
|
try {
|
|
7
10
|
const packageInfo = fs.readJsonSync(packagePath);
|
|
8
11
|
console.log(`📦 \x1b[34mbeathers\x1b[0m v${packageInfo.version}`);
|
package/dist/scripts/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "beathers",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Beather is a lightweight SCSS library that serves as a comprehensive design system for your projects. It offers a structured and consistent approach to manage colors, fonts, and other design related variables, making it easier to maintain a cohesive visual identity across your application.",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"require": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
8
15
|
"bin": {
|
|
9
16
|
"beathers": "dist/scripts/cli.js"
|
|
10
17
|
},
|
|
@@ -12,7 +19,7 @@
|
|
|
12
19
|
"watch": "nodemon --watch src/scss/ --ext scss --exec \"npm-run-all build\"",
|
|
13
20
|
"build": "sass --style compressed --source-map --embed-sources --no-error-css src/scss/:dist/css/",
|
|
14
21
|
"build:test": "tsx src/scripts/cli.ts",
|
|
15
|
-
"build:publish": "rimraf dist && tsc && npm run build",
|
|
22
|
+
"build:publish": "rimraf dist && tsc && npm run build && copyfiles -u 1 \"src/scss/**/*\" dist/",
|
|
16
23
|
"lint": "eslint . && stylelint \"**/*.scss\"",
|
|
17
24
|
"lint:fix": "eslint . --fix && stylelint \"**/*.scss\" --fix",
|
|
18
25
|
"format:check": "prettier --check --ignore-path .gitignore .",
|
|
@@ -52,6 +59,7 @@
|
|
|
52
59
|
"@types/node": "^22.15.21",
|
|
53
60
|
"@types/scss-parser": "^1.0.4",
|
|
54
61
|
"autoprefixer": "^10.4.21",
|
|
62
|
+
"copyfiles": "^2.4.1",
|
|
55
63
|
"eslint": "^9.26.0",
|
|
56
64
|
"eslint-plugin-css": "^0.11.0",
|
|
57
65
|
"eslint-plugin-import": "^2.31.0",
|
|
@@ -75,7 +83,7 @@
|
|
|
75
83
|
"files": [
|
|
76
84
|
"dist/css/**/*.{css,map}",
|
|
77
85
|
"dist/**/*.{js,d.ts}",
|
|
78
|
-
"
|
|
86
|
+
"dist/scss/**/*.scss",
|
|
79
87
|
"public/images/logo.png",
|
|
80
88
|
"CHANGELOG",
|
|
81
89
|
"readme.md"
|
package/readme.md
CHANGED
|
@@ -5,8 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
[](https://www.npmjs.com/package/beathers)
|
|
7
7
|
[](https://opensource.org/licenses/MIT)
|
|
8
|
+
[](CHANGELOG)
|
|
8
9
|
|
|
9
|
-
Beathers is a lightweight, powerful SCSS library designed to accelerate your web development workflow
|
|
10
|
+
Beathers is a lightweight, powerful SCSS library designed to accelerate your web development workflow.**Everything is fully customizable** through a simple configuration file, allowing you to tailor every aspect to match your brand and requirements. It offers a comprehensive suite of SCSS mixins, variables, and utility classes, enabling you to build responsive, visually appealing web applications with complete design control.
|
|
10
11
|
|
|
11
12
|
## Get Started
|
|
12
13
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|