From 602f6b2d7de295f4a29618e71ba0ccddadb082be Mon Sep 17 00:00:00 2001 From: robingotz Date: Mon, 2 Dec 2024 13:44:26 +0100 Subject: [PATCH 01/38] chore: lint and cleanup of touched files --- .../tools/src/executors/release/helpers/projects.helpers.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/libs/tools/src/executors/release/helpers/projects.helpers.ts b/libs/tools/src/executors/release/helpers/projects.helpers.ts index 59edea6fe..4ce3dd375 100644 --- a/libs/tools/src/executors/release/helpers/projects.helpers.ts +++ b/libs/tools/src/executors/release/helpers/projects.helpers.ts @@ -9,9 +9,3 @@ export function getRoot(context: ExecutorContext): string { const projectName = getProjectName(context); return projectsConfiguration[projectName].root; } - -export function sleep(ms) { - return new Promise((resolve) => { - setTimeout(resolve, ms); - }); -} From 623df5cd33ac273740ecb05b06376f5014025b58 Mon Sep 17 00:00:00 2001 From: robingotz Date: Mon, 2 Dec 2024 16:07:10 +0100 Subject: [PATCH 02/38] build: add executor to replace version for ui libs this executor finds all package.json in the libs/ui directory and replaces the current version of @spartan-ng with the one defined in UI_VERSION --- libs/tools/executors.json | 5 -- .../release/build-update-publish/executor.ts | 4 +- .../executors/release/npm-publish/executor.ts | 11 +++- .../release/update-version/executor.spec.ts | 31 ------------ .../release/update-version/executor.ts | 15 ------ .../release/update-version/schema.d.ts | 2 - .../replace-cli-version/generator.spec.ts | 20 ++++++++ .../replace-cli-version/generator.ts | 6 +++ .../replace-cli-version/schema.d.ts | 1 + .../replace-cli-version/schema.json | 7 +++ .../replace-ui-version/generator.spec.ts | 20 ++++++++ .../replace-ui-version/generator.ts | 50 +++++++++++++++++++ .../generators/replace-ui-version/schema.d.ts | 1 + .../replace-ui-version}/schema.json | 0 14 files changed, 117 insertions(+), 56 deletions(-) delete mode 100644 libs/tools/src/executors/release/update-version/executor.spec.ts delete mode 100644 libs/tools/src/executors/release/update-version/executor.ts delete mode 100644 libs/tools/src/executors/release/update-version/schema.d.ts create mode 100644 libs/tools/src/generators/replace-cli-version/generator.spec.ts create mode 100644 libs/tools/src/generators/replace-cli-version/generator.ts create mode 100644 libs/tools/src/generators/replace-cli-version/schema.d.ts create mode 100644 libs/tools/src/generators/replace-cli-version/schema.json create mode 100644 libs/tools/src/generators/replace-ui-version/generator.spec.ts create mode 100644 libs/tools/src/generators/replace-ui-version/generator.ts create mode 100644 libs/tools/src/generators/replace-ui-version/schema.d.ts rename libs/tools/src/{executors/release/update-version => generators/replace-ui-version}/schema.json (100%) diff --git a/libs/tools/executors.json b/libs/tools/executors.json index 3ae7b83ac..32f032207 100644 --- a/libs/tools/executors.json +++ b/libs/tools/executors.json @@ -5,11 +5,6 @@ "schema": "./src/executors/release/npm-publish/schema.json", "description": "npm-publish executor" }, - "update-version": { - "implementation": "./src/executors/release/update-version/executor", - "schema": "./src/executors/release/update-version/schema.json", - "description": "update-version executor" - }, "build-update-publish": { "implementation": "./src/executors/release/build-update-publish/executor", "schema": "./src/executors/release/build-update-publish/schema.json", diff --git a/libs/tools/src/executors/release/build-update-publish/executor.ts b/libs/tools/src/executors/release/build-update-publish/executor.ts index 946000c03..deba144dd 100644 --- a/libs/tools/src/executors/release/build-update-publish/executor.ts +++ b/libs/tools/src/executors/release/build-update-publish/executor.ts @@ -3,14 +3,14 @@ import { execSync } from 'node:child_process'; import { getProjectName } from '../helpers/projects.helpers'; import npmPublish from '../npm-publish/executor'; -import updateVersion from '../update-version/executor'; import type { BuildUpdatePublishExecutorSchema } from './schema'; export default async function runExecutor(_options: BuildUpdatePublishExecutorSchema, context: ExecutorContext) { - await updateVersion({}, context); execSync(`nx build --project ${getProjectName(context)}`); + await npmPublish({}, context); + return { success: true, }; diff --git a/libs/tools/src/executors/release/npm-publish/executor.ts b/libs/tools/src/executors/release/npm-publish/executor.ts index ff334ca1a..e9b4228a9 100644 --- a/libs/tools/src/executors/release/npm-publish/executor.ts +++ b/libs/tools/src/executors/release/npm-publish/executor.ts @@ -3,11 +3,20 @@ import { execSync } from 'node:child_process'; import { getRoot } from '../helpers/projects.helpers'; +import * as process from 'node:process'; import type { NpmPublishExecutorSchema } from './schema'; export default async function runExecutor(_options: NpmPublishExecutorSchema, context: ExecutorContext) { + const tag = process.env.TAG; + + if (!tag) { + return { + success: false, + }; + } + const sourceRoot = `./dist/${getRoot(context)}`; - execSync(`cd ${sourceRoot} && npm publish${process.env['TAG'] ? ` --tag ${process.env['TAG']}` : ''}`); + execSync(`cd ${sourceRoot} && npm publish${tag ? ` --tag ${tag}` : ''}`); return { success: true, }; diff --git a/libs/tools/src/executors/release/update-version/executor.spec.ts b/libs/tools/src/executors/release/update-version/executor.spec.ts deleted file mode 100644 index 044bca6e0..000000000 --- a/libs/tools/src/executors/release/update-version/executor.spec.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { ExecutorContext } from '@nx/devkit'; -import * as process from 'node:process'; -import * as replaceJsonProp from 'replace-json-property'; -import * as projectHelpers from '../helpers/projects.helpers'; -import executor from './executor'; - -// Mock the entire replace-json-property module -jest.mock('replace-json-property', () => ({ - replace: jest.fn(), // Mock the replace function -})); - -describe('ReplaceVersion Executor', () => { - it('should replace the version within the default path if no path was provided', async () => { - const version = '2.0.0'; - const libName = 'foo'; - const mockContext = {} as unknown as ExecutorContext; - - process.env.VERSION = version; - - const root = `libs/${libName}`; - - // Mock the getRoot helper - jest.spyOn(projectHelpers, 'getRoot').mockReturnValue(root); - - const output = await executor({}, mockContext); - - // Check that the replace function was called correctly - expect(replaceJsonProp.replace).toHaveBeenCalledWith(`${root}/package.json`, 'version', version); - expect(output.success).toBe(true); - }); -}); diff --git a/libs/tools/src/executors/release/update-version/executor.ts b/libs/tools/src/executors/release/update-version/executor.ts deleted file mode 100644 index 9a3a287b5..000000000 --- a/libs/tools/src/executors/release/update-version/executor.ts +++ /dev/null @@ -1,15 +0,0 @@ -import type { ExecutorContext } from '@nx/devkit'; -import * as process from 'node:process'; -import { replace } from 'replace-json-property'; - -import { getRoot } from '../helpers/projects.helpers'; - -import type { ReplaceVersionExecutorSchema } from './schema'; - -export default async function runExecutor(_options: ReplaceVersionExecutorSchema, context: ExecutorContext) { - const sourceRoot = getRoot(context); - replace(`${sourceRoot}/package.json`, 'version', process.env['VERSION']); - return { - success: true, - }; -} diff --git a/libs/tools/src/executors/release/update-version/schema.d.ts b/libs/tools/src/executors/release/update-version/schema.d.ts deleted file mode 100644 index df7201fc4..000000000 --- a/libs/tools/src/executors/release/update-version/schema.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -// eslint-disable-next-line @typescript-eslint/no-empty-object-type -export type ReplaceVersionExecutorSchema = {}; diff --git a/libs/tools/src/generators/replace-cli-version/generator.spec.ts b/libs/tools/src/generators/replace-cli-version/generator.spec.ts new file mode 100644 index 000000000..6cf8bf8ba --- /dev/null +++ b/libs/tools/src/generators/replace-cli-version/generator.spec.ts @@ -0,0 +1,20 @@ +import { type Tree, readProjectConfiguration } from '@nx/devkit'; +import { createTreeWithEmptyWorkspace } from '@nx/devkit/testing'; + +import { replaceCliVersionGenerator } from './generator'; +import type { ReplaceCliVersionGeneratorSchema } from './schema'; + +describe('replace-cli-version generator', () => { + let tree: Tree; + const options: ReplaceCliVersionGeneratorSchema = {}; + + beforeEach(() => { + tree = createTreeWithEmptyWorkspace(); + }); + + it.skip('should run successfully', async () => { + await replaceCliVersionGenerator(tree, options); + const config = readProjectConfiguration(tree, 'test'); + expect(config).toBeDefined(); + }); +}); diff --git a/libs/tools/src/generators/replace-cli-version/generator.ts b/libs/tools/src/generators/replace-cli-version/generator.ts new file mode 100644 index 000000000..24fd4216e --- /dev/null +++ b/libs/tools/src/generators/replace-cli-version/generator.ts @@ -0,0 +1,6 @@ +import { type Tree } from '@nx/devkit'; +import type { ReplaceCliVersionGeneratorSchema } from './schema'; + +export default async function replaceCliVersionGenerator(tree: Tree, options: ReplaceCliVersionGeneratorSchema) { + console.log('replacing the cli version'); +} diff --git a/libs/tools/src/generators/replace-cli-version/schema.d.ts b/libs/tools/src/generators/replace-cli-version/schema.d.ts new file mode 100644 index 000000000..2d74dd8ae --- /dev/null +++ b/libs/tools/src/generators/replace-cli-version/schema.d.ts @@ -0,0 +1 @@ +export interface ReplaceCliVersionGeneratorSchema {} diff --git a/libs/tools/src/generators/replace-cli-version/schema.json b/libs/tools/src/generators/replace-cli-version/schema.json new file mode 100644 index 000000000..b8288bd2e --- /dev/null +++ b/libs/tools/src/generators/replace-cli-version/schema.json @@ -0,0 +1,7 @@ +{ + "$schema": "http://json-schema.org/schema", + "$id": "ReplaceCliVersionGenerator", + "title": "", + "type": "object", + "properties": {} +} diff --git a/libs/tools/src/generators/replace-ui-version/generator.spec.ts b/libs/tools/src/generators/replace-ui-version/generator.spec.ts new file mode 100644 index 000000000..b88adb7e0 --- /dev/null +++ b/libs/tools/src/generators/replace-ui-version/generator.spec.ts @@ -0,0 +1,20 @@ +import { type Tree, readProjectConfiguration } from '@nx/devkit'; +import { createTreeWithEmptyWorkspace } from '@nx/devkit/testing'; + +import { replaceUiVersionGenerator } from './generator'; +import type { ReplaceUiVersionGeneratorSchema } from './schema'; + +describe('replace-cli-version generator', () => { + let tree: Tree; + const options: ReplaceUiVersionGeneratorSchema = {}; + + beforeEach(() => { + tree = createTreeWithEmptyWorkspace(); + }); + + it.skip('should run successfully', async () => { + await replaceUiVersionGenerator(tree, options); + const config = readProjectConfiguration(tree, 'test'); + expect(config).toBeDefined(); + }); +}); diff --git a/libs/tools/src/generators/replace-ui-version/generator.ts b/libs/tools/src/generators/replace-ui-version/generator.ts new file mode 100644 index 000000000..9abde0bc2 --- /dev/null +++ b/libs/tools/src/generators/replace-ui-version/generator.ts @@ -0,0 +1,50 @@ +import { type Tree, formatFiles, updateJson } from '@nx/devkit'; +import { readdir, stat } from 'node:fs/promises'; +import { join } from 'node:path'; +import process from 'node:process'; +import type { ReplaceUiVersionGeneratorSchema } from './schema'; + +async function recursivelyFindRelativePackageJsonFilePaths(startingDir: string): Promise { + let results = []; + const list = await readdir(startingDir); + for (const file of list) { + const filePath = join(startingDir, file); + const fileStat = await stat(filePath); + if (fileStat.isDirectory()) { + results = results.concat(await recursivelyFindRelativePackageJsonFilePaths(filePath)); + } else if (file === 'package.json') { + results.push(filePath); + } + } + return results; +} + +const getSpartanDependencyKeys = (dependencies?: Record): string[] => + Object.keys(dependencies ?? {}).filter((key) => key.startsWith('@spartan-ng')); + +export default async function replaceUiVersionGenerator(tree: Tree, options: ReplaceUiVersionGeneratorSchema) { + const relativePackageJsonFilePaths = await recursivelyFindRelativePackageJsonFilePaths('libs/ui'); + + const newVersion = process.env.UI_VERSION; + + if (!newVersion) { + console.error('Must define a VERSION environment variable to use with this script'); + return; + } + + for (const packageJsonPath of relativePackageJsonFilePaths) { + updateJson(tree, packageJsonPath, (pkgJson) => { + const peerDependencyKeysToUpdate = getSpartanDependencyKeys(pkgJson.peerDependencies); + + pkgJson.version = newVersion; + + for (const key of peerDependencyKeysToUpdate) { + pkgJson.peerDependencies[key] = newVersion; + } + + return pkgJson; + }); + } + + await formatFiles(tree); +} diff --git a/libs/tools/src/generators/replace-ui-version/schema.d.ts b/libs/tools/src/generators/replace-ui-version/schema.d.ts new file mode 100644 index 000000000..c633007c9 --- /dev/null +++ b/libs/tools/src/generators/replace-ui-version/schema.d.ts @@ -0,0 +1 @@ +export interface ReplaceUiVersionGeneratorSchema {} diff --git a/libs/tools/src/executors/release/update-version/schema.json b/libs/tools/src/generators/replace-ui-version/schema.json similarity index 100% rename from libs/tools/src/executors/release/update-version/schema.json rename to libs/tools/src/generators/replace-ui-version/schema.json From 5ce26600636db05cacfe51b354c18c39962a2d93 Mon Sep 17 00:00:00 2001 From: robingotz Date: Mon, 2 Dec 2024 16:53:43 +0100 Subject: [PATCH 03/38] build: update cli files to reflect new versions and add scripts to make publishing easier --- .../replace-cli-version/generator.ts | 18 +++++++++++-- .../replace-ui-version/generator.ts | 26 +++++++++++++++++-- package.json | 11 +++++--- 3 files changed, 47 insertions(+), 8 deletions(-) diff --git a/libs/tools/src/generators/replace-cli-version/generator.ts b/libs/tools/src/generators/replace-cli-version/generator.ts index 24fd4216e..fbbaf8b0e 100644 --- a/libs/tools/src/generators/replace-cli-version/generator.ts +++ b/libs/tools/src/generators/replace-cli-version/generator.ts @@ -1,6 +1,20 @@ -import { type Tree } from '@nx/devkit'; +import { type Tree, updateJson } from '@nx/devkit'; +import process from 'node:process'; import type { ReplaceCliVersionGeneratorSchema } from './schema'; export default async function replaceCliVersionGenerator(tree: Tree, options: ReplaceCliVersionGeneratorSchema) { - console.log('replacing the cli version'); + const packageJsonPath = 'libs/cli/package.json'; + const newVersion = process.env.CLI_VERSION; + + if (!newVersion) { + console.error('Must define a CLI_VERSION environment variable to use with this script.'); + return; + } + + updateJson(tree, packageJsonPath, (pkgJson) => { + pkgJson.version = newVersion; + return pkgJson; + }); + + console.log(`updated CLI version to ${newVersion}`); } diff --git a/libs/tools/src/generators/replace-ui-version/generator.ts b/libs/tools/src/generators/replace-ui-version/generator.ts index 9abde0bc2..bbc7f5e57 100644 --- a/libs/tools/src/generators/replace-ui-version/generator.ts +++ b/libs/tools/src/generators/replace-ui-version/generator.ts @@ -1,4 +1,4 @@ -import { type Tree, formatFiles, updateJson } from '@nx/devkit'; +import { type Tree, formatFiles, readJsonFile, updateJson } from '@nx/devkit'; import { readdir, stat } from 'node:fs/promises'; import { join } from 'node:path'; import process from 'node:process'; @@ -22,16 +22,35 @@ async function recursivelyFindRelativePackageJsonFilePaths(startingDir: string): const getSpartanDependencyKeys = (dependencies?: Record): string[] => Object.keys(dependencies ?? {}).filter((key) => key.startsWith('@spartan-ng')); +const replaceUiVersionInCliVersionsFile = (tree: Tree, oldVersion: string, newVersion: string) => { + const filePath = `libs/cli/src/generators/base/versions.ts`; + let contents = tree.read(filePath).toString(); + contents = contents.replaceAll(oldVersion, newVersion); + tree.write(filePath, contents); +}; + export default async function replaceUiVersionGenerator(tree: Tree, options: ReplaceUiVersionGeneratorSchema) { const relativePackageJsonFilePaths = await recursivelyFindRelativePackageJsonFilePaths('libs/ui'); + // this goes into the accordion's package.json, which should always be defined + // if there is no version there we should definitely not move forward + const oldVersion = readJsonFile(relativePackageJsonFilePaths[0]).version; const newVersion = process.env.UI_VERSION; + if (!oldVersion) { + console.error( + "Unable to find old version in our accordion's package.json, which we use as source of truth because its good enough.", + ); + return; + } + if (!newVersion) { - console.error('Must define a VERSION environment variable to use with this script'); + console.error('Must define a UI_VERSION environment variable to use with this script.'); return; } + console.log(`Updating UI libs version from ${oldVersion} to ${newVersion}`); + for (const packageJsonPath of relativePackageJsonFilePaths) { updateJson(tree, packageJsonPath, (pkgJson) => { const peerDependencyKeysToUpdate = getSpartanDependencyKeys(pkgJson.peerDependencies); @@ -46,5 +65,8 @@ export default async function replaceUiVersionGenerator(tree: Tree, options: Rep }); } + console.log(`Reflecting those changes in versions.ts file of the CLI`); + replaceUiVersionInCliVersionsFile(tree, oldVersion, newVersion); + await formatFiles(tree); } diff --git a/package.json b/package.json index b7c557d14..aedae2558 100644 --- a/package.json +++ b/package.json @@ -16,11 +16,14 @@ "lint": "nx run-many --target=lint --parallel", "pre-publish": "pnpm run prepare-cli && pnpm run format", "prepare": "git config core.hookspath .githooks", - "prepare-cli": "nx g @spartan-ng/tools:hlm-to-cli-generator", - "start": "nx serve app", - "storybook": "nx storybook ui-storybook", - "test": "nx run-many --target test --all" + "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0", + "prepare-release": "nx g @spartan-ng/tools:replace-ui-version && nx g @spartan-ng/tools:hlm-to-cli-generator && nx g @spartan-ng/tools:replace-cli-version", + "pre-publish": "pnpm run prepare-release && pnpm run format", + "publish-ui": "nx run-many --target=release --projects=tag:scope:core,tag:scope:brain --parallel=1", + "publish-cli": "nx run-many --target=release --projects=tag:scope:cli --parallel=1", + "publish": "pnpm run pre-publish && pnpm run publish-ui && pnpm run publish-cli" }, + "private": true, "dependencies": { "@analogjs/content": "1.9.4", "@analogjs/router": "1.9.4", From 653d0269b1485ddcd5167da82304ffb7893fd311 Mon Sep 17 00:00:00 2001 From: robingotz Date: Mon, 2 Dec 2024 20:14:40 +0100 Subject: [PATCH 04/38] chore: fix linting errors --- libs/tools/src/generators/replace-cli-version/generator.ts | 3 +-- libs/tools/src/generators/replace-cli-version/schema.d.ts | 1 - libs/tools/src/generators/replace-ui-version/generator.ts | 3 +-- libs/tools/src/generators/replace-ui-version/schema.d.ts | 1 - 4 files changed, 2 insertions(+), 6 deletions(-) delete mode 100644 libs/tools/src/generators/replace-cli-version/schema.d.ts delete mode 100644 libs/tools/src/generators/replace-ui-version/schema.d.ts diff --git a/libs/tools/src/generators/replace-cli-version/generator.ts b/libs/tools/src/generators/replace-cli-version/generator.ts index fbbaf8b0e..2edd653ff 100644 --- a/libs/tools/src/generators/replace-cli-version/generator.ts +++ b/libs/tools/src/generators/replace-cli-version/generator.ts @@ -1,8 +1,7 @@ import { type Tree, updateJson } from '@nx/devkit'; import process from 'node:process'; -import type { ReplaceCliVersionGeneratorSchema } from './schema'; -export default async function replaceCliVersionGenerator(tree: Tree, options: ReplaceCliVersionGeneratorSchema) { +export default async function replaceCliVersionGenerator(tree: Tree) { const packageJsonPath = 'libs/cli/package.json'; const newVersion = process.env.CLI_VERSION; diff --git a/libs/tools/src/generators/replace-cli-version/schema.d.ts b/libs/tools/src/generators/replace-cli-version/schema.d.ts deleted file mode 100644 index 2d74dd8ae..000000000 --- a/libs/tools/src/generators/replace-cli-version/schema.d.ts +++ /dev/null @@ -1 +0,0 @@ -export interface ReplaceCliVersionGeneratorSchema {} diff --git a/libs/tools/src/generators/replace-ui-version/generator.ts b/libs/tools/src/generators/replace-ui-version/generator.ts index bbc7f5e57..6cc05baaa 100644 --- a/libs/tools/src/generators/replace-ui-version/generator.ts +++ b/libs/tools/src/generators/replace-ui-version/generator.ts @@ -2,7 +2,6 @@ import { type Tree, formatFiles, readJsonFile, updateJson } from '@nx/devkit'; import { readdir, stat } from 'node:fs/promises'; import { join } from 'node:path'; import process from 'node:process'; -import type { ReplaceUiVersionGeneratorSchema } from './schema'; async function recursivelyFindRelativePackageJsonFilePaths(startingDir: string): Promise { let results = []; @@ -29,7 +28,7 @@ const replaceUiVersionInCliVersionsFile = (tree: Tree, oldVersion: string, newVe tree.write(filePath, contents); }; -export default async function replaceUiVersionGenerator(tree: Tree, options: ReplaceUiVersionGeneratorSchema) { +export default async function replaceUiVersionGenerator(tree: Tree) { const relativePackageJsonFilePaths = await recursivelyFindRelativePackageJsonFilePaths('libs/ui'); // this goes into the accordion's package.json, which should always be defined diff --git a/libs/tools/src/generators/replace-ui-version/schema.d.ts b/libs/tools/src/generators/replace-ui-version/schema.d.ts deleted file mode 100644 index c633007c9..000000000 --- a/libs/tools/src/generators/replace-ui-version/schema.d.ts +++ /dev/null @@ -1 +0,0 @@ -export interface ReplaceUiVersionGeneratorSchema {} From 259d29d6ab96d1fb0bcb7d86a268cacc32d7e07e Mon Sep 17 00:00:00 2001 From: robingotz Date: Mon, 2 Dec 2024 20:33:42 +0100 Subject: [PATCH 05/38] build: update semantic release config --- package.json | 9 ++++----- pnpm-lock.yaml | 22 ---------------------- release.config.mjs | 16 ++++++++++------ 3 files changed, 14 insertions(+), 33 deletions(-) diff --git a/package.json b/package.json index aedae2558..b124b441f 100644 --- a/package.json +++ b/package.json @@ -18,10 +18,10 @@ "prepare": "git config core.hookspath .githooks", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0", "prepare-release": "nx g @spartan-ng/tools:replace-ui-version && nx g @spartan-ng/tools:hlm-to-cli-generator && nx g @spartan-ng/tools:replace-cli-version", - "pre-publish": "pnpm run prepare-release && pnpm run format", - "publish-ui": "nx run-many --target=release --projects=tag:scope:core,tag:scope:brain --parallel=1", - "publish-cli": "nx run-many --target=release --projects=tag:scope:cli --parallel=1", - "publish": "pnpm run pre-publish && pnpm run publish-ui && pnpm run publish-cli" + "pre-release": "pnpm run prepare-release && pnpm run format", + "release-ui": "nx run-many --target=release --projects=tag:scope:core,tag:scope:brain --parallel=1", + "release-cli": "nx run-many --target=release --projects=tag:scope:cli --parallel=1", + "release": "pnpm run pre-release && pnpm run release-ui && pnpm run release-cli" }, "private": true, "dependencies": { @@ -169,7 +169,6 @@ "prettier-plugin-organize-imports": "^4.1.0", "prettier-plugin-packagejson": "^2.5.6", "prettier-plugin-tailwindcss": "^0.6.8", - "replace-json-property": "^1.9.0", "rollup": "^4.22.5", "rollup-plugin-typescript-paths": "^1.5.0", "rollup-plugin-visualizer": "^5.12.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1fa66188c..74655127d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -435,9 +435,6 @@ importers: prettier-plugin-tailwindcss: specifier: ^0.6.8 version: 0.6.9(prettier-plugin-organize-imports@4.1.0(prettier@3.3.3)(typescript@5.5.4))(prettier@3.3.3) - replace-json-property: - specifier: ^1.9.0 - version: 1.9.0 rollup: specifier: ^4.22.5 version: 4.27.3 @@ -8697,9 +8694,6 @@ packages: jsonfile@4.0.0: resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==} - jsonfile@5.0.0: - resolution: {integrity: sha512-NQRZ5CRo74MhMMC3/3r5g2k4fjodJ/wh8MxjFbCViWKFjxrnudWSY5vomh+23ZaXzAS7J3fBZIR2dV6WbmfM0w==} - jsonfile@6.1.0: resolution: {integrity: sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==} @@ -10922,10 +10916,6 @@ packages: renderkid@3.0.0: resolution: {integrity: sha512-q/7VIQA8lmM1hF+jn+sFSPWGlMkSAeNYcPLmDQx2zzuiDfaLrOmumR8iaUKlenFgh0XRPIUeSPlH3A+AW3Z5pg==} - replace-json-property@1.9.0: - resolution: {integrity: sha512-+X6pZXsXSUKT9OzpJQjeDgLp9d0Ck7fsLZcNLhVL29XkwmB5oBz5T3fovs23/P0rLpzbCXrzG9/mbnyDrau+pw==} - hasBin: true - request-progress@3.0.0: resolution: {integrity: sha512-MnWzEHHaxHO2iWiQuHrUPBi/1WeBf5PkxQqNyNvLl9VAYSdXkP8tQ3pBSeCPD+yw0v0Aq1zosWLz0BdeXpWwZg==} @@ -22980,12 +22970,6 @@ snapshots: optionalDependencies: graceful-fs: 4.2.11 - jsonfile@5.0.0: - dependencies: - universalify: 0.1.2 - optionalDependencies: - graceful-fs: 4.2.11 - jsonfile@6.1.0: dependencies: universalify: 2.0.1 @@ -25351,12 +25335,6 @@ snapshots: lodash: 4.17.21 strip-ansi: 6.0.1 - replace-json-property@1.9.0: - dependencies: - chalk: 4.1.2 - commander: 2.20.3 - jsonfile: 5.0.0 - request-progress@3.0.0: dependencies: throttleit: 1.0.1 diff --git a/release.config.mjs b/release.config.mjs index a38165f5f..e395bc514 100644 --- a/release.config.mjs +++ b/release.config.mjs @@ -1,5 +1,5 @@ export default { - branches: ['main'], + branches: ['main', { name: 'alpha', prerelease: true }], preset: 'conventionalcommits', presetConfig: { types: [ @@ -16,7 +16,6 @@ export default { releaseRules: [{ type: 'refactor', release: 'patch' }], plugins: [ '@semantic-release/commit-analyzer', - '@semantic-release/release-notes-generator', [ '@semantic-release/changelog', { @@ -26,15 +25,20 @@ export default { [ '@semantic-release/exec', { - prepareCmd: - 'VERSION=${nextRelease.version} npx nx run-many -t release --parallel=1 && VERSION=${nextRelease.version} npx -p replace-json-property rjp ./package.json version ${nextRelease.version}', + prepareCmd: 'TAG=latest,UI_VERSION=${nextRelease.version},CLI_VERSION=${nextRelease.version} pnpm run release', }, ], [ '@semantic-release/git', { - assets: ['libs/**/package.json', 'package.json', 'CHANGELOG.md'], - message: 'chore(release): -v${nextRelease.version} [skip ci]\n\n${nextRelease.notes}', + assets: [ + 'libs/cli/package.json', + 'libs/cli/src/generators/base/versions.ts', + 'libs/cli/src/generators/ui/supported-ui-libraries.json', + 'libs/ui/**/package.json', + 'CHANGELOG.md', + ], + message: 'chore: release ${nextRelease.version} [skip ci]', }, ], ], From 14c3863c2c10bc7c7ca767189c783d61121d8af4 Mon Sep 17 00:00:00 2001 From: robingotz Date: Mon, 2 Dec 2024 21:04:59 +0100 Subject: [PATCH 06/38] build: use same VERSION env var for ui and cli --- .../src/generators/replace-cli-version/generator.ts | 4 ++-- .../tools/src/generators/replace-ui-version/generator.ts | 9 +++++++-- package.json | 2 +- release.config.mjs | 3 ++- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/libs/tools/src/generators/replace-cli-version/generator.ts b/libs/tools/src/generators/replace-cli-version/generator.ts index 2edd653ff..c3a242831 100644 --- a/libs/tools/src/generators/replace-cli-version/generator.ts +++ b/libs/tools/src/generators/replace-cli-version/generator.ts @@ -3,10 +3,10 @@ import process from 'node:process'; export default async function replaceCliVersionGenerator(tree: Tree) { const packageJsonPath = 'libs/cli/package.json'; - const newVersion = process.env.CLI_VERSION; + const newVersion = process.env.VERSION; if (!newVersion) { - console.error('Must define a CLI_VERSION environment variable to use with this script.'); + console.error('Must define a VERSION environment variable to use with this script.'); return; } diff --git a/libs/tools/src/generators/replace-ui-version/generator.ts b/libs/tools/src/generators/replace-ui-version/generator.ts index 6cc05baaa..8e306e90c 100644 --- a/libs/tools/src/generators/replace-ui-version/generator.ts +++ b/libs/tools/src/generators/replace-ui-version/generator.ts @@ -34,7 +34,7 @@ export default async function replaceUiVersionGenerator(tree: Tree) { // this goes into the accordion's package.json, which should always be defined // if there is no version there we should definitely not move forward const oldVersion = readJsonFile(relativePackageJsonFilePaths[0]).version; - const newVersion = process.env.UI_VERSION; + const newVersion = process.env.VERSION; if (!oldVersion) { console.error( @@ -44,7 +44,12 @@ export default async function replaceUiVersionGenerator(tree: Tree) { } if (!newVersion) { - console.error('Must define a UI_VERSION environment variable to use with this script.'); + console.error('Must define a VERSION environment variable to use with this script.'); + return; + } + + if (oldVersion === newVersion) { + console.error('Old version cannot be the same as new version'); return; } diff --git a/package.json b/package.json index b124b441f..e2a4f5cd4 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "pre-release": "pnpm run prepare-release && pnpm run format", "release-ui": "nx run-many --target=release --projects=tag:scope:core,tag:scope:brain --parallel=1", "release-cli": "nx run-many --target=release --projects=tag:scope:cli --parallel=1", - "release": "pnpm run pre-release && pnpm run release-ui && pnpm run release-cli" + "release": "pnpm run release-ui && pnpm run release-cli" }, "private": true, "dependencies": { diff --git a/release.config.mjs b/release.config.mjs index e395bc514..acba2e52d 100644 --- a/release.config.mjs +++ b/release.config.mjs @@ -25,7 +25,8 @@ export default { [ '@semantic-release/exec', { - prepareCmd: 'TAG=latest,UI_VERSION=${nextRelease.version},CLI_VERSION=${nextRelease.version} pnpm run release', + prepareCmd: 'TAG=latest,VERSION=${nextRelease.version} pnpm run pre-release', + releaseCmd: 'TAG=latest,VERSION=${nextRelease.version} pnpm run release', }, ], [ From 100fc80a541d582eeca5854b3d7ec9b4a2170c7d Mon Sep 17 00:00:00 2001 From: robingotz Date: Tue, 3 Dec 2024 08:43:12 +0100 Subject: [PATCH 07/38] fix: remove confusing comment --- .../executors/release/build-update-publish/executor.spec.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/tools/src/executors/release/build-update-publish/executor.spec.ts b/libs/tools/src/executors/release/build-update-publish/executor.spec.ts index dea7b8902..2c7f53575 100644 --- a/libs/tools/src/executors/release/build-update-publish/executor.spec.ts +++ b/libs/tools/src/executors/release/build-update-publish/executor.spec.ts @@ -18,8 +18,7 @@ describe('BuildUpdatePublish Executor', () => { // Mock the project helper, updateVersion, npmPublish, and execSync jest.spyOn(projectHelper, 'getProjectName').mockReturnValue(libName); - // Mock updateVersion and npmPublish to return { success: true } - jest.spyOn(updateVersion, 'default').mockImplementation(async () => Promise.resolve({ success: true })); + // Mock npmPublish to return { success: true } jest.spyOn(npmPublish, 'default').mockImplementation(async () => Promise.resolve({ success: true })); // execSync is already mocked globally by jest.mock From 601e3a0d833a5c0d32095dbd8ded08930750c5dc Mon Sep 17 00:00:00 2001 From: robingotz Date: Tue, 3 Dec 2024 08:43:44 +0100 Subject: [PATCH 08/38] fix: add regex only updating spartan specific versions and a unit test to make sure we don't accidentally mess with other packages --- .../replace-ui-version/generator.spec.ts | 43 +++++++++++++++++-- .../replace-ui-version/generator.ts | 20 ++++++++- package.json | 8 ++-- 3 files changed, 61 insertions(+), 10 deletions(-) diff --git a/libs/tools/src/generators/replace-ui-version/generator.spec.ts b/libs/tools/src/generators/replace-ui-version/generator.spec.ts index b88adb7e0..a9dd398de 100644 --- a/libs/tools/src/generators/replace-ui-version/generator.spec.ts +++ b/libs/tools/src/generators/replace-ui-version/generator.spec.ts @@ -1,20 +1,55 @@ import { type Tree, readProjectConfiguration } from '@nx/devkit'; import { createTreeWithEmptyWorkspace } from '@nx/devkit/testing'; -import { replaceUiVersionGenerator } from './generator'; -import type { ReplaceUiVersionGeneratorSchema } from './schema'; +import replaceUiVersionGenerator, { replaceSpartanVersions } from './generator'; describe('replace-cli-version generator', () => { let tree: Tree; - const options: ReplaceUiVersionGeneratorSchema = {}; beforeEach(() => { tree = createTreeWithEmptyWorkspace(); }); it.skip('should run successfully', async () => { - await replaceUiVersionGenerator(tree, options); + await replaceUiVersionGenerator(tree); const config = readProjectConfiguration(tree, 'test'); expect(config).toBeDefined(); }); }); + +describe('replaceSpartanVersions', () => { + it('should replace only SPARTAN-prefixed versions that match oldVersion', () => { + const input = ` + export const FALLBACK_ANGULAR_VERSION = '^18.0.0'; + export const SPARTAN_ACCORDION_BRAIN_VERSION = '3.0.2'; + export const SPARTAN_ALERT_DIALOG_BRAIN_VERSION = '3.0.2'; + export const TAILWINDCSS_VERSION = '3.0.2'; + `; + + const oldVersion = '3.0.2'; + const newVersion = '3.0.3'; + + const expectedOutput = ` + export const FALLBACK_ANGULAR_VERSION = '^18.0.0'; + export const SPARTAN_ACCORDION_BRAIN_VERSION = '3.0.3'; + export const SPARTAN_ALERT_DIALOG_BRAIN_VERSION = '3.0.3'; + export const TAILWINDCSS_VERSION = '3.0.2'; + `; + + const result = replaceSpartanVersions(input, oldVersion, newVersion); + expect(result).toBe(expectedOutput); + }); + + it('should not replace versions without the SPARTAN_ prefix', () => { + const input = ` + export const FALLBACK_ANGULAR_VERSION = '3.0.2'; + export const TAILWINDCSS_VERSION = '3.0.2'; + `; + + const oldVersion = '3.0.2'; + const newVersion = '3.0.3'; + + const result = replaceSpartanVersions(input, oldVersion, newVersion); + expect(result).toBe(input); // No changes expected + }); +}); diff --git a/libs/tools/src/generators/replace-ui-version/generator.ts b/libs/tools/src/generators/replace-ui-version/generator.ts index 8e306e90c..7883da8b6 100644 --- a/libs/tools/src/generators/replace-ui-version/generator.ts +++ b/libs/tools/src/generators/replace-ui-version/generator.ts @@ -21,10 +21,28 @@ async function recursivelyFindRelativePackageJsonFilePaths(startingDir: string): const getSpartanDependencyKeys = (dependencies?: Record): string[] => Object.keys(dependencies ?? {}).filter((key) => key.startsWith('@spartan-ng')); +export const replaceSpartanVersions = (content: string, oldVersion: string, newVersion: string): string => { + /** + * Regular expression to match SPARTAN-prefixed version constants: + * - `(SPARTAN_[A-Z_]+_VERSION\\s*=\\s*['"])`: + * 1. `SPARTAN_`: Matches the exact prefix for the constant. + * 2. `[A-Z_]+`: Matches any uppercase letters and underscores (e.g., ACCORDION_BRAIN). + * 3. `_VERSION`: Ensures the constant ends with `_VERSION`. + * 4. `\\s*`: Matches zero or more spaces around the `=` sign. + * 5. `['"]`: Captures the opening quote (single or double). + * 6. Encloses the entire match before the version in group 1 (`$1`). + * - `${oldVersion}`: Matches the exact old version string. + * - `(['"])`: Captures the closing quote in group 2 (`$2`). + * - `g` flag: Ensures the regex replaces all matches globally, not just the first occurrence. + */ + const spartanVersionRegex = new RegExp(`(SPARTAN_[A-Z_]+_VERSION\\s*=\\s*['"])${oldVersion}(['"])`, 'g'); + return content.replace(spartanVersionRegex, `$1${newVersion}$2`); +}; + const replaceUiVersionInCliVersionsFile = (tree: Tree, oldVersion: string, newVersion: string) => { const filePath = `libs/cli/src/generators/base/versions.ts`; let contents = tree.read(filePath).toString(); - contents = contents.replaceAll(oldVersion, newVersion); + contents = replaceSpartanVersions(contents, oldVersion, newVersion); tree.write(filePath, contents); }; diff --git a/package.json b/package.json index e2a4f5cd4..5f4b31cbc 100644 --- a/package.json +++ b/package.json @@ -15,15 +15,13 @@ "format": "nx format --write", "lint": "nx run-many --target=lint --parallel", "pre-publish": "pnpm run prepare-cli && pnpm run format", + "pre-release": "pnpm run prepare-release && pnpm run format", "prepare": "git config core.hookspath .githooks", - "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0", "prepare-release": "nx g @spartan-ng/tools:replace-ui-version && nx g @spartan-ng/tools:hlm-to-cli-generator && nx g @spartan-ng/tools:replace-cli-version", - "pre-release": "pnpm run prepare-release && pnpm run format", - "release-ui": "nx run-many --target=release --projects=tag:scope:core,tag:scope:brain --parallel=1", + "release": "pnpm run release-ui && pnpm run release-cli", "release-cli": "nx run-many --target=release --projects=tag:scope:cli --parallel=1", - "release": "pnpm run release-ui && pnpm run release-cli" + "release-ui": "nx run-many --target=release --projects=tag:scope:core,tag:scope:brain --parallel=1" }, - "private": true, "dependencies": { "@analogjs/content": "1.9.4", "@analogjs/router": "1.9.4", From 6d6e9e41ab0be7279460ae860ffa64f33ae90682 Mon Sep 17 00:00:00 2001 From: robingotz Date: Mon, 9 Dec 2024 18:37:17 +0100 Subject: [PATCH 09/38] fix: remove .DS_Store files and filter helm packages to not add them to package.json --- libs/cli/src/generators/ui/generator.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/cli/src/generators/ui/generator.ts b/libs/cli/src/generators/ui/generator.ts index 9fcb47205..aa31f24f0 100644 --- a/libs/cli/src/generators/ui/generator.ts +++ b/libs/cli/src/generators/ui/generator.ts @@ -59,7 +59,7 @@ async function createPrimitiveLibraries( if (primitiveName === 'collapsible') return; const internalName = availablePrimitives[primitiveName].internalName; - const peerDependencies = availablePrimitives[primitiveName].peerDependencies; + const peerDependencies = removeHelmKeys(availablePrimitives[primitiveName].peerDependencies); const { generator } = await import( // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore @@ -108,6 +108,9 @@ const replaceContextAndMenuBar = async (primtivesToCreate: string[], silent = fa } }; +const removeHelmKeys = (obj: Record) => + Object.fromEntries(Object.entries(obj).filter(([key]) => !key.toLowerCase().includes('helm'))); + interface ComponentDefintions { [componentName: string]: { internalName: string; From d4b4de8f1fe24fa4bdeddfdab58d32b5b962d2db Mon Sep 17 00:00:00 2001 From: robingotz Date: Mon, 2 Dec 2024 22:30:40 +0100 Subject: [PATCH 10/38] chore: remove unused script --- tools/scripts/publish.mjs | 59 --------------------------------------- 1 file changed, 59 deletions(-) delete mode 100644 tools/scripts/publish.mjs diff --git a/tools/scripts/publish.mjs b/tools/scripts/publish.mjs deleted file mode 100644 index 77b5dc91e..000000000 --- a/tools/scripts/publish.mjs +++ /dev/null @@ -1,59 +0,0 @@ -/** - * This is a minimal script to publish your package to "npm". - * This is meant to be used as-is or customize as you see fit. - * - * This script is executed on "dist/path/to/library" as "cwd" by default. - * - * You might need to authenticate with NPM before running this script. - */ - -import devkit from '@nx/devkit'; -import chalk from 'chalk'; -import { execSync } from 'node:child_process'; -import { readFileSync, writeFileSync } from 'node:fs'; - -const { readCachedProjectGraph } = devkit; - -function invariant(condition, message) { - if (!condition) { - console.error(chalk.bold.red(message)); - process.exit(1); - } -} - -// Executing publish script: node path/to/publish.mjs {name} --version {version} --tag {tag} -// Default "tag" to "next" so we won't publish the "latest" tag by accident. -const [, , name, version, tag = 'next'] = process.argv; - -// A simple SemVer validation to validate the version -const validVersion = /^\d+\.\d+\.\d+(-\w+\.\d+)?/; -invariant( - version && validVersion.test(version), - `No version provided or version did not match Semantic Versioning, expected: #.#.#-tag.# or #.#.#, got ${version}.`, -); - -const graph = readCachedProjectGraph(); -const project = graph.nodes[name]; - -invariant(project, `Could not find project "${name}" in the workspace. Is the project.json configured correctly?`); - -const outputPath = project.data?.targets?.build?.options?.outputPath; -invariant( - outputPath, - `Could not find "build.options.outputPath" of project "${name}". Is project.json configured correctly?`, -); - -process.chdir(outputPath); - -// Updating the version in "package.json" before publishing -try { - const json = JSON.parse(readFileSync('package.json').toString()); - json.version = version; - writeFileSync('package.json', JSON.stringify(json, null, 2)); -} catch (e) { - console.error(chalk.bold.red('Error reading package.json file from library build output.')); - console.error(e); -} - -// Execute "npm publish" to publish -execSync(`npm publish --access public --tag ${tag}`); From bf7e8d665470c53efb905639018c744e86a937b7 Mon Sep 17 00:00:00 2001 From: robingotz Date: Mon, 2 Dec 2024 16:31:15 +0100 Subject: [PATCH 11/38] chore: add generator that auto-increments current version of released assets --- libs/tools/generators.json | 5 ++++ .../auto-increment-version/generator.spec.ts | 18 ++++++++++++++ .../auto-increment-version/generator.ts | 24 +++++++++++++++++++ .../auto-increment-version/schema.json | 7 ++++++ .../replace-cli-version/generator.ts | 4 ++-- .../replace-ui-version/generator.ts | 8 +++++-- ...y-find-relative-package-json-file-paths.ts | 17 +++++++++++++ tools/generators/.gitkeep | 0 8 files changed, 79 insertions(+), 4 deletions(-) create mode 100644 libs/tools/src/generators/auto-increment-version/generator.spec.ts create mode 100644 libs/tools/src/generators/auto-increment-version/generator.ts create mode 100644 libs/tools/src/generators/auto-increment-version/schema.json create mode 100644 libs/tools/src/utils/recursively-find-relative-package-json-file-paths.ts delete mode 100644 tools/generators/.gitkeep diff --git a/libs/tools/generators.json b/libs/tools/generators.json index 38de92702..edf189f9d 100644 --- a/libs/tools/generators.json +++ b/libs/tools/generators.json @@ -1,5 +1,10 @@ { "generators": { + "auto-increment-version": { + "factory": "./src/generators/auto-increment-version/generator", + "schema": "./src/generators/auto-increment-version/schema.json", + "description": "During alpha we are using this to automatically increment the version number for nightly releases" + }, "hlm-to-cli-generator": { "factory": "./src/generators/hlm-to-cli-generator/generator", "schema": "./src/generators/hlm-to-cli-generator/schema.json", diff --git a/libs/tools/src/generators/auto-increment-version/generator.spec.ts b/libs/tools/src/generators/auto-increment-version/generator.spec.ts new file mode 100644 index 000000000..b8a6fb854 --- /dev/null +++ b/libs/tools/src/generators/auto-increment-version/generator.spec.ts @@ -0,0 +1,18 @@ +import { type Tree, readProjectConfiguration } from '@nx/devkit'; +import { createTreeWithEmptyWorkspace } from '@nx/devkit/testing'; + +import autoIncrementVersion from './generator'; + +describe('replace-cli-version generator', () => { + let tree: Tree; + + beforeEach(() => { + tree = createTreeWithEmptyWorkspace(); + }); + + it.skip('should run successfully', async () => { + await autoIncrementVersion(tree); + const config = readProjectConfiguration(tree, 'test'); + expect(config).toBeDefined(); + }); +}); diff --git a/libs/tools/src/generators/auto-increment-version/generator.ts b/libs/tools/src/generators/auto-increment-version/generator.ts new file mode 100644 index 000000000..0cfb40047 --- /dev/null +++ b/libs/tools/src/generators/auto-increment-version/generator.ts @@ -0,0 +1,24 @@ +import { type Tree, readJsonFile } from '@nx/devkit'; +import { recursivelyFindRelativePackageJsonFilePaths } from '../../utils/recursively-find-relative-package-json-file-paths'; +import replaceCliVersionGenerator from '../replace-cli-version/generator'; +import replaceUiVersionGenerator from '../replace-ui-version/generator'; + +export default async function autoIncrementVersion(tree: Tree): Promise { + const relativePackageJsonFilePaths = await recursivelyFindRelativePackageJsonFilePaths('libs/ui'); + + // this goes into the accordion's package.json, which should always be defined + // if there is no version there we should definitely not move forward + const oldVersion = readJsonFile(relativePackageJsonFilePaths[0]).version as string; + const [prefix, branchAndNumber] = oldVersion.split('-'); + const [branch, versionNumber] = branchAndNumber.split('.'); + const newVersionNumber = +versionNumber + 1; + + const newVersion = `${prefix}-${branch}.${newVersionNumber}`; + + console.log( + `preparing release with auto-incremented version ${newVersion} which should be 1 more than ${oldVersion}`, + ); + + await replaceUiVersionGenerator(tree, { newVersion }); + await replaceCliVersionGenerator(tree, { newVersion }); +} diff --git a/libs/tools/src/generators/auto-increment-version/schema.json b/libs/tools/src/generators/auto-increment-version/schema.json new file mode 100644 index 000000000..c763d9499 --- /dev/null +++ b/libs/tools/src/generators/auto-increment-version/schema.json @@ -0,0 +1,7 @@ +{ + "$schema": "http://json-schema.org/schema", + "$id": "AutoIncrementVersionGenerator", + "title": "", + "type": "object", + "properties": {} +} diff --git a/libs/tools/src/generators/replace-cli-version/generator.ts b/libs/tools/src/generators/replace-cli-version/generator.ts index c3a242831..bde0eb99e 100644 --- a/libs/tools/src/generators/replace-cli-version/generator.ts +++ b/libs/tools/src/generators/replace-cli-version/generator.ts @@ -1,9 +1,9 @@ import { type Tree, updateJson } from '@nx/devkit'; import process from 'node:process'; -export default async function replaceCliVersionGenerator(tree: Tree) { +export default async function replaceCliVersionGenerator(tree: Tree, options?: { newVersion: string }): Promise { const packageJsonPath = 'libs/cli/package.json'; - const newVersion = process.env.VERSION; + const newVersion = options?.newVersion ?? process.env.VERSION; if (!newVersion) { console.error('Must define a VERSION environment variable to use with this script.'); diff --git a/libs/tools/src/generators/replace-ui-version/generator.ts b/libs/tools/src/generators/replace-ui-version/generator.ts index 7883da8b6..3261c59ae 100644 --- a/libs/tools/src/generators/replace-ui-version/generator.ts +++ b/libs/tools/src/generators/replace-ui-version/generator.ts @@ -46,8 +46,12 @@ const replaceUiVersionInCliVersionsFile = (tree: Tree, oldVersion: string, newVe tree.write(filePath, contents); }; -export default async function replaceUiVersionGenerator(tree: Tree) { - const relativePackageJsonFilePaths = await recursivelyFindRelativePackageJsonFilePaths('libs/ui'); +export default async function replaceUiVersionGenerator(tree: Tree, options: { newVersion: string }): Promise { + const relativePackageJsonFilePaths = [ + ...(await recursivelyFindRelativePackageJsonFilePaths('libs/ui')), + // this is going to be our main package going forward which contains all primitives as secondary entry points + 'libs/brain/package.json', + ]; // this goes into the accordion's package.json, which should always be defined // if there is no version there we should definitely not move forward diff --git a/libs/tools/src/utils/recursively-find-relative-package-json-file-paths.ts b/libs/tools/src/utils/recursively-find-relative-package-json-file-paths.ts new file mode 100644 index 000000000..ec592b22b --- /dev/null +++ b/libs/tools/src/utils/recursively-find-relative-package-json-file-paths.ts @@ -0,0 +1,17 @@ +import { readdir, stat } from 'node:fs/promises'; +import { join } from 'node:path'; + +export async function recursivelyFindRelativePackageJsonFilePaths(startingDir: string): Promise { + let results = []; + const list = await readdir(startingDir); + for (const file of list) { + const filePath = join(startingDir, file); + const fileStat = await stat(filePath); + if (fileStat.isDirectory()) { + results = results.concat(await recursivelyFindRelativePackageJsonFilePaths(filePath)); + } else if (file === 'package.json') { + results.push(filePath); + } + } + return results; +} diff --git a/tools/generators/.gitkeep b/tools/generators/.gitkeep deleted file mode 100644 index e69de29bb..000000000 From 792fbd600e2dc6475a63dd80a91996d466ae67d5 Mon Sep 17 00:00:00 2001 From: robingotz Date: Mon, 2 Dec 2024 16:31:31 +0100 Subject: [PATCH 12/38] chore: add scripts for nightly release --- package.json | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 5f4b31cbc..e7c1d6cc0 100644 --- a/package.json +++ b/package.json @@ -16,11 +16,14 @@ "lint": "nx run-many --target=lint --parallel", "pre-publish": "pnpm run prepare-cli && pnpm run format", "pre-release": "pnpm run prepare-release && pnpm run format", - "prepare": "git config core.hookspath .githooks", "prepare-release": "nx g @spartan-ng/tools:replace-ui-version && nx g @spartan-ng/tools:hlm-to-cli-generator && nx g @spartan-ng/tools:replace-cli-version", - "release": "pnpm run release-ui && pnpm run release-cli", + "prepare-regular-release": "nx g @spartan-ng/tools:replace-ui-version && nx g @spartan-ng/tools:hlm-to-cli-generator && nx g @spartan-ng/tools:replace-cli-version", + "pre-regular-release": "pnpm run prepare-regular-release && pnpm run format", + "prepare-nightly-release": "nx g @spartan-ng/tools:auto-increment-version && nx g @spartan-ng/tools:hlm-to-cli-generator", + "pre-nightly-release": "pnpm run prepare-nightly-release && pnpm run format", + "release-ui": "nx run-many --target=release --projects=tag:scope:core,tag:scope:brain --parallel=1", "release-cli": "nx run-many --target=release --projects=tag:scope:cli --parallel=1", - "release-ui": "nx run-many --target=release --projects=tag:scope:core,tag:scope:brain --parallel=1" + "release": "pnpm run release-ui && pnpm run release-cli" }, "dependencies": { "@analogjs/content": "1.9.4", From 295b5f1eb2b1790d2000eef7a19a6e0753b960d0 Mon Sep 17 00:00:00 2001 From: robingotz Date: Mon, 2 Dec 2024 22:31:41 +0100 Subject: [PATCH 13/38] chore: add nightly release workflow --- .github/workflows/nightly-release.yml | 114 ++++++++++++++++++++++++++ .github/workflows/release.yml | 24 ------ 2 files changed, 114 insertions(+), 24 deletions(-) create mode 100644 .github/workflows/nightly-release.yml delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/nightly-release.yml new file mode 100644 index 000000000..b43021501 --- /dev/null +++ b/.github/workflows/nightly-release.yml @@ -0,0 +1,114 @@ +name: nightly-release + +on: + schedule: + cron: '0 5 * * *' + workflow_dispatch: + +jobs: + check_date: + runs-on: ubuntu-latest + name: Check latest commit + outputs: + should_run: ${{ steps.should_run.outputs.should_run }} + steps: + - uses: actions/checkout@v2 + - name: print latest_commit + run: echo ${{ github.sha }} + + - id: should_run + continue-on-error: true + name: check latest commit is less than a day + if: ${{ github.event_name == 'schedule' }} + run: test -z $(git rev-list --after="24 hours" ${{ github.sha }}) && echo "::set-output name=should_run::false" + + commitlint: + needs: check_date + if: ${{ needs.check_date.outputs.should_run != 'false' }} + + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + # Required by wagoid/commitlint-github-action + pull-requests: read + steps: + - uses: actions/checkout@v4 + with: + # Required by wagoid/commitlint-github-action + fetch-depth: 0 + - name: Install Node v22 + uses: actions/setup-node@v4 + with: + node-version-file: .node-version + - name: Install pnpm globally + run: npm install -g pnpm + - name: Lint commit messages + uses: wagoid/commitlint-github-action@v5 + with: + failOnWarnings: true + helpURL: https://github.com/goetzrobin/spartan/blob/main/CONTRIBUTING.md#-commit-message-guidelines + + format-and-lint: + needs: check_date + if: ${{ needs.check_date.outputs.should_run != 'false' }} + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + # Required by wagoid/commitlint-github-action + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version-file: .node-version + - name: Install PNPM globally + run: npm install -g pnpm + - name: Install Dependencies + run: pnpm install --frozen-lockfile + - name: lint + run: pnpm run lint + - name: format + run: pnpm nx format:check --base=origin/main + + build: + needs: check_date + if: ${{ needs.check_date.outputs.should_run != 'false' }} + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + # Required by wagoid/commitlint-github-action + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version-file: .node-version + - name: Install PNPM globally + run: npm install -g pnpm + - name: Install Dependencies + run: pnpm install --frozen-lockfile + - name: Build + run: pnpm run build + + publish: + needs: + - check_date + - build + if: ${{ needs.check_date.outputs.should_run != 'false' }} + + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + # Required by wagoid/commitlint-github-action + fetch-depth: 0 + - uses: actions/setup-node@v4 + with: + node-version-file: .node-version + - name: Install PNPM globally + run: npm install -g pnpm + - name: Install Dependencies + run: pnpm install --frozen-lockfile + - name: Release + run: pnpm run pre-nightly-release && pnpm run release diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 784e6345a..000000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: release - -on: - workflow_dispatch: - -env: - NODE_OPTIONS: --max-old-space-size=6144 - -jobs: - main: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version-file: .node-version - - name: Install PNPM globally - run: npm install -g pnpm - - name: Install Dependencies - run: pnpm install --frozen-lockfile - - name: Release - run: pnpx semantic-release - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} From 242a049d0a358535b53ed47ed1f3b83006d8f88a Mon Sep 17 00:00:00 2001 From: robingotz Date: Mon, 2 Dec 2024 22:34:08 +0100 Subject: [PATCH 14/38] fix: add missing dash --- .github/workflows/nightly-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/nightly-release.yml index b43021501..1abb9e18d 100644 --- a/.github/workflows/nightly-release.yml +++ b/.github/workflows/nightly-release.yml @@ -2,7 +2,7 @@ name: nightly-release on: schedule: - cron: '0 5 * * *' + - cron: '0 5 * * *' workflow_dispatch: jobs: From 74bb0a4a1424b124a7e649a644417d96138dd76a Mon Sep 17 00:00:00 2001 From: robingotz Date: Mon, 2 Dec 2024 16:44:23 +0100 Subject: [PATCH 15/38] chore: try on push for testing --- .github/workflows/nightly-release.yml | 6 +++--- package.json | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/nightly-release.yml index 1abb9e18d..70ed3e2c5 100644 --- a/.github/workflows/nightly-release.yml +++ b/.github/workflows/nightly-release.yml @@ -1,9 +1,9 @@ name: nightly-release on: - schedule: - - cron: '0 5 * * *' - workflow_dispatch: + push: + branches: + - "feat/nightly-builds" jobs: check_date: diff --git a/package.json b/package.json index e7c1d6cc0..ecebc3985 100644 --- a/package.json +++ b/package.json @@ -14,16 +14,16 @@ "e2e": "nx run-many --target e2e --projects=tag:scope:e2e --all --parallel=1", "format": "nx format --write", "lint": "nx run-many --target=lint --parallel", + "pre-nightly-release": "pnpm run prepare-nightly-release && pnpm run format", "pre-publish": "pnpm run prepare-cli && pnpm run format", - "pre-release": "pnpm run prepare-release && pnpm run format", - "prepare-release": "nx g @spartan-ng/tools:replace-ui-version && nx g @spartan-ng/tools:hlm-to-cli-generator && nx g @spartan-ng/tools:replace-cli-version", - "prepare-regular-release": "nx g @spartan-ng/tools:replace-ui-version && nx g @spartan-ng/tools:hlm-to-cli-generator && nx g @spartan-ng/tools:replace-cli-version", "pre-regular-release": "pnpm run prepare-regular-release && pnpm run format", + "pre-release": "pnpm run prepare-release && pnpm run format", "prepare-nightly-release": "nx g @spartan-ng/tools:auto-increment-version && nx g @spartan-ng/tools:hlm-to-cli-generator", - "pre-nightly-release": "pnpm run prepare-nightly-release && pnpm run format", - "release-ui": "nx run-many --target=release --projects=tag:scope:core,tag:scope:brain --parallel=1", + "prepare-regular-release": "nx g @spartan-ng/tools:replace-ui-version && nx g @spartan-ng/tools:hlm-to-cli-generator && nx g @spartan-ng/tools:replace-cli-version", + "prepare-release": "nx g @spartan-ng/tools:replace-ui-version && nx g @spartan-ng/tools:hlm-to-cli-generator && nx g @spartan-ng/tools:replace-cli-version", + "release": "pnpm run release-ui && pnpm run release-cli", "release-cli": "nx run-many --target=release --projects=tag:scope:cli --parallel=1", - "release": "pnpm run release-ui && pnpm run release-cli" + "release-ui": "nx run-many --target=release --projects=tag:scope:core,tag:scope:brain --parallel=1" }, "dependencies": { "@analogjs/content": "1.9.4", From 94254830434131c177818a2dbac33384a3d8dccb Mon Sep 17 00:00:00 2001 From: robingotz Date: Mon, 9 Dec 2024 15:29:56 +0100 Subject: [PATCH 16/38] build: auto fix version number in tools --- .github/workflows/nightly-release.yml | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/nightly-release.yml index 70ed3e2c5..d9e9769f2 100644 --- a/.github/workflows/nightly-release.yml +++ b/.github/workflows/nightly-release.yml @@ -3,7 +3,7 @@ name: nightly-release on: push: branches: - - "feat/nightly-builds" + - 'feat/nightly-builds' jobs: check_date: diff --git a/package.json b/package.json index ecebc3985..4229a93d4 100644 --- a/package.json +++ b/package.json @@ -14,12 +14,12 @@ "e2e": "nx run-many --target e2e --projects=tag:scope:e2e --all --parallel=1", "format": "nx format --write", "lint": "nx run-many --target=lint --parallel", - "pre-nightly-release": "pnpm run prepare-nightly-release && pnpm run format", "pre-publish": "pnpm run prepare-cli && pnpm run format", - "pre-regular-release": "pnpm run prepare-regular-release && pnpm run format", "pre-release": "pnpm run prepare-release && pnpm run format", "prepare-nightly-release": "nx g @spartan-ng/tools:auto-increment-version && nx g @spartan-ng/tools:hlm-to-cli-generator", "prepare-regular-release": "nx g @spartan-ng/tools:replace-ui-version && nx g @spartan-ng/tools:hlm-to-cli-generator && nx g @spartan-ng/tools:replace-cli-version", + "pre-regular-release": "pnpm run prepare-regular-release && pnpm run format && nx run tools:lint --fix", + "pre-nightly-release": "pnpm run prepare-nightly-release && pnpm run format && nx run tools:lint --fix", "prepare-release": "nx g @spartan-ng/tools:replace-ui-version && nx g @spartan-ng/tools:hlm-to-cli-generator && nx g @spartan-ng/tools:replace-cli-version", "release": "pnpm run release-ui && pnpm run release-cli", "release-cli": "nx run-many --target=release --projects=tag:scope:cli --parallel=1", From bc2fb571d2fe377668d195c73f14a71c9f041f6f Mon Sep 17 00:00:00 2001 From: robingotz Date: Mon, 9 Dec 2024 21:30:45 +0100 Subject: [PATCH 17/38] ci: set up automatic release and committing of changed files --- .github/workflows/nightly-release.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/nightly-release.yml index d9e9769f2..6238cc6ba 100644 --- a/.github/workflows/nightly-release.yml +++ b/.github/workflows/nightly-release.yml @@ -110,5 +110,16 @@ jobs: run: npm install -g pnpm - name: Install Dependencies run: pnpm install --frozen-lockfile + - name: Pre Release + run: pnpm run pre-nightly-release + - name: Get the current date time + id: datetime + run: echo "release_date=$(date '+%Y-%m-%d')" >> $GITHUB_OUTPUT + - name: Commit changes + uses: EndBug/add-and-commit@v9 + with: + author_name: Leonidas + author_email: leonidas@spartan.ng + message: 'nightly release ${{steps.datetime.outputs.release_date}} ⚡' - name: Release - run: pnpm run pre-nightly-release && pnpm run release + run: pnpm run release From 91b61917965f1e5c44d1561457e18f4c9f3eae99 Mon Sep 17 00:00:00 2001 From: robingotz Date: Mon, 9 Dec 2024 21:46:46 +0100 Subject: [PATCH 18/38] ci: give release step write permissions --- .github/workflows/nightly-release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/nightly-release.yml index 6238cc6ba..2a6c633f8 100644 --- a/.github/workflows/nightly-release.yml +++ b/.github/workflows/nightly-release.yml @@ -95,9 +95,12 @@ jobs: needs: - check_date - build + - format-and-lint if: ${{ needs.check_date.outputs.should_run != 'false' }} runs-on: ubuntu-latest + permissions: + contents: write steps: - uses: actions/checkout@v4 with: From a2919b38d8c3e7925ae83bbe0155aceecbebc329 Mon Sep 17 00:00:00 2001 From: robingotz Date: Mon, 9 Dec 2024 22:00:25 +0100 Subject: [PATCH 19/38] ci: check out branch correctly so we can commit it back --- .github/workflows/nightly-release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/nightly-release.yml index 2a6c633f8..66d75e6dd 100644 --- a/.github/workflows/nightly-release.yml +++ b/.github/workflows/nightly-release.yml @@ -106,6 +106,8 @@ jobs: with: # Required by wagoid/commitlint-github-action fetch-depth: 0 + repository: ${{ github.event.pull_request.head.repo.full_name }} + ref: ${{ github.event.pull_request.head.ref }} - uses: actions/setup-node@v4 with: node-version-file: .node-version From f3895211e86e895f3a1e33339ad24c03fec04d83 Mon Sep 17 00:00:00 2001 From: robingotz Date: Mon, 9 Dec 2024 22:15:07 +0100 Subject: [PATCH 20/38] ci: try to push to right place --- .github/workflows/nightly-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/nightly-release.yml index 66d75e6dd..5d18d1299 100644 --- a/.github/workflows/nightly-release.yml +++ b/.github/workflows/nightly-release.yml @@ -106,8 +106,7 @@ jobs: with: # Required by wagoid/commitlint-github-action fetch-depth: 0 - repository: ${{ github.event.pull_request.head.repo.full_name }} - ref: ${{ github.event.pull_request.head.ref }} + ref: ${{ github.head_ref }} - uses: actions/setup-node@v4 with: node-version-file: .node-version @@ -126,5 +125,6 @@ jobs: author_name: Leonidas author_email: leonidas@spartan.ng message: 'nightly release ${{steps.datetime.outputs.release_date}} ⚡' + push: origin HEAD:${{ github.head_ref }} - name: Release run: pnpm run release From 0c575e83224cfb2a23c4126e2050b8657a027592 Mon Sep 17 00:00:00 2001 From: robingotz Date: Tue, 10 Dec 2024 21:15:23 +0100 Subject: [PATCH 21/38] chore: reorder package.json --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 4229a93d4..81ff9d801 100644 --- a/package.json +++ b/package.json @@ -14,12 +14,12 @@ "e2e": "nx run-many --target e2e --projects=tag:scope:e2e --all --parallel=1", "format": "nx format --write", "lint": "nx run-many --target=lint --parallel", + "pre-nightly-release": "pnpm run prepare-nightly-release && pnpm run format && nx run tools:lint --fix", "pre-publish": "pnpm run prepare-cli && pnpm run format", + "pre-regular-release": "pnpm run prepare-regular-release && pnpm run format && nx run tools:lint --fix", "pre-release": "pnpm run prepare-release && pnpm run format", "prepare-nightly-release": "nx g @spartan-ng/tools:auto-increment-version && nx g @spartan-ng/tools:hlm-to-cli-generator", "prepare-regular-release": "nx g @spartan-ng/tools:replace-ui-version && nx g @spartan-ng/tools:hlm-to-cli-generator && nx g @spartan-ng/tools:replace-cli-version", - "pre-regular-release": "pnpm run prepare-regular-release && pnpm run format && nx run tools:lint --fix", - "pre-nightly-release": "pnpm run prepare-nightly-release && pnpm run format && nx run tools:lint --fix", "prepare-release": "nx g @spartan-ng/tools:replace-ui-version && nx g @spartan-ng/tools:hlm-to-cli-generator && nx g @spartan-ng/tools:replace-cli-version", "release": "pnpm run release-ui && pnpm run release-cli", "release-cli": "nx run-many --target=release --projects=tag:scope:cli --parallel=1", From fd21a04999d6d8f6a8ead38840a329b2c9a741a9 Mon Sep 17 00:00:00 2001 From: robingotz Date: Tue, 10 Dec 2024 21:18:20 +0100 Subject: [PATCH 22/38] fix: use newVersion to allow for auto increment script to work --- libs/tools/package.json | 1 - libs/tools/src/generators/replace-ui-version/generator.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/libs/tools/package.json b/libs/tools/package.json index 3cd97e022..c2c5b609f 100644 --- a/libs/tools/package.json +++ b/libs/tools/package.json @@ -9,7 +9,6 @@ "jsonc-eslint-parser": "^2.1.0", "nx": "20.1.1", "process": "0.11.10", - "replace-json-property": "^1.9.0", "tslib": "~2.7.0" }, "executors": "./executors.json", diff --git a/libs/tools/src/generators/replace-ui-version/generator.ts b/libs/tools/src/generators/replace-ui-version/generator.ts index 3261c59ae..e421890d8 100644 --- a/libs/tools/src/generators/replace-ui-version/generator.ts +++ b/libs/tools/src/generators/replace-ui-version/generator.ts @@ -56,7 +56,7 @@ export default async function replaceUiVersionGenerator(tree: Tree, options: { n // this goes into the accordion's package.json, which should always be defined // if there is no version there we should definitely not move forward const oldVersion = readJsonFile(relativePackageJsonFilePaths[0]).version; - const newVersion = process.env.VERSION; + const newVersion = options.newVersion ?? process.env.VERSION; if (!oldVersion) { console.error( From f269e237296bb0ae3fec7dc70bfd0a800cd64b25 Mon Sep 17 00:00:00 2001 From: robingotz Date: Tue, 10 Dec 2024 21:19:12 +0100 Subject: [PATCH 23/38] chore: update branch name --- .github/workflows/nightly-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/nightly-release.yml index 5d18d1299..b60e95c6f 100644 --- a/.github/workflows/nightly-release.yml +++ b/.github/workflows/nightly-release.yml @@ -3,7 +3,7 @@ name: nightly-release on: push: branches: - - 'feat/nightly-builds' + - 'feat/nightly-release' jobs: check_date: From b1d7e9b1e6432c4c69dc07a228f533e1cdf65399 Mon Sep 17 00:00:00 2001 From: robingotz Date: Tue, 10 Dec 2024 21:44:04 +0100 Subject: [PATCH 24/38] fix: rename release scripts and interface and add missing generators --- libs/cli/src/generators/ui/generator.ts | 8 +++++--- libs/tools/generators.json | 10 ++++++++++ package.json | 7 ++----- 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/libs/cli/src/generators/ui/generator.ts b/libs/cli/src/generators/ui/generator.ts index aa31f24f0..7d187f466 100644 --- a/libs/cli/src/generators/ui/generator.ts +++ b/libs/cli/src/generators/ui/generator.ts @@ -9,7 +9,9 @@ export default async function hlmUIGenerator(tree: Tree, options: HlmUIGenerator const config = await getOrCreateConfig(tree, { componentsPath: options.directory, }); - const availablePrimitives: ComponentDefintions = await import('./supported-ui-libraries.json').then((m) => m.default); + const availablePrimitives: PrimitiveDefinitions = await import('./supported-ui-libraries.json').then( + (m) => m.default, + ); const availablePrimitiveNames = [...Object.keys(availablePrimitives), 'collapsible', 'menubar', 'contextmenu']; let response: { primitives: string[] } = { primitives: [] }; if (options.name && availablePrimitiveNames.includes(options.name)) { @@ -35,7 +37,7 @@ async function createPrimitiveLibraries( primitives: string[]; }, availablePrimitiveNames: string[], - availablePrimitives: ComponentDefintions, + availablePrimitives: PrimitiveDefinitions, tree: Tree, options: HlmUIGeneratorSchema & { angularCli?: boolean }, config: Config, @@ -111,7 +113,7 @@ const replaceContextAndMenuBar = async (primtivesToCreate: string[], silent = fa const removeHelmKeys = (obj: Record) => Object.fromEntries(Object.entries(obj).filter(([key]) => !key.toLowerCase().includes('helm'))); -interface ComponentDefintions { +interface PrimitiveDefinitions { [componentName: string]: { internalName: string; peerDependencies: Record; diff --git a/libs/tools/generators.json b/libs/tools/generators.json index edf189f9d..02d3a4f8e 100644 --- a/libs/tools/generators.json +++ b/libs/tools/generators.json @@ -1,5 +1,15 @@ { "generators": { + "replace-cli-version": { + "factory": "./src/generators/replace-cli-version/generator", + "schema": "./src/generators/replace-cli-version/schema.json", + "description": "Updates the CLI's version" + }, + "replace-ui-version": { + "factory": "./src/generators/replace-ui-version/generator", + "schema": "./src/generators/replace-ui-version/schema.json", + "description": "Replaces version for all UI libs and their references in the CLI" + }, "auto-increment-version": { "factory": "./src/generators/auto-increment-version/generator", "schema": "./src/generators/auto-increment-version/schema.json", diff --git a/package.json b/package.json index 81ff9d801..6e154e21f 100644 --- a/package.json +++ b/package.json @@ -14,13 +14,10 @@ "e2e": "nx run-many --target e2e --projects=tag:scope:e2e --all --parallel=1", "format": "nx format --write", "lint": "nx run-many --target=lint --parallel", + "pre-manual-release": "pnpm run prepare-manual-release && pnpm run format && nx run tools:lint --fix", "pre-nightly-release": "pnpm run prepare-nightly-release && pnpm run format && nx run tools:lint --fix", - "pre-publish": "pnpm run prepare-cli && pnpm run format", - "pre-regular-release": "pnpm run prepare-regular-release && pnpm run format && nx run tools:lint --fix", - "pre-release": "pnpm run prepare-release && pnpm run format", + "prepare-manual-release": "nx g @spartan-ng/tools:replace-ui-version && nx g @spartan-ng/tools:hlm-to-cli-generator && nx g @spartan-ng/tools:replace-cli-version", "prepare-nightly-release": "nx g @spartan-ng/tools:auto-increment-version && nx g @spartan-ng/tools:hlm-to-cli-generator", - "prepare-regular-release": "nx g @spartan-ng/tools:replace-ui-version && nx g @spartan-ng/tools:hlm-to-cli-generator && nx g @spartan-ng/tools:replace-cli-version", - "prepare-release": "nx g @spartan-ng/tools:replace-ui-version && nx g @spartan-ng/tools:hlm-to-cli-generator && nx g @spartan-ng/tools:replace-cli-version", "release": "pnpm run release-ui && pnpm run release-cli", "release-cli": "nx run-many --target=release --projects=tag:scope:cli --parallel=1", "release-ui": "nx run-many --target=release --projects=tag:scope:core,tag:scope:brain --parallel=1" From ca511a94478e04151158ab18581ea738adce7b20 Mon Sep 17 00:00:00 2001 From: robingotz Date: Tue, 10 Dec 2024 21:45:26 +0100 Subject: [PATCH 25/38] chore: release cli & ui 0.0.1-alpha.379 --- libs/brain/package.json | 2 +- libs/cli/package.json | 2 +- libs/cli/src/generators/base/versions.ts | 2 +- .../generators/ui/supported-ui-libraries.json | 116 +++++++++--------- libs/ui/accordion/helm/package.json | 6 +- libs/ui/alert-dialog/helm/package.json | 6 +- libs/ui/alert/helm/package.json | 6 +- libs/ui/aspect-ratio/helm/package.json | 4 +- libs/ui/avatar/helm/package.json | 4 +- libs/ui/badge/helm/package.json | 4 +- libs/ui/breadcrumb/helm/package.json | 6 +- libs/ui/button/helm/package.json | 4 +- libs/ui/calendar/helm/package.json | 8 +- libs/ui/card/helm/package.json | 4 +- libs/ui/carousel/helm/package.json | 8 +- libs/ui/checkbox/helm/package.json | 6 +- libs/ui/command/helm/package.json | 8 +- libs/ui/core/package.json | 0 libs/ui/dialog/helm/package.json | 6 +- libs/ui/form-field/helm/package.json | 4 +- libs/ui/hover-card/helm/package.json | 4 +- libs/ui/icon/helm/package.json | 2 +- libs/ui/input/helm/package.json | 4 +- libs/ui/label/helm/package.json | 4 +- libs/ui/menu/helm/package.json | 6 +- libs/ui/pagination/helm/package.json | 10 +- libs/ui/popover/helm/package.json | 4 +- libs/ui/progress/helm/package.json | 4 +- libs/ui/radio-group/helm/package.json | 4 +- libs/ui/scroll-area/helm/package.json | 4 +- libs/ui/select/helm/package.json | 6 +- libs/ui/separator/helm/package.json | 4 +- libs/ui/sheet/helm/package.json | 6 +- libs/ui/skeleton/helm/package.json | 4 +- libs/ui/slider/helm/package.json | 4 +- libs/ui/sonner/helm/package.json | 4 +- libs/ui/spinner/helm/package.json | 4 +- libs/ui/switch/helm/package.json | 4 +- libs/ui/table/helm/package.json | 2 +- libs/ui/tabs/helm/package.json | 8 +- libs/ui/toggle/helm/package.json | 4 +- libs/ui/tooltip/helm/package.json | 4 +- libs/ui/typography/helm/package.json | 4 +- 43 files changed, 155 insertions(+), 155 deletions(-) create mode 100644 libs/ui/core/package.json diff --git a/libs/brain/package.json b/libs/brain/package.json index 7590024f6..652c2aef7 100644 --- a/libs/brain/package.json +++ b/libs/brain/package.json @@ -1,6 +1,6 @@ { "name": "@spartan-ng/brain", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "exports": { "./hlm-tailwind-preset": { diff --git a/libs/cli/package.json b/libs/cli/package.json index 750d9c15d..45ee529f6 100644 --- a/libs/cli/package.json +++ b/libs/cli/package.json @@ -1,6 +1,6 @@ { "name": "@spartan-ng/cli", - "version": "0.0.1-alpha.367", + "version": "0.0.1-alpha.379", "type": "commonjs", "dependencies": { "@nx/angular": ">=20.0.0", diff --git a/libs/cli/src/generators/base/versions.ts b/libs/cli/src/generators/base/versions.ts index 4f648e934..cb605a242 100644 --- a/libs/cli/src/generators/base/versions.ts +++ b/libs/cli/src/generators/base/versions.ts @@ -3,7 +3,7 @@ export const FALLBACK_ANGULAR_VERSION = '^18.0.0'; // ng-icon dependency export const NG_ICONS_VERSION = '^29.10.0'; // spartan dependencies -export const SPARTAN_BRAIN_VERSION = '0.0.1-alpha.357'; +export const SPARTAN_BRAIN_VERSION = '0.0.1-alpha.379'; // dev dependencies export const TAILWIND_MERGE_VERSION = '^2.2.0'; export const TAILWINDCSS_VERSION = '^3.0.2'; diff --git a/libs/cli/src/generators/ui/supported-ui-libraries.json b/libs/cli/src/generators/ui/supported-ui-libraries.json index f1556ca8d..258cd31fb 100644 --- a/libs/cli/src/generators/ui/supported-ui-libraries.json +++ b/libs/cli/src/generators/ui/supported-ui-libraries.json @@ -4,8 +4,8 @@ "peerDependencies": { "@angular/core": ">=18.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", "clsx": "^2.1.1" } }, @@ -13,8 +13,8 @@ "internalName": "ui-alert-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -23,8 +23,8 @@ "internalName": "ui-alert-dialog-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.379", "clsx": "^2.1.1" } }, @@ -33,7 +33,7 @@ "peerDependencies": { "@angular/cdk": ">=18.0.0", "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "clsx": "^2.1.1" } }, @@ -41,7 +41,7 @@ "internalName": "ui-avatar-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -51,7 +51,7 @@ "peerDependencies": { "@angular/cdk": ">=18.0.0", "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -62,8 +62,8 @@ "@angular/core": "18.2.5", "@angular/router": "18.2.5", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", "clsx": "^2.1.1" } }, @@ -71,7 +71,7 @@ "internalName": "ui-button-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -82,16 +82,16 @@ "@angular/cdk": ">=18.0.0", "@angular/core": ">=18.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.357", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.357" + "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.379", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379" } }, "card": { "internalName": "ui-card-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -100,9 +100,9 @@ "internalName": "ui-command-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.357", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.379", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", "clsx": "^2.1.1" } }, @@ -113,8 +113,8 @@ "@angular/common": ">=18.0.0", "@angular/core": ">=18.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", "clsx": "^2.1.1" } }, @@ -124,7 +124,7 @@ "@angular/common": ">=18.0.0", "@angular/core": ">=18.0.0", "@ng-icons/core": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -134,7 +134,7 @@ "peerDependencies": { "@angular/core": ">=18.0.0", "@angular/forms": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -143,7 +143,7 @@ "internalName": "ui-label-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -153,8 +153,8 @@ "peerDependencies": { "@angular/core": ">=18.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -163,7 +163,7 @@ "internalName": "ui-popover-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "clsx": "^2.1.1" } }, @@ -171,7 +171,7 @@ "internalName": "ui-progress-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "clsx": "^2.1.1" } }, @@ -179,7 +179,7 @@ "internalName": "ui-radio-group-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "clsx": "^2.1.1" } }, @@ -187,7 +187,7 @@ "internalName": "ui-scroll-area-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "clsx": "^2.1.1", "ngx-scrollbar": ">=16.0.0" } @@ -196,7 +196,7 @@ "internalName": "ui-separator-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "clsx": "^2.1.1" } }, @@ -205,8 +205,8 @@ "peerDependencies": { "@angular/core": ">=18.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -215,7 +215,7 @@ "internalName": "ui-skeleton-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "clsx": "^2.1.1" } }, @@ -223,7 +223,7 @@ "internalName": "ui-spinner-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -234,7 +234,7 @@ "@angular/cdk": ">=18.0.0", "@angular/core": ">=18.0.0", "@angular/forms": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "clsx": "^2.1.1" } }, @@ -244,9 +244,9 @@ "@angular/cdk": ">=18.0.0", "@angular/core": ">=18.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.357", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.379", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -255,7 +255,7 @@ "internalName": "ui-toggle-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -264,7 +264,7 @@ "internalName": "ui-typography-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "clsx": "^2.1.1" } }, @@ -273,7 +273,7 @@ "peerDependencies": { "@angular/common": ">=18.0.0", "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "clsx": "^2.1.1" } }, @@ -281,7 +281,7 @@ "internalName": "ui-hover-card-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "clsx": "^2.1.1" } }, @@ -291,8 +291,8 @@ "@angular/core": ">=18.0.0", "@angular/forms": ">=18.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", "clsx": "^2.1.1" } }, @@ -300,7 +300,7 @@ "internalName": "ui-tooltip-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357" + "@spartan-ng/brain": "0.0.1-alpha.379" } }, "pagination": { @@ -311,10 +311,10 @@ "@angular/forms": ">=18.0.0", "@angular/router": ">=18.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.357", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.357", - "@spartan-ng/ui-select-helm": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.379", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", + "@spartan-ng/ui-select-helm": "0.0.1-alpha.379", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -324,9 +324,9 @@ "peerDependencies": { "@angular/core": ">=18.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.357", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.379", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", "clsx": "^2.1.1", "embla-carousel-angular": "18.0.0" } @@ -337,8 +337,8 @@ "@angular/core": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -349,7 +349,7 @@ "@angular/common": "^18.1.0", "@angular/core": "^18.1.0", "@ng-icons/lucide": "^26.3.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "clsx": "^2.1.1", "ngx-sonner": "^2.0.0" } @@ -358,14 +358,14 @@ "internalName": "ui-form-field-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357" + "@spartan-ng/brain": "0.0.1-alpha.379" } }, "slider": { "internalName": "ui-slider-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "clsx": "^2.1.1" } } diff --git a/libs/ui/accordion/helm/package.json b/libs/ui/accordion/helm/package.json index e8fc2647e..ddcda7b44 100644 --- a/libs/ui/accordion/helm/package.json +++ b/libs/ui/accordion/helm/package.json @@ -1,14 +1,14 @@ { "name": "@spartan-ng/ui-accordion-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/alert-dialog/helm/package.json b/libs/ui/alert-dialog/helm/package.json index 1b33cce74..9ff435d2a 100644 --- a/libs/ui/alert-dialog/helm/package.json +++ b/libs/ui/alert-dialog/helm/package.json @@ -1,12 +1,12 @@ { "name": "@spartan-ng/ui-alertdialog-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.379", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/alert/helm/package.json b/libs/ui/alert/helm/package.json index b3ea564af..c7cf62ec3 100644 --- a/libs/ui/alert/helm/package.json +++ b/libs/ui/alert/helm/package.json @@ -1,12 +1,12 @@ { "name": "@spartan-ng/ui-alert-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/aspect-ratio/helm/package.json b/libs/ui/aspect-ratio/helm/package.json index f5086ab5c..c3e04a677 100644 --- a/libs/ui/aspect-ratio/helm/package.json +++ b/libs/ui/aspect-ratio/helm/package.json @@ -1,12 +1,12 @@ { "name": "@spartan-ng/ui-aspectratio-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/cdk": ">=18.0.0", "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/avatar/helm/package.json b/libs/ui/avatar/helm/package.json index 50aff2970..2076abc00 100644 --- a/libs/ui/avatar/helm/package.json +++ b/libs/ui/avatar/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-avatar-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/badge/helm/package.json b/libs/ui/badge/helm/package.json index d9b324e91..e59eafed0 100644 --- a/libs/ui/badge/helm/package.json +++ b/libs/ui/badge/helm/package.json @@ -1,12 +1,12 @@ { "name": "@spartan-ng/ui-badge-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/cdk": ">=18.0.0", "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/breadcrumb/helm/package.json b/libs/ui/breadcrumb/helm/package.json index d0886096e..cefa29ac9 100644 --- a/libs/ui/breadcrumb/helm/package.json +++ b/libs/ui/breadcrumb/helm/package.json @@ -1,6 +1,6 @@ { "name": "@spartan-ng/ui-breadcrumb-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { @@ -8,8 +8,8 @@ "@angular/router": "18.2.5", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/button/helm/package.json b/libs/ui/button/helm/package.json index 012297e28..c34a1d4ea 100644 --- a/libs/ui/button/helm/package.json +++ b/libs/ui/button/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-button-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/calendar/helm/package.json b/libs/ui/calendar/helm/package.json index defc064fc..26a441ea3 100644 --- a/libs/ui/calendar/helm/package.json +++ b/libs/ui/calendar/helm/package.json @@ -1,14 +1,14 @@ { "name": "@spartan-ng/ui-calendar-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "peerDependencies": { "@angular/cdk": ">=18.0.0", "@angular/core": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.357", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.357" + "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.379", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379" } } diff --git a/libs/ui/card/helm/package.json b/libs/ui/card/helm/package.json index a1303ee26..01b12967e 100644 --- a/libs/ui/card/helm/package.json +++ b/libs/ui/card/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-card-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/carousel/helm/package.json b/libs/ui/carousel/helm/package.json index af71f2b1b..4e48530fa 100644 --- a/libs/ui/carousel/helm/package.json +++ b/libs/ui/carousel/helm/package.json @@ -1,15 +1,15 @@ { "name": "@spartan-ng/ui-carousel-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.357", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.379", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", "clsx": "^2.1.1", "embla-carousel-angular": "18.0.0" }, diff --git a/libs/ui/checkbox/helm/package.json b/libs/ui/checkbox/helm/package.json index f1037f1cc..9c80ac994 100644 --- a/libs/ui/checkbox/helm/package.json +++ b/libs/ui/checkbox/helm/package.json @@ -1,6 +1,6 @@ { "name": "@spartan-ng/ui-checkbox-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { @@ -8,8 +8,8 @@ "@angular/forms": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/command/helm/package.json b/libs/ui/command/helm/package.json index ede1e2625..fc3aea0d0 100644 --- a/libs/ui/command/helm/package.json +++ b/libs/ui/command/helm/package.json @@ -1,13 +1,13 @@ { "name": "@spartan-ng/ui-command-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.357", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.379", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/core/package.json b/libs/ui/core/package.json new file mode 100644 index 000000000..e69de29bb diff --git a/libs/ui/dialog/helm/package.json b/libs/ui/dialog/helm/package.json index ecb1a6123..5ae07a5c5 100644 --- a/libs/ui/dialog/helm/package.json +++ b/libs/ui/dialog/helm/package.json @@ -1,6 +1,6 @@ { "name": "@spartan-ng/ui-dialog-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { @@ -9,8 +9,8 @@ "@angular/core": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/form-field/helm/package.json b/libs/ui/form-field/helm/package.json index 879437e3f..7935a546a 100644 --- a/libs/ui/form-field/helm/package.json +++ b/libs/ui/form-field/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-formfield-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357" + "@spartan-ng/brain": "0.0.1-alpha.379" }, "publishConfig": { "access": "public" diff --git a/libs/ui/hover-card/helm/package.json b/libs/ui/hover-card/helm/package.json index f5dbb9c89..89d5fa03b 100644 --- a/libs/ui/hover-card/helm/package.json +++ b/libs/ui/hover-card/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-hovercard-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/icon/helm/package.json b/libs/ui/icon/helm/package.json index 8cea57dfb..71ab6de8c 100644 --- a/libs/ui/icon/helm/package.json +++ b/libs/ui/icon/helm/package.json @@ -1,6 +1,6 @@ { "name": "@spartan-ng/ui-icon-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { diff --git a/libs/ui/input/helm/package.json b/libs/ui/input/helm/package.json index 2c5cbfe95..266555310 100644 --- a/libs/ui/input/helm/package.json +++ b/libs/ui/input/helm/package.json @@ -1,12 +1,12 @@ { "name": "@spartan-ng/ui-input-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", "@angular/forms": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/label/helm/package.json b/libs/ui/label/helm/package.json index 907def587..ecebec592 100644 --- a/libs/ui/label/helm/package.json +++ b/libs/ui/label/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-label-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/menu/helm/package.json b/libs/ui/menu/helm/package.json index b2eb718c4..499fd92d8 100644 --- a/libs/ui/menu/helm/package.json +++ b/libs/ui/menu/helm/package.json @@ -1,14 +1,14 @@ { "name": "@spartan-ng/ui-menu-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/pagination/helm/package.json b/libs/ui/pagination/helm/package.json index 8aeb44b32..e7cd9add1 100644 --- a/libs/ui/pagination/helm/package.json +++ b/libs/ui/pagination/helm/package.json @@ -1,6 +1,6 @@ { "name": "@spartan-ng/ui-pagination-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "peerDependencies": { "@angular/cdk": ">=18.0.0", @@ -9,10 +9,10 @@ "@angular/router": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.357", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.357", - "@spartan-ng/ui-select-helm": "0.0.1-alpha.357", + "@spartan-ng/brain": "0 .0.1-alpha.379", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.379", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", + "@spartan-ng/ui-select-helm": "0.0.1-alpha.379", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/popover/helm/package.json b/libs/ui/popover/helm/package.json index d2120d275..134483bd6 100644 --- a/libs/ui/popover/helm/package.json +++ b/libs/ui/popover/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-popover-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/progress/helm/package.json b/libs/ui/progress/helm/package.json index f56530c38..867ecc76c 100644 --- a/libs/ui/progress/helm/package.json +++ b/libs/ui/progress/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-progress-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/radio-group/helm/package.json b/libs/ui/radio-group/helm/package.json index 9974eb734..733b7b874 100644 --- a/libs/ui/radio-group/helm/package.json +++ b/libs/ui/radio-group/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-radiogroup-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/scroll-area/helm/package.json b/libs/ui/scroll-area/helm/package.json index cdb970f1a..2fb6b9799 100644 --- a/libs/ui/scroll-area/helm/package.json +++ b/libs/ui/scroll-area/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-scrollarea-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "clsx": "^2.1.1", "ngx-scrollbar": ">=16.0.0" }, diff --git a/libs/ui/select/helm/package.json b/libs/ui/select/helm/package.json index afeba597e..2fe7d5512 100644 --- a/libs/ui/select/helm/package.json +++ b/libs/ui/select/helm/package.json @@ -1,14 +1,14 @@ { "name": "@spartan-ng/ui-select-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } diff --git a/libs/ui/separator/helm/package.json b/libs/ui/separator/helm/package.json index eb74adcd3..1ca43d91e 100644 --- a/libs/ui/separator/helm/package.json +++ b/libs/ui/separator/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-separator-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/sheet/helm/package.json b/libs/ui/sheet/helm/package.json index 0dc14c656..094b89172 100644 --- a/libs/ui/sheet/helm/package.json +++ b/libs/ui/sheet/helm/package.json @@ -1,14 +1,14 @@ { "name": "@spartan-ng/ui-sheet-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/skeleton/helm/package.json b/libs/ui/skeleton/helm/package.json index 394bd6673..bac0b82a5 100644 --- a/libs/ui/skeleton/helm/package.json +++ b/libs/ui/skeleton/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-skeleton-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/slider/helm/package.json b/libs/ui/slider/helm/package.json index 30542ec61..8340cec59 100644 --- a/libs/ui/slider/helm/package.json +++ b/libs/ui/slider/helm/package.json @@ -1,10 +1,10 @@ { "name": "@spartan-ng/ui-slider-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "clsx": "^2.1.1" } } diff --git a/libs/ui/sonner/helm/package.json b/libs/ui/sonner/helm/package.json index ffaebc54d..648b8ad55 100644 --- a/libs/ui/sonner/helm/package.json +++ b/libs/ui/sonner/helm/package.json @@ -1,6 +1,6 @@ { "name": "@spartan-ng/ui-sonner-helm", - "version": "0.0.1", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": { "tslib": "^2.3.0" @@ -9,7 +9,7 @@ "@angular/common": "^18.1.0", "@angular/core": "^18.1.0", "@ng-icons/lucide": "^26.3.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "clsx": "^2.1.1", "ngx-sonner": "^2.0.0" } diff --git a/libs/ui/spinner/helm/package.json b/libs/ui/spinner/helm/package.json index 034656e14..c4dd94ea9 100644 --- a/libs/ui/spinner/helm/package.json +++ b/libs/ui/spinner/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-spinner-helm", - "version": "0.0.1", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } diff --git a/libs/ui/switch/helm/package.json b/libs/ui/switch/helm/package.json index c71e57a96..81b9d6f00 100644 --- a/libs/ui/switch/helm/package.json +++ b/libs/ui/switch/helm/package.json @@ -1,13 +1,13 @@ { "name": "@spartan-ng/ui-switch-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/cdk": ">=18.0.0", "@angular/core": ">=18.0.0", "@angular/forms": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/table/helm/package.json b/libs/ui/table/helm/package.json index 21ff90c57..5163671db 100644 --- a/libs/ui/table/helm/package.json +++ b/libs/ui/table/helm/package.json @@ -1,6 +1,6 @@ { "name": "@spartan-ng/ui-table-helm", - "version": "0.0.1", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { diff --git a/libs/ui/tabs/helm/package.json b/libs/ui/tabs/helm/package.json index 59b72fadc..56c5046d0 100644 --- a/libs/ui/tabs/helm/package.json +++ b/libs/ui/tabs/helm/package.json @@ -1,6 +1,6 @@ { "name": "@spartan-ng/ui-tabs-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { @@ -8,9 +8,9 @@ "@angular/core": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.357", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.379", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/toggle/helm/package.json b/libs/ui/toggle/helm/package.json index dbfafd5fd..aed649a1e 100644 --- a/libs/ui/toggle/helm/package.json +++ b/libs/ui/toggle/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-toggle-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/tooltip/helm/package.json b/libs/ui/tooltip/helm/package.json index 16ae8f6dd..e6a3cf955 100644 --- a/libs/ui/tooltip/helm/package.json +++ b/libs/ui/tooltip/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-tooltip-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357" + "@spartan-ng/brain": "0.0.1-alpha.379" }, "publishConfig": { "access": "public" diff --git a/libs/ui/typography/helm/package.json b/libs/ui/typography/helm/package.json index bedefb649..50d36db81 100644 --- a/libs/ui/typography/helm/package.json +++ b/libs/ui/typography/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-typography-helm", - "version": "0.0.1-alpha.357", + "version": "0.0.1-alpha.379", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.379", "clsx": "^2.1.1" }, "publishConfig": { From b89d5deb5debe87c92efd89119c662e6c5f1a7bf Mon Sep 17 00:00:00 2001 From: robingotz Date: Tue, 10 Dec 2024 21:50:21 +0100 Subject: [PATCH 26/38] chore: fix name for trigger --- .github/workflows/nightly-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/nightly-release.yml index b60e95c6f..14f022a01 100644 --- a/.github/workflows/nightly-release.yml +++ b/.github/workflows/nightly-release.yml @@ -3,7 +3,7 @@ name: nightly-release on: push: branches: - - 'feat/nightly-release' + - 'nightly-release' jobs: check_date: From 7a6fe27ad0590a26b7ed5809d30e4a6a63a3a87b Mon Sep 17 00:00:00 2001 From: robingotz Date: Tue, 10 Dec 2024 22:04:09 +0100 Subject: [PATCH 27/38] chore: try to push to origin nightly-release --- .github/workflows/nightly-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/nightly-release.yml index 14f022a01..28e869b7b 100644 --- a/.github/workflows/nightly-release.yml +++ b/.github/workflows/nightly-release.yml @@ -91,7 +91,7 @@ jobs: - name: Build run: pnpm run build - publish: + release: needs: - check_date - build @@ -125,6 +125,6 @@ jobs: author_name: Leonidas author_email: leonidas@spartan.ng message: 'nightly release ${{steps.datetime.outputs.release_date}} ⚡' - push: origin HEAD:${{ github.head_ref }} + push: 'origin nightly-release' - name: Release run: pnpm run release From 45c8b28aec165077075720ea96e7774678276630 Mon Sep 17 00:00:00 2001 From: Leonidas Date: Tue, 10 Dec 2024 21:09:22 +0000 Subject: [PATCH 28/38] =?UTF-8?q?chore:=20nightly=20release=202024-12-10?= =?UTF-8?q?=20=E2=9A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/brain/package.json | 2 +- libs/cli/package.json | 2 +- libs/cli/src/generators/base/versions.ts | 2 +- .../generators/ui/supported-ui-libraries.json | 116 +++++++++--------- libs/ui/accordion/helm/package.json | 6 +- libs/ui/alert-dialog/helm/package.json | 6 +- libs/ui/alert/helm/package.json | 6 +- libs/ui/aspect-ratio/helm/package.json | 4 +- libs/ui/avatar/helm/package.json | 4 +- libs/ui/badge/helm/package.json | 4 +- libs/ui/breadcrumb/helm/package.json | 6 +- libs/ui/button/helm/package.json | 4 +- libs/ui/calendar/helm/package.json | 8 +- libs/ui/card/helm/package.json | 4 +- libs/ui/carousel/helm/package.json | 8 +- libs/ui/checkbox/helm/package.json | 6 +- libs/ui/command/helm/package.json | 8 +- libs/ui/dialog/helm/package.json | 6 +- libs/ui/form-field/helm/package.json | 4 +- libs/ui/hover-card/helm/package.json | 4 +- libs/ui/icon/helm/package.json | 2 +- libs/ui/input/helm/package.json | 4 +- libs/ui/label/helm/package.json | 4 +- libs/ui/menu/helm/package.json | 6 +- libs/ui/pagination/helm/package.json | 10 +- libs/ui/popover/helm/package.json | 4 +- libs/ui/progress/helm/package.json | 4 +- libs/ui/radio-group/helm/package.json | 4 +- libs/ui/scroll-area/helm/package.json | 4 +- libs/ui/select/helm/package.json | 6 +- libs/ui/separator/helm/package.json | 4 +- libs/ui/sheet/helm/package.json | 6 +- libs/ui/skeleton/helm/package.json | 4 +- libs/ui/slider/helm/package.json | 4 +- libs/ui/sonner/helm/package.json | 4 +- libs/ui/spinner/helm/package.json | 4 +- libs/ui/switch/helm/package.json | 4 +- libs/ui/table/helm/package.json | 4 +- libs/ui/tabs/helm/package.json | 8 +- libs/ui/toggle/helm/package.json | 4 +- libs/ui/tooltip/helm/package.json | 4 +- libs/ui/typography/helm/package.json | 4 +- 42 files changed, 156 insertions(+), 156 deletions(-) diff --git a/libs/brain/package.json b/libs/brain/package.json index 652c2aef7..d467a9ac7 100644 --- a/libs/brain/package.json +++ b/libs/brain/package.json @@ -1,6 +1,6 @@ { "name": "@spartan-ng/brain", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "exports": { "./hlm-tailwind-preset": { diff --git a/libs/cli/package.json b/libs/cli/package.json index 45ee529f6..104eef658 100644 --- a/libs/cli/package.json +++ b/libs/cli/package.json @@ -1,6 +1,6 @@ { "name": "@spartan-ng/cli", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "type": "commonjs", "dependencies": { "@nx/angular": ">=20.0.0", diff --git a/libs/cli/src/generators/base/versions.ts b/libs/cli/src/generators/base/versions.ts index cb605a242..801037c75 100644 --- a/libs/cli/src/generators/base/versions.ts +++ b/libs/cli/src/generators/base/versions.ts @@ -3,7 +3,7 @@ export const FALLBACK_ANGULAR_VERSION = '^18.0.0'; // ng-icon dependency export const NG_ICONS_VERSION = '^29.10.0'; // spartan dependencies -export const SPARTAN_BRAIN_VERSION = '0.0.1-alpha.379'; +export const SPARTAN_BRAIN_VERSION = '0.0.1-alpha.380'; // dev dependencies export const TAILWIND_MERGE_VERSION = '^2.2.0'; export const TAILWINDCSS_VERSION = '^3.0.2'; diff --git a/libs/cli/src/generators/ui/supported-ui-libraries.json b/libs/cli/src/generators/ui/supported-ui-libraries.json index 258cd31fb..7e5519270 100644 --- a/libs/cli/src/generators/ui/supported-ui-libraries.json +++ b/libs/cli/src/generators/ui/supported-ui-libraries.json @@ -4,8 +4,8 @@ "peerDependencies": { "@angular/core": ">=18.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", "clsx": "^2.1.1" } }, @@ -13,8 +13,8 @@ "internalName": "ui-alert-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -23,8 +23,8 @@ "internalName": "ui-alert-dialog-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.380", "clsx": "^2.1.1" } }, @@ -33,7 +33,7 @@ "peerDependencies": { "@angular/cdk": ">=18.0.0", "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "clsx": "^2.1.1" } }, @@ -41,7 +41,7 @@ "internalName": "ui-avatar-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -51,7 +51,7 @@ "peerDependencies": { "@angular/cdk": ">=18.0.0", "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -62,8 +62,8 @@ "@angular/core": "18.2.5", "@angular/router": "18.2.5", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", "clsx": "^2.1.1" } }, @@ -71,7 +71,7 @@ "internalName": "ui-button-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -82,16 +82,16 @@ "@angular/cdk": ">=18.0.0", "@angular/core": ">=18.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.379", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379" + "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.380", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380" } }, "card": { "internalName": "ui-card-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -100,9 +100,9 @@ "internalName": "ui-command-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.379", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.380", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", "clsx": "^2.1.1" } }, @@ -113,8 +113,8 @@ "@angular/common": ">=18.0.0", "@angular/core": ">=18.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", "clsx": "^2.1.1" } }, @@ -124,7 +124,7 @@ "@angular/common": ">=18.0.0", "@angular/core": ">=18.0.0", "@ng-icons/core": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -134,7 +134,7 @@ "peerDependencies": { "@angular/core": ">=18.0.0", "@angular/forms": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -143,7 +143,7 @@ "internalName": "ui-label-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -153,8 +153,8 @@ "peerDependencies": { "@angular/core": ">=18.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -163,7 +163,7 @@ "internalName": "ui-popover-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "clsx": "^2.1.1" } }, @@ -171,7 +171,7 @@ "internalName": "ui-progress-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "clsx": "^2.1.1" } }, @@ -179,7 +179,7 @@ "internalName": "ui-radio-group-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "clsx": "^2.1.1" } }, @@ -187,7 +187,7 @@ "internalName": "ui-scroll-area-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "clsx": "^2.1.1", "ngx-scrollbar": ">=16.0.0" } @@ -196,7 +196,7 @@ "internalName": "ui-separator-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "clsx": "^2.1.1" } }, @@ -205,8 +205,8 @@ "peerDependencies": { "@angular/core": ">=18.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -215,7 +215,7 @@ "internalName": "ui-skeleton-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "clsx": "^2.1.1" } }, @@ -223,7 +223,7 @@ "internalName": "ui-spinner-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -234,7 +234,7 @@ "@angular/cdk": ">=18.0.0", "@angular/core": ">=18.0.0", "@angular/forms": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "clsx": "^2.1.1" } }, @@ -244,9 +244,9 @@ "@angular/cdk": ">=18.0.0", "@angular/core": ">=18.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.379", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.380", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -255,7 +255,7 @@ "internalName": "ui-toggle-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -264,7 +264,7 @@ "internalName": "ui-typography-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "clsx": "^2.1.1" } }, @@ -273,7 +273,7 @@ "peerDependencies": { "@angular/common": ">=18.0.0", "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "clsx": "^2.1.1" } }, @@ -281,7 +281,7 @@ "internalName": "ui-hover-card-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "clsx": "^2.1.1" } }, @@ -291,8 +291,8 @@ "@angular/core": ">=18.0.0", "@angular/forms": ">=18.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", "clsx": "^2.1.1" } }, @@ -300,7 +300,7 @@ "internalName": "ui-tooltip-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379" + "@spartan-ng/brain": "0.0.1-alpha.380" } }, "pagination": { @@ -311,10 +311,10 @@ "@angular/forms": ">=18.0.0", "@angular/router": ">=18.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.379", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", - "@spartan-ng/ui-select-helm": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.380", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", + "@spartan-ng/ui-select-helm": "0.0.1-alpha.380", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -324,9 +324,9 @@ "peerDependencies": { "@angular/core": ">=18.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.379", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.380", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", "clsx": "^2.1.1", "embla-carousel-angular": "18.0.0" } @@ -337,8 +337,8 @@ "@angular/core": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -349,7 +349,7 @@ "@angular/common": "^18.1.0", "@angular/core": "^18.1.0", "@ng-icons/lucide": "^26.3.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "clsx": "^2.1.1", "ngx-sonner": "^2.0.0" } @@ -358,14 +358,14 @@ "internalName": "ui-form-field-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379" + "@spartan-ng/brain": "0.0.1-alpha.380" } }, "slider": { "internalName": "ui-slider-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "clsx": "^2.1.1" } } diff --git a/libs/ui/accordion/helm/package.json b/libs/ui/accordion/helm/package.json index ddcda7b44..0d95c4f02 100644 --- a/libs/ui/accordion/helm/package.json +++ b/libs/ui/accordion/helm/package.json @@ -1,14 +1,14 @@ { "name": "@spartan-ng/ui-accordion-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/alert-dialog/helm/package.json b/libs/ui/alert-dialog/helm/package.json index 9ff435d2a..f3e8d77cf 100644 --- a/libs/ui/alert-dialog/helm/package.json +++ b/libs/ui/alert-dialog/helm/package.json @@ -1,12 +1,12 @@ { "name": "@spartan-ng/ui-alertdialog-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.380", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/alert/helm/package.json b/libs/ui/alert/helm/package.json index c7cf62ec3..10fe219f6 100644 --- a/libs/ui/alert/helm/package.json +++ b/libs/ui/alert/helm/package.json @@ -1,12 +1,12 @@ { "name": "@spartan-ng/ui-alert-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/aspect-ratio/helm/package.json b/libs/ui/aspect-ratio/helm/package.json index c3e04a677..4001a52da 100644 --- a/libs/ui/aspect-ratio/helm/package.json +++ b/libs/ui/aspect-ratio/helm/package.json @@ -1,12 +1,12 @@ { "name": "@spartan-ng/ui-aspectratio-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/cdk": ">=18.0.0", "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/avatar/helm/package.json b/libs/ui/avatar/helm/package.json index 2076abc00..4bfd7c59d 100644 --- a/libs/ui/avatar/helm/package.json +++ b/libs/ui/avatar/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-avatar-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/badge/helm/package.json b/libs/ui/badge/helm/package.json index e59eafed0..6c3cbad0c 100644 --- a/libs/ui/badge/helm/package.json +++ b/libs/ui/badge/helm/package.json @@ -1,12 +1,12 @@ { "name": "@spartan-ng/ui-badge-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/cdk": ">=18.0.0", "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/breadcrumb/helm/package.json b/libs/ui/breadcrumb/helm/package.json index cefa29ac9..2ee3130d2 100644 --- a/libs/ui/breadcrumb/helm/package.json +++ b/libs/ui/breadcrumb/helm/package.json @@ -1,6 +1,6 @@ { "name": "@spartan-ng/ui-breadcrumb-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { @@ -8,8 +8,8 @@ "@angular/router": "18.2.5", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/button/helm/package.json b/libs/ui/button/helm/package.json index c34a1d4ea..4ab4a3d26 100644 --- a/libs/ui/button/helm/package.json +++ b/libs/ui/button/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-button-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/calendar/helm/package.json b/libs/ui/calendar/helm/package.json index 26a441ea3..7808ddb6b 100644 --- a/libs/ui/calendar/helm/package.json +++ b/libs/ui/calendar/helm/package.json @@ -1,14 +1,14 @@ { "name": "@spartan-ng/ui-calendar-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "peerDependencies": { "@angular/cdk": ">=18.0.0", "@angular/core": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.379", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379" + "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.380", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380" } } diff --git a/libs/ui/card/helm/package.json b/libs/ui/card/helm/package.json index 01b12967e..9af66abed 100644 --- a/libs/ui/card/helm/package.json +++ b/libs/ui/card/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-card-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/carousel/helm/package.json b/libs/ui/carousel/helm/package.json index 4e48530fa..782d0b243 100644 --- a/libs/ui/carousel/helm/package.json +++ b/libs/ui/carousel/helm/package.json @@ -1,15 +1,15 @@ { "name": "@spartan-ng/ui-carousel-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.379", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.380", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", "clsx": "^2.1.1", "embla-carousel-angular": "18.0.0" }, diff --git a/libs/ui/checkbox/helm/package.json b/libs/ui/checkbox/helm/package.json index 9c80ac994..5bef6fc79 100644 --- a/libs/ui/checkbox/helm/package.json +++ b/libs/ui/checkbox/helm/package.json @@ -1,6 +1,6 @@ { "name": "@spartan-ng/ui-checkbox-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { @@ -8,8 +8,8 @@ "@angular/forms": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/command/helm/package.json b/libs/ui/command/helm/package.json index fc3aea0d0..3eb474e2d 100644 --- a/libs/ui/command/helm/package.json +++ b/libs/ui/command/helm/package.json @@ -1,13 +1,13 @@ { "name": "@spartan-ng/ui-command-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.379", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.380", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/dialog/helm/package.json b/libs/ui/dialog/helm/package.json index 5ae07a5c5..f13806a88 100644 --- a/libs/ui/dialog/helm/package.json +++ b/libs/ui/dialog/helm/package.json @@ -1,6 +1,6 @@ { "name": "@spartan-ng/ui-dialog-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { @@ -9,8 +9,8 @@ "@angular/core": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/form-field/helm/package.json b/libs/ui/form-field/helm/package.json index 7935a546a..610bd855d 100644 --- a/libs/ui/form-field/helm/package.json +++ b/libs/ui/form-field/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-formfield-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379" + "@spartan-ng/brain": "0.0.1-alpha.380" }, "publishConfig": { "access": "public" diff --git a/libs/ui/hover-card/helm/package.json b/libs/ui/hover-card/helm/package.json index 89d5fa03b..3bddda276 100644 --- a/libs/ui/hover-card/helm/package.json +++ b/libs/ui/hover-card/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-hovercard-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/icon/helm/package.json b/libs/ui/icon/helm/package.json index 71ab6de8c..b106dd087 100644 --- a/libs/ui/icon/helm/package.json +++ b/libs/ui/icon/helm/package.json @@ -1,6 +1,6 @@ { "name": "@spartan-ng/ui-icon-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { diff --git a/libs/ui/input/helm/package.json b/libs/ui/input/helm/package.json index 266555310..deecc94ad 100644 --- a/libs/ui/input/helm/package.json +++ b/libs/ui/input/helm/package.json @@ -1,12 +1,12 @@ { "name": "@spartan-ng/ui-input-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", "@angular/forms": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/label/helm/package.json b/libs/ui/label/helm/package.json index ecebec592..3f574da42 100644 --- a/libs/ui/label/helm/package.json +++ b/libs/ui/label/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-label-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/menu/helm/package.json b/libs/ui/menu/helm/package.json index 499fd92d8..3a73940b2 100644 --- a/libs/ui/menu/helm/package.json +++ b/libs/ui/menu/helm/package.json @@ -1,14 +1,14 @@ { "name": "@spartan-ng/ui-menu-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/pagination/helm/package.json b/libs/ui/pagination/helm/package.json index e7cd9add1..57e36cedc 100644 --- a/libs/ui/pagination/helm/package.json +++ b/libs/ui/pagination/helm/package.json @@ -1,6 +1,6 @@ { "name": "@spartan-ng/ui-pagination-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "peerDependencies": { "@angular/cdk": ">=18.0.0", @@ -9,10 +9,10 @@ "@angular/router": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0 .0.1-alpha.379", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.379", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", - "@spartan-ng/ui-select-helm": "0.0.1-alpha.379", + "@spartan-ng/brain": "0 .0.1-alpha.380", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.380", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", + "@spartan-ng/ui-select-helm": "0.0.1-alpha.380", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/popover/helm/package.json b/libs/ui/popover/helm/package.json index 134483bd6..803f27404 100644 --- a/libs/ui/popover/helm/package.json +++ b/libs/ui/popover/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-popover-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/progress/helm/package.json b/libs/ui/progress/helm/package.json index 867ecc76c..be57c872f 100644 --- a/libs/ui/progress/helm/package.json +++ b/libs/ui/progress/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-progress-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/radio-group/helm/package.json b/libs/ui/radio-group/helm/package.json index 733b7b874..3967fcb35 100644 --- a/libs/ui/radio-group/helm/package.json +++ b/libs/ui/radio-group/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-radiogroup-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/scroll-area/helm/package.json b/libs/ui/scroll-area/helm/package.json index 2fb6b9799..d1363f196 100644 --- a/libs/ui/scroll-area/helm/package.json +++ b/libs/ui/scroll-area/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-scrollarea-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "clsx": "^2.1.1", "ngx-scrollbar": ">=16.0.0" }, diff --git a/libs/ui/select/helm/package.json b/libs/ui/select/helm/package.json index 2fe7d5512..01fa607a0 100644 --- a/libs/ui/select/helm/package.json +++ b/libs/ui/select/helm/package.json @@ -1,14 +1,14 @@ { "name": "@spartan-ng/ui-select-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } diff --git a/libs/ui/separator/helm/package.json b/libs/ui/separator/helm/package.json index 1ca43d91e..c5f0612be 100644 --- a/libs/ui/separator/helm/package.json +++ b/libs/ui/separator/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-separator-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/sheet/helm/package.json b/libs/ui/sheet/helm/package.json index 094b89172..274ca64e8 100644 --- a/libs/ui/sheet/helm/package.json +++ b/libs/ui/sheet/helm/package.json @@ -1,14 +1,14 @@ { "name": "@spartan-ng/ui-sheet-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/skeleton/helm/package.json b/libs/ui/skeleton/helm/package.json index bac0b82a5..02b127b69 100644 --- a/libs/ui/skeleton/helm/package.json +++ b/libs/ui/skeleton/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-skeleton-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/slider/helm/package.json b/libs/ui/slider/helm/package.json index 8340cec59..9d420277d 100644 --- a/libs/ui/slider/helm/package.json +++ b/libs/ui/slider/helm/package.json @@ -1,10 +1,10 @@ { "name": "@spartan-ng/ui-slider-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "clsx": "^2.1.1" } } diff --git a/libs/ui/sonner/helm/package.json b/libs/ui/sonner/helm/package.json index 648b8ad55..6d761d075 100644 --- a/libs/ui/sonner/helm/package.json +++ b/libs/ui/sonner/helm/package.json @@ -1,6 +1,6 @@ { "name": "@spartan-ng/ui-sonner-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": { "tslib": "^2.3.0" @@ -9,7 +9,7 @@ "@angular/common": "^18.1.0", "@angular/core": "^18.1.0", "@ng-icons/lucide": "^26.3.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "clsx": "^2.1.1", "ngx-sonner": "^2.0.0" } diff --git a/libs/ui/spinner/helm/package.json b/libs/ui/spinner/helm/package.json index c4dd94ea9..4e48599eb 100644 --- a/libs/ui/spinner/helm/package.json +++ b/libs/ui/spinner/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-spinner-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } diff --git a/libs/ui/switch/helm/package.json b/libs/ui/switch/helm/package.json index 81b9d6f00..e59af20d9 100644 --- a/libs/ui/switch/helm/package.json +++ b/libs/ui/switch/helm/package.json @@ -1,13 +1,13 @@ { "name": "@spartan-ng/ui-switch-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/cdk": ">=18.0.0", "@angular/core": ">=18.0.0", "@angular/forms": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/table/helm/package.json b/libs/ui/table/helm/package.json index 5163671db..ce52c4c3f 100644 --- a/libs/ui/table/helm/package.json +++ b/libs/ui/table/helm/package.json @@ -1,12 +1,12 @@ { "name": "@spartan-ng/ui-table-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/common": ">=18.0.0", "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.357", + "@spartan-ng/brain": "0.0.1-alpha.380", "clsx": "^2.1.1" } } diff --git a/libs/ui/tabs/helm/package.json b/libs/ui/tabs/helm/package.json index 56c5046d0..0113f19ad 100644 --- a/libs/ui/tabs/helm/package.json +++ b/libs/ui/tabs/helm/package.json @@ -1,6 +1,6 @@ { "name": "@spartan-ng/ui-tabs-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { @@ -8,9 +8,9 @@ "@angular/core": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.379", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.380", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/toggle/helm/package.json b/libs/ui/toggle/helm/package.json index aed649a1e..aecac2b7f 100644 --- a/libs/ui/toggle/helm/package.json +++ b/libs/ui/toggle/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-toggle-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/tooltip/helm/package.json b/libs/ui/tooltip/helm/package.json index e6a3cf955..452d36df1 100644 --- a/libs/ui/tooltip/helm/package.json +++ b/libs/ui/tooltip/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-tooltip-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379" + "@spartan-ng/brain": "0.0.1-alpha.380" }, "publishConfig": { "access": "public" diff --git a/libs/ui/typography/helm/package.json b/libs/ui/typography/helm/package.json index 50d36db81..98383c4d7 100644 --- a/libs/ui/typography/helm/package.json +++ b/libs/ui/typography/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-typography-helm", - "version": "0.0.1-alpha.379", + "version": "0.0.1-alpha.380", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.379", + "@spartan-ng/brain": "0.0.1-alpha.380", "clsx": "^2.1.1" }, "publishConfig": { From 8c0289787dd70c531144d61a968180181e5398a3 Mon Sep 17 00:00:00 2001 From: robingotz Date: Tue, 10 Dec 2024 22:36:03 +0100 Subject: [PATCH 29/38] chore: update tools version number --- libs/tools/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/tools/package.json b/libs/tools/package.json index c2c5b609f..84f4a76a4 100644 --- a/libs/tools/package.json +++ b/libs/tools/package.json @@ -1,6 +1,6 @@ { "name": "@spartan-ng/tools", - "version": "0.0.1", + "version": "0.0.1-alpha.380", "type": "commonjs", "dependencies": { "@nx/angular": "20.1.1", From 0fac359639a474131855c09fb6cdfd067486511b Mon Sep 17 00:00:00 2001 From: Leonidas Date: Tue, 10 Dec 2024 21:41:39 +0000 Subject: [PATCH 30/38] =?UTF-8?q?chore:=20nightly=20release=202024-12-10?= =?UTF-8?q?=20=E2=9A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/brain/package.json | 2 +- libs/cli/package.json | 2 +- libs/cli/src/generators/base/versions.ts | 2 +- .../generators/ui/supported-ui-libraries.json | 116 +++++++++--------- libs/ui/accordion/helm/package.json | 6 +- libs/ui/alert-dialog/helm/package.json | 6 +- libs/ui/alert/helm/package.json | 6 +- libs/ui/aspect-ratio/helm/package.json | 4 +- libs/ui/avatar/helm/package.json | 4 +- libs/ui/badge/helm/package.json | 4 +- libs/ui/breadcrumb/helm/package.json | 6 +- libs/ui/button/helm/package.json | 4 +- libs/ui/calendar/helm/package.json | 8 +- libs/ui/card/helm/package.json | 4 +- libs/ui/carousel/helm/package.json | 8 +- libs/ui/checkbox/helm/package.json | 6 +- libs/ui/command/helm/package.json | 8 +- libs/ui/dialog/helm/package.json | 6 +- libs/ui/form-field/helm/package.json | 4 +- libs/ui/hover-card/helm/package.json | 4 +- libs/ui/icon/helm/package.json | 2 +- libs/ui/input/helm/package.json | 4 +- libs/ui/label/helm/package.json | 4 +- libs/ui/menu/helm/package.json | 6 +- libs/ui/pagination/helm/package.json | 10 +- libs/ui/popover/helm/package.json | 4 +- libs/ui/progress/helm/package.json | 4 +- libs/ui/radio-group/helm/package.json | 4 +- libs/ui/scroll-area/helm/package.json | 4 +- libs/ui/select/helm/package.json | 2 +- libs/ui/separator/helm/package.json | 4 +- libs/ui/sheet/helm/package.json | 6 +- libs/ui/skeleton/helm/package.json | 4 +- libs/ui/slider/helm/package.json | 4 +- libs/ui/sonner/helm/package.json | 4 +- libs/ui/spinner/helm/package.json | 4 +- libs/ui/switch/helm/package.json | 4 +- libs/ui/table/helm/package.json | 4 +- libs/ui/tabs/helm/package.json | 8 +- libs/ui/toggle/helm/package.json | 4 +- libs/ui/tooltip/helm/package.json | 4 +- libs/ui/typography/helm/package.json | 4 +- 42 files changed, 154 insertions(+), 154 deletions(-) diff --git a/libs/brain/package.json b/libs/brain/package.json index d467a9ac7..67a119c1d 100644 --- a/libs/brain/package.json +++ b/libs/brain/package.json @@ -1,6 +1,6 @@ { "name": "@spartan-ng/brain", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "exports": { "./hlm-tailwind-preset": { diff --git a/libs/cli/package.json b/libs/cli/package.json index 104eef658..ad116710e 100644 --- a/libs/cli/package.json +++ b/libs/cli/package.json @@ -1,6 +1,6 @@ { "name": "@spartan-ng/cli", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "type": "commonjs", "dependencies": { "@nx/angular": ">=20.0.0", diff --git a/libs/cli/src/generators/base/versions.ts b/libs/cli/src/generators/base/versions.ts index 801037c75..b3d3a5d07 100644 --- a/libs/cli/src/generators/base/versions.ts +++ b/libs/cli/src/generators/base/versions.ts @@ -3,7 +3,7 @@ export const FALLBACK_ANGULAR_VERSION = '^18.0.0'; // ng-icon dependency export const NG_ICONS_VERSION = '^29.10.0'; // spartan dependencies -export const SPARTAN_BRAIN_VERSION = '0.0.1-alpha.380'; +export const SPARTAN_BRAIN_VERSION = '0.0.1-alpha.381'; // dev dependencies export const TAILWIND_MERGE_VERSION = '^2.2.0'; export const TAILWINDCSS_VERSION = '^3.0.2'; diff --git a/libs/cli/src/generators/ui/supported-ui-libraries.json b/libs/cli/src/generators/ui/supported-ui-libraries.json index 7e5519270..2e2c064bf 100644 --- a/libs/cli/src/generators/ui/supported-ui-libraries.json +++ b/libs/cli/src/generators/ui/supported-ui-libraries.json @@ -4,8 +4,8 @@ "peerDependencies": { "@angular/core": ">=18.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381", "clsx": "^2.1.1" } }, @@ -13,8 +13,8 @@ "internalName": "ui-alert-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -23,8 +23,8 @@ "internalName": "ui-alert-dialog-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.381", "clsx": "^2.1.1" } }, @@ -33,7 +33,7 @@ "peerDependencies": { "@angular/cdk": ">=18.0.0", "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "clsx": "^2.1.1" } }, @@ -41,7 +41,7 @@ "internalName": "ui-avatar-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -51,7 +51,7 @@ "peerDependencies": { "@angular/cdk": ">=18.0.0", "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -62,8 +62,8 @@ "@angular/core": "18.2.5", "@angular/router": "18.2.5", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381", "clsx": "^2.1.1" } }, @@ -71,7 +71,7 @@ "internalName": "ui-button-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -82,16 +82,16 @@ "@angular/cdk": ">=18.0.0", "@angular/core": ">=18.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.380", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380" + "@spartan-ng/brain": "0.0.1-alpha.381", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.381", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381" } }, "card": { "internalName": "ui-card-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -100,9 +100,9 @@ "internalName": "ui-command-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.380", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.381", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381", "clsx": "^2.1.1" } }, @@ -113,8 +113,8 @@ "@angular/common": ">=18.0.0", "@angular/core": ">=18.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381", "clsx": "^2.1.1" } }, @@ -124,7 +124,7 @@ "@angular/common": ">=18.0.0", "@angular/core": ">=18.0.0", "@ng-icons/core": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -134,7 +134,7 @@ "peerDependencies": { "@angular/core": ">=18.0.0", "@angular/forms": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -143,7 +143,7 @@ "internalName": "ui-label-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -153,8 +153,8 @@ "peerDependencies": { "@angular/core": ">=18.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -163,7 +163,7 @@ "internalName": "ui-popover-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "clsx": "^2.1.1" } }, @@ -171,7 +171,7 @@ "internalName": "ui-progress-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "clsx": "^2.1.1" } }, @@ -179,7 +179,7 @@ "internalName": "ui-radio-group-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "clsx": "^2.1.1" } }, @@ -187,7 +187,7 @@ "internalName": "ui-scroll-area-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "clsx": "^2.1.1", "ngx-scrollbar": ">=16.0.0" } @@ -196,7 +196,7 @@ "internalName": "ui-separator-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "clsx": "^2.1.1" } }, @@ -205,8 +205,8 @@ "peerDependencies": { "@angular/core": ">=18.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -215,7 +215,7 @@ "internalName": "ui-skeleton-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "clsx": "^2.1.1" } }, @@ -223,7 +223,7 @@ "internalName": "ui-spinner-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -234,7 +234,7 @@ "@angular/cdk": ">=18.0.0", "@angular/core": ">=18.0.0", "@angular/forms": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "clsx": "^2.1.1" } }, @@ -244,9 +244,9 @@ "@angular/cdk": ">=18.0.0", "@angular/core": ">=18.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.380", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.381", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -255,7 +255,7 @@ "internalName": "ui-toggle-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -264,7 +264,7 @@ "internalName": "ui-typography-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "clsx": "^2.1.1" } }, @@ -273,7 +273,7 @@ "peerDependencies": { "@angular/common": ">=18.0.0", "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "clsx": "^2.1.1" } }, @@ -281,7 +281,7 @@ "internalName": "ui-hover-card-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "clsx": "^2.1.1" } }, @@ -291,8 +291,8 @@ "@angular/core": ">=18.0.0", "@angular/forms": ">=18.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381", "clsx": "^2.1.1" } }, @@ -300,7 +300,7 @@ "internalName": "ui-tooltip-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380" + "@spartan-ng/brain": "0.0.1-alpha.381" } }, "pagination": { @@ -311,10 +311,10 @@ "@angular/forms": ">=18.0.0", "@angular/router": ">=18.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.380", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", - "@spartan-ng/ui-select-helm": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.381", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381", + "@spartan-ng/ui-select-helm": "0.0.1-alpha.381", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -324,9 +324,9 @@ "peerDependencies": { "@angular/core": ">=18.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.380", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.381", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381", "clsx": "^2.1.1", "embla-carousel-angular": "18.0.0" } @@ -337,8 +337,8 @@ "@angular/core": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } @@ -349,7 +349,7 @@ "@angular/common": "^18.1.0", "@angular/core": "^18.1.0", "@ng-icons/lucide": "^26.3.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "clsx": "^2.1.1", "ngx-sonner": "^2.0.0" } @@ -358,14 +358,14 @@ "internalName": "ui-form-field-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380" + "@spartan-ng/brain": "0.0.1-alpha.381" } }, "slider": { "internalName": "ui-slider-helm", "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "clsx": "^2.1.1" } } diff --git a/libs/ui/accordion/helm/package.json b/libs/ui/accordion/helm/package.json index 0d95c4f02..a7a82633b 100644 --- a/libs/ui/accordion/helm/package.json +++ b/libs/ui/accordion/helm/package.json @@ -1,14 +1,14 @@ { "name": "@spartan-ng/ui-accordion-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/alert-dialog/helm/package.json b/libs/ui/alert-dialog/helm/package.json index f3e8d77cf..0c30e7fe4 100644 --- a/libs/ui/alert-dialog/helm/package.json +++ b/libs/ui/alert-dialog/helm/package.json @@ -1,12 +1,12 @@ { "name": "@spartan-ng/ui-alertdialog-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.381", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/alert/helm/package.json b/libs/ui/alert/helm/package.json index 10fe219f6..bae28a42f 100644 --- a/libs/ui/alert/helm/package.json +++ b/libs/ui/alert/helm/package.json @@ -1,12 +1,12 @@ { "name": "@spartan-ng/ui-alert-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/aspect-ratio/helm/package.json b/libs/ui/aspect-ratio/helm/package.json index 4001a52da..48b24fcd0 100644 --- a/libs/ui/aspect-ratio/helm/package.json +++ b/libs/ui/aspect-ratio/helm/package.json @@ -1,12 +1,12 @@ { "name": "@spartan-ng/ui-aspectratio-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/cdk": ">=18.0.0", "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/avatar/helm/package.json b/libs/ui/avatar/helm/package.json index 4bfd7c59d..b8dc0eb3d 100644 --- a/libs/ui/avatar/helm/package.json +++ b/libs/ui/avatar/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-avatar-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/badge/helm/package.json b/libs/ui/badge/helm/package.json index 6c3cbad0c..e896f8eb3 100644 --- a/libs/ui/badge/helm/package.json +++ b/libs/ui/badge/helm/package.json @@ -1,12 +1,12 @@ { "name": "@spartan-ng/ui-badge-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/cdk": ">=18.0.0", "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/breadcrumb/helm/package.json b/libs/ui/breadcrumb/helm/package.json index 2ee3130d2..3f9994354 100644 --- a/libs/ui/breadcrumb/helm/package.json +++ b/libs/ui/breadcrumb/helm/package.json @@ -1,6 +1,6 @@ { "name": "@spartan-ng/ui-breadcrumb-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { @@ -8,8 +8,8 @@ "@angular/router": "18.2.5", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/button/helm/package.json b/libs/ui/button/helm/package.json index 4ab4a3d26..0a01a6510 100644 --- a/libs/ui/button/helm/package.json +++ b/libs/ui/button/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-button-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/calendar/helm/package.json b/libs/ui/calendar/helm/package.json index 7808ddb6b..503e87142 100644 --- a/libs/ui/calendar/helm/package.json +++ b/libs/ui/calendar/helm/package.json @@ -1,14 +1,14 @@ { "name": "@spartan-ng/ui-calendar-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "peerDependencies": { "@angular/cdk": ">=18.0.0", "@angular/core": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.380", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380" + "@spartan-ng/brain": "0.0.1-alpha.381", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.381", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381" } } diff --git a/libs/ui/card/helm/package.json b/libs/ui/card/helm/package.json index 9af66abed..54b398e60 100644 --- a/libs/ui/card/helm/package.json +++ b/libs/ui/card/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-card-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/carousel/helm/package.json b/libs/ui/carousel/helm/package.json index 782d0b243..8552a8f5f 100644 --- a/libs/ui/carousel/helm/package.json +++ b/libs/ui/carousel/helm/package.json @@ -1,15 +1,15 @@ { "name": "@spartan-ng/ui-carousel-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.380", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.381", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381", "clsx": "^2.1.1", "embla-carousel-angular": "18.0.0" }, diff --git a/libs/ui/checkbox/helm/package.json b/libs/ui/checkbox/helm/package.json index 5bef6fc79..fedf46067 100644 --- a/libs/ui/checkbox/helm/package.json +++ b/libs/ui/checkbox/helm/package.json @@ -1,6 +1,6 @@ { "name": "@spartan-ng/ui-checkbox-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { @@ -8,8 +8,8 @@ "@angular/forms": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/command/helm/package.json b/libs/ui/command/helm/package.json index 3eb474e2d..0412cbb1f 100644 --- a/libs/ui/command/helm/package.json +++ b/libs/ui/command/helm/package.json @@ -1,13 +1,13 @@ { "name": "@spartan-ng/ui-command-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.380", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.381", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/dialog/helm/package.json b/libs/ui/dialog/helm/package.json index f13806a88..b32d8afcf 100644 --- a/libs/ui/dialog/helm/package.json +++ b/libs/ui/dialog/helm/package.json @@ -1,6 +1,6 @@ { "name": "@spartan-ng/ui-dialog-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { @@ -9,8 +9,8 @@ "@angular/core": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/form-field/helm/package.json b/libs/ui/form-field/helm/package.json index 610bd855d..69723064c 100644 --- a/libs/ui/form-field/helm/package.json +++ b/libs/ui/form-field/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-formfield-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380" + "@spartan-ng/brain": "0.0.1-alpha.381" }, "publishConfig": { "access": "public" diff --git a/libs/ui/hover-card/helm/package.json b/libs/ui/hover-card/helm/package.json index 3bddda276..ee36bb008 100644 --- a/libs/ui/hover-card/helm/package.json +++ b/libs/ui/hover-card/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-hovercard-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/icon/helm/package.json b/libs/ui/icon/helm/package.json index b106dd087..31c963ffa 100644 --- a/libs/ui/icon/helm/package.json +++ b/libs/ui/icon/helm/package.json @@ -1,6 +1,6 @@ { "name": "@spartan-ng/ui-icon-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { diff --git a/libs/ui/input/helm/package.json b/libs/ui/input/helm/package.json index deecc94ad..2fc894e9f 100644 --- a/libs/ui/input/helm/package.json +++ b/libs/ui/input/helm/package.json @@ -1,12 +1,12 @@ { "name": "@spartan-ng/ui-input-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", "@angular/forms": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/label/helm/package.json b/libs/ui/label/helm/package.json index 3f574da42..e3d1f9f3a 100644 --- a/libs/ui/label/helm/package.json +++ b/libs/ui/label/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-label-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/menu/helm/package.json b/libs/ui/menu/helm/package.json index 3a73940b2..e820266ed 100644 --- a/libs/ui/menu/helm/package.json +++ b/libs/ui/menu/helm/package.json @@ -1,14 +1,14 @@ { "name": "@spartan-ng/ui-menu-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/pagination/helm/package.json b/libs/ui/pagination/helm/package.json index 57e36cedc..0b656baaa 100644 --- a/libs/ui/pagination/helm/package.json +++ b/libs/ui/pagination/helm/package.json @@ -1,6 +1,6 @@ { "name": "@spartan-ng/ui-pagination-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "peerDependencies": { "@angular/cdk": ">=18.0.0", @@ -9,10 +9,10 @@ "@angular/router": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0 .0.1-alpha.380", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.380", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", - "@spartan-ng/ui-select-helm": "0.0.1-alpha.380", + "@spartan-ng/brain": "0 .0.1-alpha.381", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.381", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381", + "@spartan-ng/ui-select-helm": "0.0.1-alpha.381", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/popover/helm/package.json b/libs/ui/popover/helm/package.json index 803f27404..85b77d535 100644 --- a/libs/ui/popover/helm/package.json +++ b/libs/ui/popover/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-popover-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/progress/helm/package.json b/libs/ui/progress/helm/package.json index be57c872f..0b227a1a5 100644 --- a/libs/ui/progress/helm/package.json +++ b/libs/ui/progress/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-progress-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/radio-group/helm/package.json b/libs/ui/radio-group/helm/package.json index 3967fcb35..6c2fa515b 100644 --- a/libs/ui/radio-group/helm/package.json +++ b/libs/ui/radio-group/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-radiogroup-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/scroll-area/helm/package.json b/libs/ui/scroll-area/helm/package.json index d1363f196..b042e0367 100644 --- a/libs/ui/scroll-area/helm/package.json +++ b/libs/ui/scroll-area/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-scrollarea-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "clsx": "^2.1.1", "ngx-scrollbar": ">=16.0.0" }, diff --git a/libs/ui/select/helm/package.json b/libs/ui/select/helm/package.json index 01fa607a0..453af8f56 100644 --- a/libs/ui/select/helm/package.json +++ b/libs/ui/select/helm/package.json @@ -1,6 +1,6 @@ { "name": "@spartan-ng/ui-select-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { diff --git a/libs/ui/separator/helm/package.json b/libs/ui/separator/helm/package.json index c5f0612be..be153b979 100644 --- a/libs/ui/separator/helm/package.json +++ b/libs/ui/separator/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-separator-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/sheet/helm/package.json b/libs/ui/sheet/helm/package.json index 274ca64e8..81a55a387 100644 --- a/libs/ui/sheet/helm/package.json +++ b/libs/ui/sheet/helm/package.json @@ -1,14 +1,14 @@ { "name": "@spartan-ng/ui-sheet-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/skeleton/helm/package.json b/libs/ui/skeleton/helm/package.json index 02b127b69..d767d5cbf 100644 --- a/libs/ui/skeleton/helm/package.json +++ b/libs/ui/skeleton/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-skeleton-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/slider/helm/package.json b/libs/ui/slider/helm/package.json index 9d420277d..5e8a8b082 100644 --- a/libs/ui/slider/helm/package.json +++ b/libs/ui/slider/helm/package.json @@ -1,10 +1,10 @@ { "name": "@spartan-ng/ui-slider-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "clsx": "^2.1.1" } } diff --git a/libs/ui/sonner/helm/package.json b/libs/ui/sonner/helm/package.json index 6d761d075..803a5be8e 100644 --- a/libs/ui/sonner/helm/package.json +++ b/libs/ui/sonner/helm/package.json @@ -1,6 +1,6 @@ { "name": "@spartan-ng/ui-sonner-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": { "tslib": "^2.3.0" @@ -9,7 +9,7 @@ "@angular/common": "^18.1.0", "@angular/core": "^18.1.0", "@ng-icons/lucide": "^26.3.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "clsx": "^2.1.1", "ngx-sonner": "^2.0.0" } diff --git a/libs/ui/spinner/helm/package.json b/libs/ui/spinner/helm/package.json index 4e48599eb..4decba4cc 100644 --- a/libs/ui/spinner/helm/package.json +++ b/libs/ui/spinner/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-spinner-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } diff --git a/libs/ui/switch/helm/package.json b/libs/ui/switch/helm/package.json index e59af20d9..1543771a9 100644 --- a/libs/ui/switch/helm/package.json +++ b/libs/ui/switch/helm/package.json @@ -1,13 +1,13 @@ { "name": "@spartan-ng/ui-switch-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/cdk": ">=18.0.0", "@angular/core": ">=18.0.0", "@angular/forms": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "clsx": "^2.1.1" }, "publishConfig": { diff --git a/libs/ui/table/helm/package.json b/libs/ui/table/helm/package.json index ce52c4c3f..fcb28639b 100644 --- a/libs/ui/table/helm/package.json +++ b/libs/ui/table/helm/package.json @@ -1,12 +1,12 @@ { "name": "@spartan-ng/ui-table-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/common": ">=18.0.0", "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "clsx": "^2.1.1" } } diff --git a/libs/ui/tabs/helm/package.json b/libs/ui/tabs/helm/package.json index 0113f19ad..2c512e948 100644 --- a/libs/ui/tabs/helm/package.json +++ b/libs/ui/tabs/helm/package.json @@ -1,6 +1,6 @@ { "name": "@spartan-ng/ui-tabs-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { @@ -8,9 +8,9 @@ "@angular/core": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", - "@spartan-ng/ui-button-helm": "0.0.1-alpha.380", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", + "@spartan-ng/ui-button-helm": "0.0.1-alpha.381", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/toggle/helm/package.json b/libs/ui/toggle/helm/package.json index aecac2b7f..9648a13bc 100644 --- a/libs/ui/toggle/helm/package.json +++ b/libs/ui/toggle/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-toggle-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" }, diff --git a/libs/ui/tooltip/helm/package.json b/libs/ui/tooltip/helm/package.json index 452d36df1..e68344c2d 100644 --- a/libs/ui/tooltip/helm/package.json +++ b/libs/ui/tooltip/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-tooltip-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380" + "@spartan-ng/brain": "0.0.1-alpha.381" }, "publishConfig": { "access": "public" diff --git a/libs/ui/typography/helm/package.json b/libs/ui/typography/helm/package.json index 98383c4d7..b5e3e8c4f 100644 --- a/libs/ui/typography/helm/package.json +++ b/libs/ui/typography/helm/package.json @@ -1,11 +1,11 @@ { "name": "@spartan-ng/ui-typography-helm", - "version": "0.0.1-alpha.380", + "version": "0.0.1-alpha.381", "sideEffects": false, "dependencies": {}, "peerDependencies": { "@angular/core": ">=18.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", "clsx": "^2.1.1" }, "publishConfig": { From 99678f0ec70450182802051120132d99f256b104 Mon Sep 17 00:00:00 2001 From: robingotz Date: Tue, 10 Dec 2024 22:48:24 +0100 Subject: [PATCH 31/38] chore: update github flow to work on main and a schedule --- .github/workflows/nightly-release.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/nightly-release.yml index 28e869b7b..0cf83e7c7 100644 --- a/.github/workflows/nightly-release.yml +++ b/.github/workflows/nightly-release.yml @@ -1,9 +1,8 @@ name: nightly-release on: - push: - branches: - - 'nightly-release' + schedule: + - cron: '0 0 * * *' jobs: check_date: @@ -125,6 +124,5 @@ jobs: author_name: Leonidas author_email: leonidas@spartan.ng message: 'nightly release ${{steps.datetime.outputs.release_date}} ⚡' - push: 'origin nightly-release' - name: Release run: pnpm run release From 6a61b021a30a6f66dc1e5389fa13bf1788ab5060 Mon Sep 17 00:00:00 2001 From: robingotz Date: Tue, 10 Dec 2024 23:04:17 +0100 Subject: [PATCH 32/38] fix: add back lost test and start commands to package.json --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 6e154e21f..f31ce5a3c 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,9 @@ "prepare-nightly-release": "nx g @spartan-ng/tools:auto-increment-version && nx g @spartan-ng/tools:hlm-to-cli-generator", "release": "pnpm run release-ui && pnpm run release-cli", "release-cli": "nx run-many --target=release --projects=tag:scope:cli --parallel=1", - "release-ui": "nx run-many --target=release --projects=tag:scope:core,tag:scope:brain --parallel=1" + "release-ui": "nx run-many --target=release --projects=tag:scope:core,tag:scope:brain --parallel=1", + "start": "nx serve app", + "test": "nx run-many --target test --all" }, "dependencies": { "@analogjs/content": "1.9.4", From 18ccabf77c251294c20a3b4002468f79f17d2a2c Mon Sep 17 00:00:00 2001 From: robingotz Date: Wed, 11 Dec 2024 15:47:26 +0100 Subject: [PATCH 33/38] fix: fix tests and commit message to follow guidelines --- .github/workflows/nightly-release.yml | 2 +- .../executors/release/build-update-publish/executor.spec.ts | 4 +--- .../src/generators/replace-cli-version/generator.spec.ts | 6 ++---- libs/tools/src/generators/replace-ui-version/generator.ts | 4 ++-- 4 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/nightly-release.yml index 0cf83e7c7..ba102fcd1 100644 --- a/.github/workflows/nightly-release.yml +++ b/.github/workflows/nightly-release.yml @@ -123,6 +123,6 @@ jobs: with: author_name: Leonidas author_email: leonidas@spartan.ng - message: 'nightly release ${{steps.datetime.outputs.release_date}} ⚡' + message: 'chore: nightly release ${{steps.datetime.outputs.release_date}} ⚡' - name: Release run: pnpm run release diff --git a/libs/tools/src/executors/release/build-update-publish/executor.spec.ts b/libs/tools/src/executors/release/build-update-publish/executor.spec.ts index 2c7f53575..acb32f450 100644 --- a/libs/tools/src/executors/release/build-update-publish/executor.spec.ts +++ b/libs/tools/src/executors/release/build-update-publish/executor.spec.ts @@ -1,7 +1,6 @@ import * as childProcess from 'node:child_process'; import * as projectHelper from '../helpers/projects.helpers'; import * as npmPublish from '../npm-publish/executor'; -import * as updateVersion from '../update-version/executor'; import executor from './executor'; // Mock the entire child_process module @@ -15,7 +14,7 @@ describe('BuildUpdatePublish Executor', () => { // eslint-disable-next-line @typescript-eslint/no-explicit-any const mockContext = { bar: 'bar' } as any; - // Mock the project helper, updateVersion, npmPublish, and execSync + // Mock the project helper, npmPublish, and execSync jest.spyOn(projectHelper, 'getProjectName').mockReturnValue(libName); // Mock npmPublish to return { success: true } @@ -28,7 +27,6 @@ describe('BuildUpdatePublish Executor', () => { const output = await executor({}, mockContext); // Verify that all functions are called as expected - expect(updateVersion.default).toHaveBeenCalledWith({}, mockContext); expect(npmPublish.default).toHaveBeenCalledWith({}, mockContext); expect(execSyncMock).toHaveBeenCalledWith(expectedCommand); expect(output.success).toBe(true); diff --git a/libs/tools/src/generators/replace-cli-version/generator.spec.ts b/libs/tools/src/generators/replace-cli-version/generator.spec.ts index 6cf8bf8ba..0c480eeb7 100644 --- a/libs/tools/src/generators/replace-cli-version/generator.spec.ts +++ b/libs/tools/src/generators/replace-cli-version/generator.spec.ts @@ -1,19 +1,17 @@ import { type Tree, readProjectConfiguration } from '@nx/devkit'; import { createTreeWithEmptyWorkspace } from '@nx/devkit/testing'; -import { replaceCliVersionGenerator } from './generator'; -import type { ReplaceCliVersionGeneratorSchema } from './schema'; +import replaceCliVersionGenerator from './generator'; describe('replace-cli-version generator', () => { let tree: Tree; - const options: ReplaceCliVersionGeneratorSchema = {}; beforeEach(() => { tree = createTreeWithEmptyWorkspace(); }); it.skip('should run successfully', async () => { - await replaceCliVersionGenerator(tree, options); + await replaceCliVersionGenerator(tree); const config = readProjectConfiguration(tree, 'test'); expect(config).toBeDefined(); }); diff --git a/libs/tools/src/generators/replace-ui-version/generator.ts b/libs/tools/src/generators/replace-ui-version/generator.ts index e421890d8..3c4e20610 100644 --- a/libs/tools/src/generators/replace-ui-version/generator.ts +++ b/libs/tools/src/generators/replace-ui-version/generator.ts @@ -46,7 +46,7 @@ const replaceUiVersionInCliVersionsFile = (tree: Tree, oldVersion: string, newVe tree.write(filePath, contents); }; -export default async function replaceUiVersionGenerator(tree: Tree, options: { newVersion: string }): Promise { +export default async function replaceUiVersionGenerator(tree: Tree, options?: { newVersion: string }): Promise { const relativePackageJsonFilePaths = [ ...(await recursivelyFindRelativePackageJsonFilePaths('libs/ui')), // this is going to be our main package going forward which contains all primitives as secondary entry points @@ -56,7 +56,7 @@ export default async function replaceUiVersionGenerator(tree: Tree, options: { n // this goes into the accordion's package.json, which should always be defined // if there is no version there we should definitely not move forward const oldVersion = readJsonFile(relativePackageJsonFilePaths[0]).version; - const newVersion = options.newVersion ?? process.env.VERSION; + const newVersion = options?.newVersion ?? process.env.VERSION; if (!oldVersion) { console.error( From d8b3a602c794f48b4a875e14ac60f1aaf88598ae Mon Sep 17 00:00:00 2001 From: robingotz Date: Tue, 7 Jan 2025 20:45:04 +0100 Subject: [PATCH 34/38] feat: adjust version replacement for new single brain package --- .../auto-increment-version/generator.ts | 11 ++- .../replace-ui-version/generator.spec.ts | 12 ++-- .../replace-ui-version/generator.ts | 67 ++++++------------- ...y-find-relative-package-json-file-paths.ts | 17 ----- 4 files changed, 30 insertions(+), 77 deletions(-) delete mode 100644 libs/tools/src/utils/recursively-find-relative-package-json-file-paths.ts diff --git a/libs/tools/src/generators/auto-increment-version/generator.ts b/libs/tools/src/generators/auto-increment-version/generator.ts index 0cfb40047..590f05674 100644 --- a/libs/tools/src/generators/auto-increment-version/generator.ts +++ b/libs/tools/src/generators/auto-increment-version/generator.ts @@ -1,14 +1,9 @@ -import { type Tree, readJsonFile } from '@nx/devkit'; -import { recursivelyFindRelativePackageJsonFilePaths } from '../../utils/recursively-find-relative-package-json-file-paths'; +import { type Tree, formatFiles, readJsonFile } from '@nx/devkit'; import replaceCliVersionGenerator from '../replace-cli-version/generator'; import replaceUiVersionGenerator from '../replace-ui-version/generator'; export default async function autoIncrementVersion(tree: Tree): Promise { - const relativePackageJsonFilePaths = await recursivelyFindRelativePackageJsonFilePaths('libs/ui'); - - // this goes into the accordion's package.json, which should always be defined - // if there is no version there we should definitely not move forward - const oldVersion = readJsonFile(relativePackageJsonFilePaths[0]).version as string; + const oldVersion = readJsonFile('libs/brain/package.json').version as string; const [prefix, branchAndNumber] = oldVersion.split('-'); const [branch, versionNumber] = branchAndNumber.split('.'); const newVersionNumber = +versionNumber + 1; @@ -21,4 +16,6 @@ export default async function autoIncrementVersion(tree: Tree): Promise { await replaceUiVersionGenerator(tree, { newVersion }); await replaceCliVersionGenerator(tree, { newVersion }); + + await formatFiles(tree); } diff --git a/libs/tools/src/generators/replace-ui-version/generator.spec.ts b/libs/tools/src/generators/replace-ui-version/generator.spec.ts index a9dd398de..fdf48b322 100644 --- a/libs/tools/src/generators/replace-ui-version/generator.spec.ts +++ b/libs/tools/src/generators/replace-ui-version/generator.spec.ts @@ -1,7 +1,7 @@ import { type Tree, readProjectConfiguration } from '@nx/devkit'; import { createTreeWithEmptyWorkspace } from '@nx/devkit/testing'; -import replaceUiVersionGenerator, { replaceSpartanVersions } from './generator'; +import replaceUiVersionGenerator, { replaceSpartanVersion } from './generator'; describe('replace-cli-version generator', () => { let tree: Tree; @@ -21,7 +21,7 @@ describe('replaceSpartanVersions', () => { it('should replace only SPARTAN-prefixed versions that match oldVersion', () => { const input = ` export const FALLBACK_ANGULAR_VERSION = '^18.0.0'; - export const SPARTAN_ACCORDION_BRAIN_VERSION = '3.0.2'; + export const SPARTAN_VERSION = '3.0.2'; export const SPARTAN_ALERT_DIALOG_BRAIN_VERSION = '3.0.2'; export const TAILWINDCSS_VERSION = '3.0.2'; `; @@ -31,12 +31,12 @@ describe('replaceSpartanVersions', () => { const expectedOutput = ` export const FALLBACK_ANGULAR_VERSION = '^18.0.0'; - export const SPARTAN_ACCORDION_BRAIN_VERSION = '3.0.3'; - export const SPARTAN_ALERT_DIALOG_BRAIN_VERSION = '3.0.3'; + export const SPARTAN_VERSION = '3.0.3'; + export const SPARTAN_ALERT_DIALOG_BRAIN_VERSION = '3.0.2'; export const TAILWINDCSS_VERSION = '3.0.2'; `; - const result = replaceSpartanVersions(input, oldVersion, newVersion); + const result = replaceSpartanVersion(input, oldVersion, newVersion); expect(result).toBe(expectedOutput); }); @@ -49,7 +49,7 @@ describe('replaceSpartanVersions', () => { const oldVersion = '3.0.2'; const newVersion = '3.0.3'; - const result = replaceSpartanVersions(input, oldVersion, newVersion); + const result = replaceSpartanVersion(input, oldVersion, newVersion); expect(result).toBe(input); // No changes expected }); }); diff --git a/libs/tools/src/generators/replace-ui-version/generator.ts b/libs/tools/src/generators/replace-ui-version/generator.ts index 3c4e20610..e34037596 100644 --- a/libs/tools/src/generators/replace-ui-version/generator.ts +++ b/libs/tools/src/generators/replace-ui-version/generator.ts @@ -1,33 +1,14 @@ import { type Tree, formatFiles, readJsonFile, updateJson } from '@nx/devkit'; -import { readdir, stat } from 'node:fs/promises'; -import { join } from 'node:path'; import process from 'node:process'; -async function recursivelyFindRelativePackageJsonFilePaths(startingDir: string): Promise { - let results = []; - const list = await readdir(startingDir); - for (const file of list) { - const filePath = join(startingDir, file); - const fileStat = await stat(filePath); - if (fileStat.isDirectory()) { - results = results.concat(await recursivelyFindRelativePackageJsonFilePaths(filePath)); - } else if (file === 'package.json') { - results.push(filePath); - } - } - return results; -} - const getSpartanDependencyKeys = (dependencies?: Record): string[] => Object.keys(dependencies ?? {}).filter((key) => key.startsWith('@spartan-ng')); -export const replaceSpartanVersions = (content: string, oldVersion: string, newVersion: string): string => { +export const replaceSpartanVersion = (content: string, oldVersion: string, newVersion: string): string => { /** - * Regular expression to match SPARTAN-prefixed version constants: - * - `(SPARTAN_[A-Z_]+_VERSION\\s*=\\s*['"])`: - * 1. `SPARTAN_`: Matches the exact prefix for the constant. - * 2. `[A-Z_]+`: Matches any uppercase letters and underscores (e.g., ACCORDION_BRAIN). - * 3. `_VERSION`: Ensures the constant ends with `_VERSION`. + * Regular expression to match SPARTAN_VERSION constant: + * - `(SPARTAN_VERSION\\s*=\\s*['"])`: + * 1. `SPARTAN_VERSION`: Ensures the constant is named `SPARTAN_VERSION`. * 4. `\\s*`: Matches zero or more spaces around the `=` sign. * 5. `['"]`: Captures the opening quote (single or double). * 6. Encloses the entire match before the version in group 1 (`$1`). @@ -35,27 +16,20 @@ export const replaceSpartanVersions = (content: string, oldVersion: string, newV * - `(['"])`: Captures the closing quote in group 2 (`$2`). * - `g` flag: Ensures the regex replaces all matches globally, not just the first occurrence. */ - const spartanVersionRegex = new RegExp(`(SPARTAN_[A-Z_]+_VERSION\\s*=\\s*['"])${oldVersion}(['"])`, 'g'); + const spartanVersionRegex = new RegExp(`(SPARTAN_VERSION\\s*=\\s*['"])${oldVersion}(['"])`, 'g'); return content.replace(spartanVersionRegex, `$1${newVersion}$2`); }; const replaceUiVersionInCliVersionsFile = (tree: Tree, oldVersion: string, newVersion: string) => { const filePath = `libs/cli/src/generators/base/versions.ts`; let contents = tree.read(filePath).toString(); - contents = replaceSpartanVersions(contents, oldVersion, newVersion); + contents = replaceSpartanVersion(contents, oldVersion, newVersion); tree.write(filePath, contents); }; -export default async function replaceUiVersionGenerator(tree: Tree, options?: { newVersion: string }): Promise { - const relativePackageJsonFilePaths = [ - ...(await recursivelyFindRelativePackageJsonFilePaths('libs/ui')), - // this is going to be our main package going forward which contains all primitives as secondary entry points - 'libs/brain/package.json', - ]; - - // this goes into the accordion's package.json, which should always be defined - // if there is no version there we should definitely not move forward - const oldVersion = readJsonFile(relativePackageJsonFilePaths[0]).version; +const replaceUiVersionGenerator = async (tree: Tree, options?: { newVersion: string }): Promise => { + const brainPackageJsonPath = 'libs/brain/package.json'; + const oldVersion = readJsonFile(brainPackageJsonPath).version; const newVersion = options?.newVersion ?? process.env.VERSION; if (!oldVersion) { @@ -77,22 +51,21 @@ export default async function replaceUiVersionGenerator(tree: Tree, options?: { console.log(`Updating UI libs version from ${oldVersion} to ${newVersion}`); - for (const packageJsonPath of relativePackageJsonFilePaths) { - updateJson(tree, packageJsonPath, (pkgJson) => { - const peerDependencyKeysToUpdate = getSpartanDependencyKeys(pkgJson.peerDependencies); - - pkgJson.version = newVersion; + updateJson(tree, brainPackageJsonPath, (pkgJson) => { + const peerDependencyKeysToUpdate = getSpartanDependencyKeys(pkgJson.peerDependencies); + pkgJson.version = newVersion; - for (const key of peerDependencyKeysToUpdate) { - pkgJson.peerDependencies[key] = newVersion; - } + for (const key of peerDependencyKeysToUpdate) { + pkgJson.peerDependencies[key] = newVersion; + } - return pkgJson; - }); - } + return pkgJson; + }); console.log(`Reflecting those changes in versions.ts file of the CLI`); replaceUiVersionInCliVersionsFile(tree, oldVersion, newVersion); await formatFiles(tree); -} +}; + +export default replaceUiVersionGenerator; diff --git a/libs/tools/src/utils/recursively-find-relative-package-json-file-paths.ts b/libs/tools/src/utils/recursively-find-relative-package-json-file-paths.ts deleted file mode 100644 index ec592b22b..000000000 --- a/libs/tools/src/utils/recursively-find-relative-package-json-file-paths.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { readdir, stat } from 'node:fs/promises'; -import { join } from 'node:path'; - -export async function recursivelyFindRelativePackageJsonFilePaths(startingDir: string): Promise { - let results = []; - const list = await readdir(startingDir); - for (const file of list) { - const filePath = join(startingDir, file); - const fileStat = await stat(filePath); - if (fileStat.isDirectory()) { - results = results.concat(await recursivelyFindRelativePackageJsonFilePaths(filePath)); - } else if (file === 'package.json') { - results.push(filePath); - } - } - return results; -} From 19cc514c35e3042ec56b53dffdc9beb7ab462be6 Mon Sep 17 00:00:00 2001 From: robingotz Date: Wed, 8 Jan 2025 18:27:06 +0100 Subject: [PATCH 35/38] fix: use correct alpha version 381 --- libs/ui/select/helm/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ui/select/helm/package.json b/libs/ui/select/helm/package.json index 453af8f56..d65f50edd 100644 --- a/libs/ui/select/helm/package.json +++ b/libs/ui/select/helm/package.json @@ -7,8 +7,8 @@ "@angular/core": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0.0.1-alpha.380", - "@spartan-ng/ui-icon-helm": "0.0.1-alpha.380", + "@spartan-ng/brain": "0.0.1-alpha.381", + "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1" } From d2d050f6f9a6a59b5dfc6642ec2c90a55b68ecc3 Mon Sep 17 00:00:00 2001 From: robingotz Date: Wed, 8 Jan 2025 18:28:30 +0100 Subject: [PATCH 36/38] fix: add back storybook command to package.json --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index f31ce5a3c..5a0c6182f 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "release-cli": "nx run-many --target=release --projects=tag:scope:cli --parallel=1", "release-ui": "nx run-many --target=release --projects=tag:scope:core,tag:scope:brain --parallel=1", "start": "nx serve app", + "storybook": "nx storybook ui-storybook", "test": "nx run-many --target test --all" }, "dependencies": { From 14277552af7463aa4f7473df0cc3af6a15046dc9 Mon Sep 17 00:00:00 2001 From: robingotz Date: Wed, 8 Jan 2025 18:30:16 +0100 Subject: [PATCH 37/38] fix: typo in @spartan-ng/brain version for pagination helm --- libs/ui/pagination/helm/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ui/pagination/helm/package.json b/libs/ui/pagination/helm/package.json index 0b656baaa..b844fe767 100644 --- a/libs/ui/pagination/helm/package.json +++ b/libs/ui/pagination/helm/package.json @@ -9,7 +9,7 @@ "@angular/router": ">=18.0.0", "@ng-icons/core": ">=29.0.0", "@ng-icons/lucide": ">=29.0.0", - "@spartan-ng/brain": "0 .0.1-alpha.381", + "@spartan-ng/brain": "0.0.1-alpha.381", "@spartan-ng/ui-button-helm": "0.0.1-alpha.381", "@spartan-ng/ui-icon-helm": "0.0.1-alpha.381", "@spartan-ng/ui-select-helm": "0.0.1-alpha.381", From 3c029b9781c71183e20b8a921f366981e0c32bd7 Mon Sep 17 00:00:00 2001 From: robingotz Date: Wed, 8 Jan 2025 23:17:36 +0100 Subject: [PATCH 38/38] fix: remove tests that don't do anything and add formatting of files --- .../replace-cli-version/generator.spec.ts | 18 ------------------ .../replace-cli-version/generator.ts | 4 +++- .../replace-ui-version/generator.spec.ts | 19 +------------------ 3 files changed, 4 insertions(+), 37 deletions(-) delete mode 100644 libs/tools/src/generators/replace-cli-version/generator.spec.ts diff --git a/libs/tools/src/generators/replace-cli-version/generator.spec.ts b/libs/tools/src/generators/replace-cli-version/generator.spec.ts deleted file mode 100644 index 0c480eeb7..000000000 --- a/libs/tools/src/generators/replace-cli-version/generator.spec.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { type Tree, readProjectConfiguration } from '@nx/devkit'; -import { createTreeWithEmptyWorkspace } from '@nx/devkit/testing'; - -import replaceCliVersionGenerator from './generator'; - -describe('replace-cli-version generator', () => { - let tree: Tree; - - beforeEach(() => { - tree = createTreeWithEmptyWorkspace(); - }); - - it.skip('should run successfully', async () => { - await replaceCliVersionGenerator(tree); - const config = readProjectConfiguration(tree, 'test'); - expect(config).toBeDefined(); - }); -}); diff --git a/libs/tools/src/generators/replace-cli-version/generator.ts b/libs/tools/src/generators/replace-cli-version/generator.ts index bde0eb99e..c0f866dc3 100644 --- a/libs/tools/src/generators/replace-cli-version/generator.ts +++ b/libs/tools/src/generators/replace-cli-version/generator.ts @@ -1,4 +1,4 @@ -import { type Tree, updateJson } from '@nx/devkit'; +import { formatFiles, type Tree, updateJson } from '@nx/devkit'; import process from 'node:process'; export default async function replaceCliVersionGenerator(tree: Tree, options?: { newVersion: string }): Promise { @@ -15,5 +15,7 @@ export default async function replaceCliVersionGenerator(tree: Tree, options?: { return pkgJson; }); + await formatFiles(tree); + console.log(`updated CLI version to ${newVersion}`); } diff --git a/libs/tools/src/generators/replace-ui-version/generator.spec.ts b/libs/tools/src/generators/replace-ui-version/generator.spec.ts index fdf48b322..5bd9b6d21 100644 --- a/libs/tools/src/generators/replace-ui-version/generator.spec.ts +++ b/libs/tools/src/generators/replace-ui-version/generator.spec.ts @@ -1,21 +1,4 @@ -import { type Tree, readProjectConfiguration } from '@nx/devkit'; -import { createTreeWithEmptyWorkspace } from '@nx/devkit/testing'; - -import replaceUiVersionGenerator, { replaceSpartanVersion } from './generator'; - -describe('replace-cli-version generator', () => { - let tree: Tree; - - beforeEach(() => { - tree = createTreeWithEmptyWorkspace(); - }); - - it.skip('should run successfully', async () => { - await replaceUiVersionGenerator(tree); - const config = readProjectConfiguration(tree, 'test'); - expect(config).toBeDefined(); - }); -}); +import { replaceSpartanVersion } from './generator'; describe('replaceSpartanVersions', () => { it('should replace only SPARTAN-prefixed versions that match oldVersion', () => {