-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
de1f765
commit 86233f0
Showing
10 changed files
with
266 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<!-- | ||
|
||
PLEASE HELP US PROCESS CORE UI ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION. | ||
|
||
--> | ||
|
||
## I'm submitting a... | ||
|
||
<!-- Check one of the following options with "x" --> | ||
<pre><code> | ||
[ ] Regression (a behavior that used to work and stopped working in a new release) | ||
[ ] Bug report | ||
[ ] Performance issue | ||
[ ] Feature request | ||
[ ] Documentation issue or request | ||
[ ] Support request | ||
[ ] Other... Please describe: | ||
</code></pre> | ||
|
||
## Current behavior | ||
|
||
<!-- Describe how the issue manifests. --> | ||
|
||
## Expected behavior | ||
|
||
<!-- Describe what the desired behavior would be. --> | ||
|
||
## Minimal reproduction of the problem with instructions | ||
|
||
<!-- | ||
For bug reports please provide the *STEPS TO REPRODUCE* and if possible a *MINIMAL DEMO* of the problem. | ||
--> | ||
|
||
## What is the motivation / use case for changing the behavior? | ||
|
||
<!-- Describe the motivation or the concrete use case. --> | ||
|
||
## Environment | ||
|
||
- [ ] Upload `package.json`-dependencies: | ||
- [ ] Upload `package-lock.json`-dependencies: | ||
|
||
<pre><code> | ||
- Environment: <!-- React/Angular/Web Components --> | ||
- Installed version: XX | ||
|
||
Browser: | ||
- [ ] Chrome (desktop) version XX | ||
- [ ] Chrome (Android) version XX | ||
- [ ] Chrome (iOS) version XX | ||
- [ ] Firefox version XX | ||
- [ ] Safari (desktop) version XX | ||
- [ ] Safari (iOS) version XX | ||
- [ ] IE version XX | ||
- [ ] Edge version XX | ||
|
||
For Tooling issues: | ||
- Node version: <!-- run `node --version` --> | ||
- Platform: <!-- Mac, Linux, Windows --> | ||
|
||
Others: | ||
<!-- Anything else relevant? Operating system version, IDE, package manager, HTTP server, ... --> | ||
</code></pre> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!-- | ||
Thanks for submitting a pull request! | ||
We appreciate you spending the time to work on these changes. Please provide enough information so that others can review your pull request. The three fields below are mandatory. | ||
|
||
Before submitting a pull request, please make sure the following is done: | ||
|
||
1. Fork [the repository](https://github.com/siemens/ix) and create your branch from `main`. | ||
2. Run `yarn` in the repository root. | ||
3. If you've fixed a bug or added code that should be tested, add tests! | ||
4. Ensure the test suite passes (`yarn test`). | ||
5. Format your code with [prettier](https://github.com/prettier/prettier). | ||
6. Make sure your code lints. | ||
7. If you haven't already, complete the CLA. | ||
|
||
--> | ||
|
||
## Summary | ||
|
||
<!-- | ||
Explain the **motivation** for making this change. What existing problem does the pull request solve? | ||
--> | ||
|
||
## How did you test this change? | ||
|
||
<!-- | ||
Demonstrate the code is solid. Example: The exact commands you ran and their output, screenshots / videos if the pull request changes the user interface. | ||
How exactly did you verify that your PR solves the issue you wanted to solve? | ||
If you leave this empty, your PR will very likely be closed. | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: 'Build Icons' | ||
description: 'Build Icons' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: configure yarnrc | ||
run: | | ||
echo 'yarn-offline-mirror ".yarn-cache/"' >> .yarnrc | ||
echo 'yarn-offline-mirror-pruning true' >> .yarnrc | ||
shell: bash | ||
- uses: actions/cache@v2 | ||
id: cache | ||
with: | ||
path: ./node_modules | ||
key: yarn-modules-${{ hashFiles('yarn-lock.json') }} | ||
- name: install | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: yarn install --frozen-lockfile --no-progress | ||
shell: bash | ||
- name: build | ||
run: yarn build | ||
shell: bash | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: dist | ||
path: | | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: 'Test Icons' | ||
description: 'Test if all svg files are generated to dist' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: build | ||
run: yarn test | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: build | ||
|
||
on: | ||
pull_request: | ||
branches: ['**'] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: node:16.16.0 | ||
env: | ||
DEBIAN_FRONTEND: noninteractive | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/workflows/actions/build | ||
- uses: ./.github/workflows/actions/test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: publish | ||
|
||
on: | ||
release: | ||
types: [prerelease] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: node:16.16.0 | ||
env: | ||
DEBIAN_FRONTEND: noninteractive | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/workflows/actions/build | ||
- uses: ./.github/workflows/actions/test | ||
- name: publish lib | ||
run: yarn publish --tag beta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: publish | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: node:16.16.0 | ||
env: | ||
DEBIAN_FRONTEND: noninteractive | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ./.github/workflows/actions/build | ||
- uses: ./.github/workflows/actions/test | ||
- name: publish lib | ||
run: yarn publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2022 Siemens AG | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
import fse from 'fs-extra'; | ||
import path from 'path'; | ||
|
||
const __dirname = path.resolve(); | ||
|
||
async function main() { | ||
const allsvgs = fse.readdirSync(path.join(__dirname, 'svg')); | ||
const generatedCssFile = fse.readFileSync( | ||
path.join(__dirname, 'dist', 'css', 'ix-icons.css') | ||
); | ||
|
||
allsvgs | ||
.map((svg) => svg.replace('.svg', '')) | ||
.forEach((svg) => { | ||
if (generatedCssFile.includes(svg)) { | ||
return; | ||
} | ||
|
||
console.error(`${svg} is missing in dist/css/ix-icons.css`); | ||
process.exit(1); | ||
}); | ||
|
||
console.log('All svg files generated as svg'); | ||
} | ||
|
||
main(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters