Skip to content

Commit 9743663

Browse files
committed
WIP
1 parent 174ccee commit 9743663

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+5914
-12059
lines changed

.changeset/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Kopieer en plak het onderstaande sjabloon. Je kunt hiervoor de kopieer knop link
44

55
```markdown
66
---
7-
'@example/<package-name>': major
7+
'@frameless/<package-name>': major
88
---
99

1010
Beschrijving
@@ -15,9 +15,9 @@ dubbele aanhalingstekens op een nieuwe regel.
1515

1616
Gebruik:
1717

18-
- `"@example/<package-name>": major` voor breaking changes
19-
- `"@example/<package-name>": minor` voor nieuwe features
20-
- `"@example/<package-name>": patch` voor bug fixes
18+
- `"@frameless/<package-name>": major` voor breaking changes
19+
- `"@frameless/<package-name>": minor` voor nieuwe features
20+
- `"@frameless/<package-name>": patch` voor bug fixes
2121

2222
Beschrijf na de tweede set `---` welke veranderingen je hebt doorgevoerd.
2323

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions:
1212

1313
jobs:
1414
publish:
15-
if: ${{ github.repository != 'nl-design-system/example' }}
15+
if: ${{ github.repository != 'frameless/theme-builder' }}
1616
runs-on: ubuntu-latest
1717

1818
steps:

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ You need to have the following tools installed to run Storybook locally:
3131
1. Choose a prefix for your organisation. For example: the main NL Design System uses `nl-`, The Hague uses `denhaag-`, and you can choose something unique for you to use.
3232
2. Modify `.stylelintrc.json` by replacing the prefix `example` with the prefix you have chosen, in the following rules: `custom-property-pattern`, `selector-class-pattern`, `keyframes-name-pattern`, `scss/dollar-variable-pattern` and `scss/percent-placeholder-pattern`.
3333
3. Choose and register an npm organisation on [npmjs.com](https://www.npmjs.com/org/create), if you haven't already. This is very important to keep your project secure. The core NL Design System uses `@nl-design-system/`, and you can choose something for yourself. This prevents others from adding their code to your teams codebase.
34-
4. Modify all `package.json` files to use your npm organisation scope. Don't forget the locally linked packages under `devDependencies`. Find and replace all occurences of `@example/` in your project with `@your-organisation/`. Run `pnpm install` to install each package in under the new organisation directory in each `node_modules/`.
34+
4. Modify all `package.json` files to use your npm organisation scope. Don't forget the locally linked packages under `devDependencies`. Find and replace all occurences of `@frameless/` in your project with `@your-organisation/`. Run `pnpm install` to install each package in under the new organisation directory in each `node_modules/`.
3535
5. Modify `.npmpackagejsonlintrc.json` to require your organisation scope in package names, by configuring the `valid-values-name-scope` property.
3636
6. Modify the imports in `/packages/storybook/config/preview.ts` and `packages/web-components-stencil/src/button/index.scss` to use your prefix.
3737
7. Modify `proprietary/design-tokens/style-dictionary.config.json` to output `.yourprefix-theme` instead of `.example-theme`.
@@ -77,18 +77,18 @@ To add a component implementation to storybook, we use the `<component-name>-sto
7777

7878
Things we usually do:
7979

80-
- [ ] Generate [fine grained personal access token in GitHub](https://github.com/settings/tokens?type=beta), with rights to push npm version commits. Use a name that will be clear when the token expires, for example: `nl-design-system/example GH_TOKEN`. Choose "All repositories". For "Resource owner" choose the user or organisation of the repository. For "Repository access" choose "Only select repositories", and select only your repository. Expand "Account permissions", then for "Contents" select "Read and write".
80+
- [ ] Generate [fine grained personal access token in GitHub](https://github.com/settings/tokens?type=beta), with rights to push npm version commits. Use a name that will be clear when the token expires, for example: `frameless/theme-builder GH_TOKEN`. Choose "All repositories". For "Resource owner" choose the user or organisation of the repository. For "Repository access" choose "Only select repositories", and select only your repository. Expand "Account permissions", then for "Contents" select "Read and write".
8181
- [ ] Configure `GH_TOKEN` in Repository tokens, for use in the `publish-npm` GitHub Action. You might notice the `GITHUB_TOKEN` already exists, but the `GITHUB_` prefix is used by GitHub itself and the token has read-only rights.
82-
- [ ] Go to [npmjs.com](https://www.npmjs.com/) and create an "Granular Access Token". Use a name that serves as hint where to reset the token when it expires, for example: `nl-design-system/example NPM_TOKEN`. For "Permissions", allow only "Only select packages and scopes" and choose the scope of your npm packages. Do not store the token anywhere, just copy it to GitHub once. You can always generate new tokens, and they will be protected by multi-factor authentication.
82+
- [ ] Go to [npmjs.com](https://www.npmjs.com/) and create an "Granular Access Token". Use a name that serves as hint where to reset the token when it expires, for example: `frameless/theme-builder NPM_TOKEN`. For "Permissions", allow only "Only select packages and scopes" and choose the scope of your npm packages. Do not store the token anywhere, just copy it to GitHub once. You can always generate new tokens, and they will be protected by multi-factor authentication.
8383
- [ ] Configure `NPM_TOKEN` in Repository tokens, for use in the `publish-npm` GitHub Action.
8484
- [ ] Configure GitHub repository settings
85-
- [General settings](https://github.com/nl-design-system/example/settings)
85+
- [General settings](https://github.com/frameless/theme-builder/settings)
8686
- [ ] Uncheck "Allow merge commits"
8787
- [ ] Should already be checked: "Allow squash merging"
8888
- [ ] Should already be checked: "Allow rebase merging"
8989
- [ ] Check "Allow auto-merge"
9090
- [ ] Check "Automatically delete head branches"
91-
- [Branches](https://github.com/nl-design-system/example/settings/branches)
91+
- [Branches](https://github.com/frameless/theme-builder/settings/branches)
9292
- [ ] Add rule to protect `main` branch. Branch pattern should be exactly `main`.
9393
- [ ] Check "Require a pull request before merging"
9494
- [ ] Check "Require approvals" with at least one approval.
@@ -103,7 +103,7 @@ Things we usually do:
103103
- [ ] Check "Require linear history"
104104
- [ ] Add rule to protect `gh-pages` branch, to prevent someone from deleting it accidentally.
105105
- [ ] Enable GitHub Pages to host Storybook
106-
- [ ] Go to [Pages](https://github.com/nl-design-system/example/settings/pages), choose "Deploy from a branch" with `gh-pages` as branch with `/ (root)` as folder. If `gh-pages` is not in the list, make sure the `publish-website` action succeeds at least once.
106+
- [ ] Go to [Pages](https://github.com/frameless/theme-builder/settings/pages), choose "Deploy from a branch" with `gh-pages` as branch with `/ (root)` as folder. If `gh-pages` is not in the list, make sure the `publish-website` action succeeds at least once.
107107
- [ ] In the "Code" tab (the home page of your repository), configure the "About" section. Use "your GitHub Pages website" as "Website" of your repository.
108108
- [ ] Configure "nl-design-system" as one of the topics of your repository.
109109

index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en" class="utrecht-root basis-theme">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + TS</title>
8+
</head>
9+
<body class="utrecht-body">
10+
<div id="app" class="utrecht-page-layout"></div>
11+
<script type="module" src="/src/main.ts"></script>
12+
</body>
13+
</html>

npmpackagejsonlint.config.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
'no-tilde-version-devDependencies': 'error',
77
'require-repository-directory': 'error',
88
'valid-values-license': ['error', ['EUPL-1.2']],
9-
'valid-values-name-scope': ['error', ['@example']],
9+
'valid-values-name-scope': ['error', ['@frameless']],
1010
},
1111
overrides: [
1212
{

package.json

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@example/design-system",
2+
"name": "@frameless/theme-builder-workspace",
33
"version": "1.0.0-alpha.0",
44
"author": "Community for NL Design System",
55
"description": "Design system based on the NL Design System architecture",
@@ -10,7 +10,7 @@
1010
"private": true,
1111
"repository": {
1212
"type": "git+ssh",
13-
"url": "[email protected]:nl-design-system/example.git",
13+
"url": "[email protected]:frameless/theme-builder.git",
1414
"directory": "."
1515
},
1616
"packageManager": "[email protected]+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0",
@@ -45,10 +45,13 @@
4545
"stylelint": "16.15.0",
4646
"stylelint-config-standard-scss": "14.0.0",
4747
"stylelint-order": "6.0.4",
48-
"typescript": "5.8.2"
48+
"typescript": "5.8.2",
49+
"vite": "6.2.0"
4950
},
5051
"scripts": {
51-
"build": "pnpm --recursive run build",
52+
"dev": "vite",
53+
"build": "pnpm --recursive run build && pnpm run build:vite",
54+
"build:vite": "tsc && vite build",
5255
"clean": "pnpm --recursive run clean",
5356
"lint": "npm-run-all --continue-on-error lint:** lint-workspaces",
5457
"lint:css": "stylelint --allow-empty-input '**/*.{css,scss}'",
@@ -68,6 +71,7 @@
6871
"changeset:empty": "changeset --empty",
6972
"changeset:publish": "changeset publish",
7073
"changeset:status": "changeset status --since origin/main",
74+
"preview": "vite preview",
7175
"start": "http-server packages/storybook/dist/",
7276
"storybook": "npm-run-all --parallel watch:**",
7377
"test": "pnpm run test-workspaces",
@@ -76,10 +80,18 @@
7680
"update-patch": "npm-check-updates --configFileName .ncurc.patch.cjs",
7781
"update-minor": "npm-check-updates --configFileName .ncurc.minor.cjs",
7882
"update-major": "npm-check-updates --configFileName .ncurc.major.cjs",
79-
"watch:storybook": "pnpm --filter @example/web-components-stencil run build:stencil && pnpm --filter @example/design-tokens run build:style-dictionary && pnpm --filter ./packages/storybook run storybook",
80-
"watch:style-dictionary": "pnpm --filter @example/design-tokens run watch:style-dictionary"
83+
"watch:storybook": "pnpm --filter @frameless/web-components-stencil run build:stencil && pnpm --filter @frameless/design-tokens run build:style-dictionary && pnpm --filter ./packages/storybook run storybook",
84+
"watch:style-dictionary": "pnpm --filter @frameless/design-tokens run watch:style-dictionary"
8185
},
8286
"dependencies": {
87+
"@radix-ui/colors": "3.0.0",
88+
"@utrecht/body-css": "1.2.0",
89+
"@utrecht/page-layout-css": "1.1.0",
90+
"@utrecht/root-css": "1.2.0",
91+
"@utrecht/web-component-library-stencil": "3.1.0",
92+
"bezier-easing": "2.1.0",
93+
"colorjs.io": "0.5.2",
8394
"http-server": "14.1.1"
84-
}
95+
},
96+
"type": "module"
8597
}

packages/components-css/button/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

packages/components-css/button/index.scss

Lines changed: 0 additions & 16 deletions
This file was deleted.

packages/components-css/package.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

packages/components-react/.eslintrc.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/components-react/jest.config.mjs

Lines changed: 0 additions & 19 deletions
This file was deleted.

packages/components-react/package.json

Lines changed: 0 additions & 80 deletions
This file was deleted.

packages/components-react/rollup.config.mjs

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
 (0)