Skip to content

Commit

Permalink
Update github actions workflows in prep for merge to master
Browse files Browse the repository at this point in the history
  • Loading branch information
taysea committed Sep 12, 2024
1 parent a83b48c commit bd30dfe
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 55 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/sync-figma-to-tokens.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
type: choice
description: Which branch to update
options:
- design-tokens-alpha
- master
jobs:
sync-figma-to-tokens:
runs-on: ubuntu-latest
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/sync-tokens-to-figma.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ name: Sync tokens to Figma
on:
push:
branches:
- design-tokens
- master
paths:
- design-tokens/**

jobs:
sync-tokens-to-figma:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: Update design-tokens-alpha-stable
name: Update design-tokens-stable
on:
push:
branches:
- design-tokens-alpha
- master
paths:
- design-tokens/**

jobs:
update-design-tokens-alpha-stable:
update-design-tokens-stable:
runs-on: ubuntu-latest
steps:
- name: Install Node.js
Expand All @@ -26,7 +28,7 @@ jobs:
- name: Build
run: yarn build
working-directory: design-tokens
- name: Update design-tokens-alpha-stable
- name: Update design-tokens-stable
run: |
git config --global user.name "Grommet Community Bot"
git config --global user.email "[email protected]"
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ yarn-error.log*
report*
.DS_Store
.native-web
.tailwind-app
.tailwind-app
31 changes: 2 additions & 29 deletions design-tokens-manager/README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,3 @@
# React + TypeScript + Vite
# HPE Design Tokens Manager

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

## Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

- Configure the top-level `parserOptions` property like this:

```js
export default {
// other rules...
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
project: ['./tsconfig.json', './tsconfig.node.json'],
tsconfigRootDir: __dirname,
},
}
```

- Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked`
- Optionally add `plugin:@typescript-eslint/stylistic-type-checked`
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends` list
This is a tool to manage hpe-design-tokens.
2 changes: 1 addition & 1 deletion design-tokens-manager/public/_redirects
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/* /index.html 200
/* /index.html 200
24 changes: 24 additions & 0 deletions design-tokens/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,25 @@
# hpe-design-tokens

Design tokens for use with the HPE Design System.

## Install

With yarn:

```
yarn add hpe-design-tokens
```

With npm:

```
yarn add hpe-design-tokens
```

## Usage

For usage instructions, see [HPE Design System design token documentation](https://design-system.hpe.design/tokens).

## License

[Apache-2.0](https://github.com/grommet/hpe-design-system/blob/design-tokens-alpha/design-tokens/LICENSE)
9 changes: 1 addition & 8 deletions sandbox/grommet-app/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
# React + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
This is a testing application for hpe-design-tokens with Grommet.
2 changes: 1 addition & 1 deletion sandbox/grommet-app/public/_redirects
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/* /index.html 200
/* /index.html 200
2 changes: 1 addition & 1 deletion sandbox/native-web/public/_redirects
Original file line number Diff line number Diff line change
@@ -1 +1 @@
/* /index.html 200
/* /index.html 200
9 changes: 1 addition & 8 deletions sandbox/tailwind-app/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
# React + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
This is a testing application for hpe-design-tokens with Tailwind.

0 comments on commit bd30dfe

Please sign in to comment.