Skip to content

Commit

Permalink
[ci] release (#237)
Browse files Browse the repository at this point in the history
* [ci] release

* Simplify changeset

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Drew Powers <drew@pow.rs>
  • Loading branch information
3 people authored Mar 30, 2024
1 parent 6758709 commit fdb175d
Show file tree
Hide file tree
Showing 16 changed files with 124 additions and 75 deletions.
7 changes: 0 additions & 7 deletions .changeset/cold-dodos-doubt.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/giant-hotels-protect.md

This file was deleted.

6 changes: 6 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @cobalt-ui/cli

## 1.10.2

### Patch Changes

- [`a00e3c6d8ffb4ab8e4473a2c0152b3cd199a8414`](https://github.com/drwpow/cobalt-ui/commit/a00e3c6d8ffb4ab8e4473a2c0152b3cd199a8414) Thanks [@drwpow](https://github.com/drwpow)! - Improve lint error outputs

## 1.10.0

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@cobalt-ui/cli",
"description": "CLI for managing design tokens using the Design Tokens Community Group (DTCG) standard and generating code for any platform via plugins.",
"version": "1.10.0",
"version": "1.10.2",
"author": {
"name": "Drew Powers",
"email": "drew@pow.rs"
Expand Down Expand Up @@ -46,8 +46,8 @@
"test:ts": "tsc --noEmit"
},
"dependencies": {
"@cobalt-ui/core": "^1.10.0",
"@cobalt-ui/utils": "^1.2.4",
"@cobalt-ui/core": "^1.10.2",
"@cobalt-ui/utils": "^1.2.5",
"chokidar": "^3.6.0",
"culori": "^3.3.0",
"dotenv": "^16.4.5",
Expand Down
32 changes: 17 additions & 15 deletions packages/cli/test/lint.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,24 @@ import { describe, expect, it } from 'vitest';
const cmd = '../../../bin/cli.js';

describe('lint', () => {
it('can lint current directory', async () => {
const cwd = new URL('./fixtures/lint-passing/', import.meta.url);
const { stdout } = await execa('node', [cmd, 'lint'], { cwd });
expect(stdout).toContain('all checks passed');
});
describe('general', () => {
it('can lint current directory', async () => {
const cwd = new URL('./fixtures/lint-passing/', import.meta.url);
const { stdout } = await execa('node', [cmd, 'lint'], { cwd });
expect(stdout).toContain('all checks passed');
});

it('can lint manual path (while loading config)', async () => {
const cwd = new URL('./fixtures/lint-manual-path/', import.meta.url);
const { stdout } = await execa('node', [cmd, 'lint', '../../../../../examples/radix/tokens.yaml'], { cwd });
expect(stdout).toContain('all checks passed');
});
it('can lint manual path (while loading config)', async () => {
const cwd = new URL('./fixtures/lint-manual-path/', import.meta.url);
const { stdout } = await execa('node', [cmd, 'lint', '../../../../../examples/radix/tokens.yaml'], { cwd });
expect(stdout).toContain('all checks passed');
});

it('throws syntax error', async () => {
const cwd = new URL('./fixtures/lint-invalid-syntax/', import.meta.url);
expect(() => execa('node', [cmd, 'lint'], { cwd })).rejects.toThrowError(
'[config] lint rule "a11y/contrast" invalid syntax. Expected string | number | array, received object',
);
it('throws syntax error', async () => {
const cwd = new URL('./fixtures/lint-invalid-syntax/', import.meta.url);
expect(() => execa('node', [cmd, 'lint'], { cwd })).rejects.toThrowError(
'[config] lint rule "a11y/contrast" invalid syntax. Expected string | number | array, received object',
);
});
});
});
6 changes: 6 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @cobalt-ui/core

## 1.10.2

### Patch Changes

- [`a00e3c6d8ffb4ab8e4473a2c0152b3cd199a8414`](https://github.com/drwpow/cobalt-ui/commit/a00e3c6d8ffb4ab8e4473a2c0152b3cd199a8414) Thanks [@drwpow](https://github.com/drwpow)! - Improve lint error outputs

## 1.10.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@cobalt-ui/core",
"description": "Parser/validator for the Design Tokens Community Group (DTCG) standard.",
"version": "1.10.1",
"version": "1.10.2",
"author": {
"name": "Drew Powers",
"email": "drew@pow.rs"
Expand Down Expand Up @@ -42,7 +42,7 @@
"test:ts": "tsc --noEmit"
},
"dependencies": {
"@cobalt-ui/utils": "^1.2.4",
"@cobalt-ui/utils": "^1.2.5",
"@types/culori": "^2.1.0",
"culori": "^4.0.1",
"parse-json": "^8.1.0",
Expand Down
6 changes: 6 additions & 0 deletions packages/lint-a11y/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @cobalt-ui/lint-a11y

## 0.0.3

### Patch Changes

- [`a00e3c6d8ffb4ab8e4473a2c0152b3cd199a8414`](https://github.com/drwpow/cobalt-ui/commit/a00e3c6d8ffb4ab8e4473a2c0152b3cd199a8414) Thanks [@drwpow](https://github.com/drwpow)! - Improve lint error outputs

## 0.0.2

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/lint-a11y/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cobalt-ui/lint-a11y",
"version": "0.0.2",
"version": "0.0.3",
"author": {
"name": "Drew Powers",
"email": "drew@pow.rs"
Expand Down Expand Up @@ -36,10 +36,10 @@
"test:ts": "tsc --noEmit"
},
"peerDependencies": {
"@cobalt-ui/cli": "^1.10.0"
"@cobalt-ui/cli": "^1.10.2"
},
"dependencies": {
"@cobalt-ui/utils": "^1.2.4",
"@cobalt-ui/utils": "^1.2.5",
"apca-w3": "^0.1.9",
"culori": "^4.0.1"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
"test:ts": "tsc --noEmit"
},
"peerDependencies": {
"@cobalt-ui/cli": "^1.10.0"
"@cobalt-ui/cli": "^1.10.2"
},
"dependencies": {
"@cobalt-ui/utils": "^1.2.4",
"@cobalt-ui/utils": "^1.2.5",
"@types/culori": "^2.1.0",
"@types/mime": "^3.0.4",
"culori": "^3.3.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
"test:ts": "tsc --noEmit"
},
"peerDependencies": {
"@cobalt-ui/cli": "1.10.0"
"@cobalt-ui/cli": "1.10.2"
},
"dependencies": {
"@cobalt-ui/utils": "^1.2.4"
"@cobalt-ui/utils": "^1.2.5"
},
"devDependencies": {
"@cobalt-ui/cli": "workspace:^",
Expand Down
4 changes: 2 additions & 2 deletions packages/plugin-sass/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
"test:ts": "tsc --noEmit"
},
"peerDependencies": {
"@cobalt-ui/cli": "^1.10.0",
"@cobalt-ui/cli": "^1.10.2",
"@cobalt-ui/plugin-css": "^1.7.3"
},
"dependencies": {
"@cobalt-ui/utils": "^1.2.4",
"@cobalt-ui/utils": "^1.2.5",
"@types/mime": "^3.0.4",
"mime": "^3.0.0",
"svgo": "^3.2.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin-tailwind/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"dependencies": {
"@cobalt-ui/plugin-css": "^1.7.3",
"@cobalt-ui/utils": "^1.2.4"
"@cobalt-ui/utils": "^1.2.5"
},
"devDependencies": {
"@cobalt-ui/cli": "workspace:^",
Expand Down
6 changes: 6 additions & 0 deletions packages/utils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @cobalt-ui/utils

## 1.2.5

### Patch Changes

- [`a00e3c6d8ffb4ab8e4473a2c0152b3cd199a8414`](https://github.com/drwpow/cobalt-ui/commit/a00e3c6d8ffb4ab8e4473a2c0152b3cd199a8414) Thanks [@drwpow](https://github.com/drwpow)! - Add indentLine and indentBlock helpers

## 1.2.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@cobalt-ui/utils",
"description": "Generic codegen utilities",
"version": "1.2.4",
"version": "1.2.5",
"author": {
"name": "Drew Powers",
"email": "drew@pow.rs"
Expand Down
Loading

0 comments on commit fdb175d

Please sign in to comment.