Skip to content

Feature/restructure #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 23 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- uses: nrwl/nx-set-shas@v4

# Build tokens
- run: npx nx run @design-system/tokens:build --no-cloud
- run: npx nx run tokens:build --no-cloud

# Prepend any command with "nx-cloud record --" to record its logs to Nx Cloud
# - run: npx nx-cloud record -- echo Hello World
Expand Down
60 changes: 60 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# ./.github/workflows/publish.yml
name: Publish

on:
push:
branches:
- feature/semver

jobs:
test:
name: Publish
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # needed for provenance data generation
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/

- name: Setup Git
run: |
git config user.name "GitHub Bot"
git config user.email "bavo.vanderghote@craftzing.com"

- name: Install dependencies
run: npm ci
shell: bash

- name: Print Environment Info
run: npx nx report
shell: bash

- name: Version
shell: bash
run: npm run version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Tag last-release
shell: bash
run: |
git tag -f last-release
git push origin last-release --force

- name: Build package
run: npx nx build @design-system/design-system
shell: bash

- name: Publish
run: npx nx release publish
shell: bash
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
dist
tmp
out-tsc
.swc

# dependencies
node_modules
Expand Down
166 changes: 166 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,166 @@
## 0.6.0 (2025-04-30)

### 🚀 Features

- add auto define import and sub entry point to get undefined comopnent ([c9773a2](https://github.com/craftzing/design-system/commit/c9773a2))

### ❤️ Thank You

- Bavo Vanderghote

## 0.5.3 (2025-04-30)

### 🩹 Fixes

- update type export syntax for correct handling by swc ([334b715](https://github.com/craftzing/design-system/commit/334b715))

### ❤️ Thank You

- Bavo Vanderghote

## 0.5.2 (2025-04-30)

### 🩹 Fixes

- fix types references in built package ([fe97ab9](https://github.com/craftzing/design-system/commit/fe97ab9))

### ❤️ Thank You

- Bavo Vanderghote

## 0.5.1 (2025-04-30)

### 🩹 Fixes

- storybook css import ([9383d5a](https://github.com/craftzing/design-system/commit/9383d5a))
- add import transforms to swc build config to allow importing ts extensions ([5c99c0f](https://github.com/craftzing/design-system/commit/5c99c0f))

### ❤️ Thank You

- Bavo Vanderghote

## 0.5.0 (2025-04-29)

### 🚀 Features

- **button:** Add button component to design system. ([38758fe](https://github.com/craftzing/design-system/commit/38758fe))

### ❤️ Thank You

- Bavo Vanderghote

## 0.4.5 (2025-04-29)

This was a version bump only, there were no code changes.

## 0.4.3 (2025-04-29)

This was a version bump only, there were no code changes.

## 0.4.2 (2025-04-29)

This was a version bump only, there were no code changes.

## 0.4.1 (2025-04-29)

This was a version bump only, there were no code changes.

## 0.4.0 (2025-04-29)

This was a version bump only, there were no code changes.

## 0.3.0 (2025-04-29)

### 🚀 Features

- Chromatic ([#1](https://github.com/craftzing/design-system/pull/1))
- cleanup ([7f30a5f](https://github.com/craftzing/design-system/commit/7f30a5f))
- **button:** Add button to design system package ([e8752b5](https://github.com/craftzing/design-system/commit/e8752b5))
- **button:** Add button component to design system. ([4190efd](https://github.com/craftzing/design-system/commit/4190efd))
- **common:** Simplify createStyles helper ([1749c84](https://github.com/craftzing/design-system/commit/1749c84))
- **core:** dummy feature ([9e74b4a](https://github.com/craftzing/design-system/commit/9e74b4a))
- **package:** Basic rollup configuration for design system bundling. ([d6293bd](https://github.com/craftzing/design-system/commit/d6293bd))
- **package:** bundle dependencies with package ([045c8bc](https://github.com/craftzing/design-system/commit/045c8bc))
- **styles:** Add shared styles lib ([8affd51](https://github.com/craftzing/design-system/commit/8affd51))
- **tokens:** Add tokens lib ([14bb7a8](https://github.com/craftzing/design-system/commit/14bb7a8))

### 🩹 Fixes

- update packag.json ([c29825d](https://github.com/craftzing/design-system/commit/c29825d))
- **dependencies:** remove lib dependencies ([7e9d883](https://github.com/craftzing/design-system/commit/7e9d883))
- **docs:** update readme ([e430b0b](https://github.com/craftzing/design-system/commit/e430b0b))

### ❤️ Thank You

- Bavo Vanderghote
- BavoVdg @BavoVdg

## 0.2.1 (2025-04-29)

### 🚀 Features

- cleanup ([7f30a5f](https://github.com/craftzing/design-system/commit/7f30a5f))
- **core:** dummy feature ([9e74b4a](https://github.com/craftzing/design-system/commit/9e74b4a))
- **package:** bundle dependencies with package ([045c8bc](https://github.com/craftzing/design-system/commit/045c8bc))

### 🩹 Fixes

- update packag.json ([c29825d](https://github.com/craftzing/design-system/commit/c29825d))
- **dependencies:** remove lib dependencies ([7e9d883](https://github.com/craftzing/design-system/commit/7e9d883))
- **docs:** update readme ([e430b0b](https://github.com/craftzing/design-system/commit/e430b0b))

### ❤️ Thank You

- Bavo Vanderghote

## 0.2.0 (2025-04-29)

### 🚀 Features

- cleanup ([7f30a5f](https://github.com/craftzing/design-system/commit/7f30a5f))
- **core:** dummy feature ([9e74b4a](https://github.com/craftzing/design-system/commit/9e74b4a))
- **package:** bundle dependencies with package ([045c8bc](https://github.com/craftzing/design-system/commit/045c8bc))

### 🩹 Fixes

- update packag.json ([c29825d](https://github.com/craftzing/design-system/commit/c29825d))
- **dependencies:** remove lib dependencies ([7e9d883](https://github.com/craftzing/design-system/commit/7e9d883))
- **docs:** update readme ([e430b0b](https://github.com/craftzing/design-system/commit/e430b0b))

### ❤️ Thank You

- Bavo Vanderghote

## 2.1.0 (2025-04-29)

### 🚀 Features

- **core:** dummy feature ([9e74b4a](https://github.com/craftzing/design-system/commit/9e74b4a))
- **package:** bundle dependencies with package ([045c8bc](https://github.com/craftzing/design-system/commit/045c8bc))

### 🩹 Fixes

- update packag.json ([c29825d](https://github.com/craftzing/design-system/commit/c29825d))
- **dependencies:** remove lib dependencies ([7e9d883](https://github.com/craftzing/design-system/commit/7e9d883))
- **docs:** update readme ([e430b0b](https://github.com/craftzing/design-system/commit/e430b0b))

### ❤️ Thank You

- Bavo Vanderghote

## 2.0.1 (2025-04-29)

### 🚀 Features

- **core:** dummy feature ([9e74b4a](https://github.com/craftzing/design-system/commit/9e74b4a))
- **package:** bundle dependencies with package ([045c8bc](https://github.com/craftzing/design-system/commit/045c8bc))

### 🩹 Fixes

- update packag.json ([c29825d](https://github.com/craftzing/design-system/commit/c29825d))
- **dependencies:** remove lib dependencies ([7e9d883](https://github.com/craftzing/design-system/commit/7e9d883))
- **docs:** update readme ([e430b0b](https://github.com/craftzing/design-system/commit/e430b0b))

### ❤️ Thank You

- Bavo Vanderghote
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ libs/tokens/tokens-studio/tokens.json
Run the following command to build the design tokens. This will generate the platform specific styles and store them in the dist folder.

```
npm run build-tokens
npm run tokens:build
```

The design tokens are now available through the workspace.
Expand All @@ -87,10 +87,10 @@ import cssTokens from @design-system/tokens/css/tokens.css

ESM support issue: https://github.com/nrwl/nx/issues/15682

An example executor for building the tokens can be found in the `tools/build-tokens` directory. With a custom executor, building the tokens might look like this:
An example executor for building the tokens can be found in the `tools/tokens:build` directory. With a custom executor, building the tokens might look like this:

```
nx run @design-system/tokens:build-tokens
nx run @design-system/tokens:tokens:build
```

### Testing your tokens
Expand Down
2 changes: 1 addition & 1 deletion libs/storybook/.storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// Setup design tokens (CSS variables) for the storybook environment
import '@design-system/tokens/css/tokens.css';
import 'craftzing-design-system-test-tokens/css/tokens.css';
49 changes: 49 additions & 0 deletions libs/storybook/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Changelog

This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).

## [2.1.2](https://github.com/craftzing/design-system/compare/v2.1.1...v2.1.2) (2025-04-29)



## [2.1.2](https://github.com/craftzing/design-system/compare/v2.1.1...v2.1.2) (2025-04-29)



## [2.1.1](https://github.com/craftzing/design-system/compare/v2.1.0...v2.1.1) (2025-04-29)



# [2.1.0](https://github.com/craftzing/design-system/compare/v2.0.0...v2.1.0) (2025-04-15)


### Features

* **package:** bundle dependencies with package ([045c8bc](https://github.com/craftzing/design-system/commit/045c8bc437da64747f98571fea0c65aae6d45ec1))



# [2.1.0](https://github.com/craftzing/design-system/compare/v2.0.0...v2.1.0) (2025-04-15)


### Features

* **package:** bundle dependencies with package ([045c8bc](https://github.com/craftzing/design-system/commit/045c8bc437da64747f98571fea0c65aae6d45ec1))



## [2.0.1](https://github.com/craftzing/design-system/compare/v2.0.0...v2.0.1) (2025-04-11)



## [2.0.1](https://github.com/craftzing/design-system/compare/v2.0.0...v2.0.1) (2025-04-11)



## [2.0.1](https://github.com/craftzing/design-system/compare/v2.0.0...v2.0.1) (2025-04-11)

## [2.0.1](https://github.com/craftzing/design-system/compare/v2.0.0...v2.0.1) (2025-04-11)



## [2.0.1](https://github.com/craftzing/design-system/compare/v2.0.0...v2.0.1) (2025-04-11)
9 changes: 8 additions & 1 deletion libs/storybook/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@design-system/storybook",
"version": "0.0.1",
"version": "0.0.0",
"private": true,
"type": "module",
"main": "./src/index.ts",
Expand Down Expand Up @@ -30,6 +30,13 @@
"quiet": true
}
}
},
"version": {
"executor": "@jscutlery/semver:version",
"options": {
"preset": "angular",
"commitMessageFormat": "ci(design system): release version {version}"
}
}
}
}
Expand Down
3 changes: 0 additions & 3 deletions libs/storybook/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"baseUrl": ".",
"rootDir": "src",
"outDir": "dist",
"tsBuildInfoFile": "dist/tsconfig.lib.tsbuildinfo",
"emitDeclarationOnly": true,
"forceConsistentCasingInFileNames": true,
"noImplicitOverride": true,
Expand Down
7 changes: 0 additions & 7 deletions libs/styles/README.md

This file was deleted.

19 changes: 0 additions & 19 deletions libs/styles/package.json

This file was deleted.

9 changes: 0 additions & 9 deletions libs/styles/project.json

This file was deleted.

1 change: 0 additions & 1 deletion libs/styles/src/index.ts

This file was deleted.

Loading
Loading