Skip to content

Commit

Permalink
osrd-ui: build and check code (#22)
Browse files Browse the repository at this point in the history
* osrd-ui: build and check code

* fix prettier error

* osrd-ui: ignore prettier error from component generated by ui-icons

* osrd-ui: enable hot reload only when we are in development
  • Loading branch information
kmer2016 authored Apr 8, 2024
1 parent e0e11bd commit 377f8ca
Show file tree
Hide file tree
Showing 74 changed files with 33,239 additions and 33,010 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/icons-optimize.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
on:
on:
# This workflow will be laucnhed manually and will trigger a new commit
# on the branc that is specified.
workflow_dispatch:
Expand All @@ -12,7 +12,7 @@ jobs:

- uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.10'
cache: 'pip'
- run: pip install -r .github/helpers/ui-icons/requirements.txt
- run: |
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/osrd-ui-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Build osrd-ui

on: [push]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org/'
- run: |
npm ci
npm run build
26 changes: 13 additions & 13 deletions .github/workflows/osrd-ui-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org/'
- run: |
npm ci
npm run build
VERSION=${GITHUB_REF/refs\/tags\//}
lerna version $VERSION --no-private --no-git-tag-version --yes
lerna publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org/'
- run: |
npm ci
npm run build
VERSION=${GITHUB_REF/refs\/tags\//}
lerna version $VERSION --no-private --no-git-tag-version --yes
lerna publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ Icons, fonts, colors, components and all user interface items for OSRD project.

## TODO

We should write a README to explain the goal of the `osrd-ui` repository and the design system as the whole.
We should write a README to explain the goal of the `osrd-ui` repository and the design system as
the whole.

We should also explain how it is related to the `osrd-design` repository.

## Credits

### ui-icons

9 changes: 2 additions & 7 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "0.1.0",
"private": false,
"push": false,
"includeMergedTags": true
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "0.1.0",
"private": false,
"push": false,
"includeMergedTags": true
}
Loading

0 comments on commit 377f8ca

Please sign in to comment.