Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into feature/file-uploader-poc
  • Loading branch information
dlnr committed Oct 31, 2024
2 parents 98024ba + 76411eb commit 20c804f
Show file tree
Hide file tree
Showing 51 changed files with 2,002 additions and 1,421 deletions.
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,21 @@ updates:
directory: "/"
schedule:
interval: "weekly"
# Prod and dev dependencies are split in two groups,
# because their PRs get a different prefix ('fix' for prod, 'chore' for dev)
groups:
patch-and-minor-dependencies:
applies-to: "version-updates"
dependency-type: "production"
update-types:
- "patch"
- "minor"
patch-and-minor-dev-dependencies:
applies-to: "version-updates"
dependency-type: "development"
update-types:
- "patch"
- "minor"
versioning-strategy: "increase-if-necessary"
open-pull-requests-limit: 20
commit-message:
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/feature-branch-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,17 @@ jobs:
BRANCH_NAME=$(echo $RAW_BRANCH_NAME | sed 's/[^/]*\///')
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
- name: Check out
- name: Check out branch to access .nvmrc
uses: actions/checkout@v4
with:
ref: gh-pages

- uses: actions/setup-node@v4
with:
node-version: 20
node-version-file: .nvmrc

- name: Check out gh-pages branch
uses: actions/checkout@v4
with:
ref: gh-pages

- name: Delete folder
run: |
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/feature-branch-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,12 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 20
node-version-file: .nvmrc

- uses: pnpm/action-setup@v4
name: Install pnpm
id: pnpm-install
with:
version: 9
run_install: false

- name: Install dependencies
Expand All @@ -63,7 +62,7 @@ jobs:
target-folder: demo-${{ env.BRANCH_NAME }}

- name: Wait for GitHub Pages to be deployed
uses: mydea/action-wait-for-api@v2
uses: mydea/action-wait-for-api@v1
with:
url: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/demo-${{ env.BRANCH_NAME }}/${{ github.sha }}.txt
expected-status: 200
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ jobs:
- name: Set up Node.js version
uses: actions/setup-node@v4
with:
node-version: "20"
node-version-file: .nvmrc

- name: Install pnpm
uses: pnpm/action-setup@v4
id: pnpm-install
with:
version: 9
run_install: false

- name: Get pnpm store directory
Expand Down Expand Up @@ -54,13 +53,12 @@ jobs:
- name: Set up Node.js version
uses: actions/setup-node@v4
with:
node-version: "20"
node-version-file: .nvmrc

- name: Install pnpm
uses: pnpm/action-setup@v4
id: pnpm-install
with:
version: 9
run_install: false

- name: Get pnpm store directory
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

steps:
- name: Create release
uses: googleapis/release-please-action@v4
uses: google-github-actions/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -33,15 +33,14 @@ jobs:
- name: Set up Node.js version
uses: actions/setup-node@v4
with:
node-version: 20
node-version-file: .nvmrc
registry-url: "https://registry.npmjs.org"
if: ${{ steps.release.outputs.releases_created == 'true' }}

- name: Install pnpm
uses: pnpm/action-setup@v4
id: pnpm-install
with:
version: 9
run_install: false
if: ${{ steps.release.outputs.releases_created == 'true' }}

Expand Down Expand Up @@ -76,7 +75,7 @@ jobs:

# The logic below handles the Storybook deploy:
- name: "Restore build artifact: Storybook"
uses: dawidd6/action-download-artifact@v6
uses: dawidd6/action-download-artifact@v3
with:
workflow: "lint-test.yml"
name: storybook
Expand Down
10 changes: 5 additions & 5 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"packages/css": "0.11.1",
"packages/react": "0.11.1",
"proprietary/assets": "0.2.1",
"proprietary/react-icons": "0.1.12",
"proprietary/tokens": "0.11.0"
"packages/css": "0.13.0",
"packages/react": "0.13.0",
"proprietary/assets": "0.2.2",
"proprietary/react-icons": "0.1.13",
"proprietary/tokens": "0.13.0"
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This helps everyone work faster and better, with more time to create value.
To our citizens and businesses, all our channels look the same and work similarly;
they are broadly accessible and evoke trust.

We aim to create libraries for, or support otherwise, Figma, CSS, React, React Native, Salesforce, and Mendix.
We aim to create libraries for, or support otherwise, Figma, CSS, React, React Native, and Mendix.

## Related resources

Expand Down
4 changes: 2 additions & 2 deletions documentation/git.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Configure this immediately after downloading.

From the directory that holds the repository:

```bash
```sh
git config user.name Your Name

git config user.email [email protected]
Expand Down Expand Up @@ -139,7 +139,7 @@ For users of Git via the CLI, it may be helpful to create aliases for some commo
You can save this in a configuration file of your shell.
For example:

```bash
```sh
alias gcd="git checkout develop"
alias gcp="git checkout -"
alias gh="git push"
Expand Down
4 changes: 2 additions & 2 deletions documentation/publishing.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ This will cause a major version bump in both packages on release and add its des

1. Locally merge the latest version of `develop` into `main` using a fast-forward merge, and push to the remote:

```shell
```sh
git checkout main
git pull
git merge --ff-only origin/develop
Expand All @@ -46,7 +46,7 @@ This will cause a major version bump in both packages on release and add its des
3. When complete, the Action adds a new release commit to `main`.
Locally merge this commit back into `develop` and push it to the remote:

```shell
```sh
git checkout develop
git pull
git merge --ff-only origin/main
Expand Down
8 changes: 0 additions & 8 deletions documentation/storybook.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,3 @@ argTypes: {
Decorators are not shown in the code view, `args.children` are.
3. Always check your stories’ code view.
4. `args.children` can be an array, separated by commas and given ascending numbers as keys.

## Future plans

We are considering what to document for each component in the various libraries.

We aim to document each implementation of each component – CSS, React, React Native, and Salesforce Lightning Web Components.

We’re eager to get the most out of Storybook features for accessibility, testing, and more.
23 changes: 16 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
{
"version": "0.0.0",
"author": "Community for NL Design System",
"description": "Design system based on the NL Design System architecture",
"author": "Design System Team, City of Amsterdam <[email protected]>",
"description": "Reusable components, patterns and guidelines powering the City of Amsterdam’s digital services.",
"homepage": "https://designsystem.amsterdam/",
"license": "EUPL-1.2",
"name": "@amsterdam/design-system",
"keywords": [
"nl-design-system"
"amsterdam",
"amsterdam-design-system",
"assets",
"css",
"design-system",
"icons",
"nl-design-system",
"react"
],
"private": true,
"engines": {
Expand All @@ -19,7 +27,7 @@
"./storybook"
],
"devDependencies": {
"@types/node": "22.7.8",
"@types/node": "22.8.2",
"@typescript-eslint/eslint-plugin": "7.18.0",
"@typescript-eslint/parser": "7.18.0",
"conventional-changelog-conventionalcommits": "8.0.0",
Expand All @@ -29,12 +37,12 @@
"eslint-plugin-jest": "28.8.3",
"eslint-plugin-json": "3.1.0",
"eslint-plugin-mdx": "3.1.5",
"eslint-plugin-react": "7.37.1",
"eslint-plugin-react": "7.37.2",
"html-validate": "8.24.2",
"husky": "9.1.6",
"lint-staged": "15.2.10",
"markdownlint-cli": "0.42.0",
"npm-check-updates": "17.1.4",
"npm-check-updates": "17.1.9",
"npm-package-json-lint": "8.0.0",
"npm-run-all": "4.1.5",
"plop": "4.0.1",
Expand Down Expand Up @@ -92,5 +100,6 @@
"path-to-regexp@<0.1.10": ">=0.1.10",
"cookie@<0.7.0": ">=0.7.0"
}
}
},
"packageManager": "[email protected]+sha512.22721b3a11f81661ae1ec68ce1a7b879425a1ca5b991c975b074ac220b187ce56c708fe5db69f4c962c989452eee76c82877f4ee80f474cebd61ee13461b6228"
}
Loading

0 comments on commit 20c804f

Please sign in to comment.