-
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.
feat: fetch svg from asset path (#56)
* refactor: remove es icon import * refactor: adjust path * refactor: remove svgo gulp file * refactor: remove v2 legacy code * test: revert test file * fix: build sample.json * bump version * feat: implement cache * fix: revert svg incoming location * add feature flag * migrate to pnpm * add changeset * remove turbo reference * fix synatx error * fix build pipe * use pnpm 9 * fix build * revert version * chore add changeset * align PR template with ix repo * update readme * fix jsdocs * add changelog * fix: move caching to fetch function * review comments * remove breaking change * use changeset * use latest pnpm version * fix: change cache order
- Loading branch information
1 parent
b36dfa3
commit 858426a
Showing
723 changed files
with
8,586 additions
and
6,688 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,8 @@ | ||
# Changesets | ||
|
||
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works | ||
with multi-package repos, or single-package repos to help you version and publish your code. You can | ||
find the full documentation for it [in our repository](https://github.com/changesets/changesets) | ||
|
||
We have a quick list of common questions to get you started engaging with this project in | ||
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) |
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,14 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": [ | ||
"@changesets/changelog-github", | ||
{ "repo": "siemens/ix-icons" } | ||
], | ||
"commit": false, | ||
"fixed": [], | ||
"linked": [], | ||
"access": "restricted", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [] | ||
} |
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,5 @@ | ||
--- | ||
'@siemens/ix-icons': minor | ||
--- | ||
|
||
feat: fetch svg from asset path |
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 |
---|---|---|
@@ -1,29 +1,28 @@ | ||
<!-- | ||
Thanks for submitting a pull request! | ||
First off, thanks for taking the time to contribute! ❤️ | ||
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. | ||
--> | ||
## 💡 What is the current behavior? | ||
|
||
Before submitting a pull request, please make sure the following is done: | ||
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. --> | ||
|
||
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. | ||
GitHub Issue Number: #<ISSUE NUMBER> | ||
|
||
--> | ||
## 🆕 What is the new behavior? | ||
|
||
## Summary | ||
<!-- Please describe the behavior or changes that are being added by this PR. --> | ||
|
||
<!-- | ||
Explain the **motivation** for making this change. What existing problem does the pull request solve? | ||
--> | ||
- | ||
- | ||
|
||
## How did you test this change? | ||
## 🏁 Checklist | ||
|
||
<!-- | ||
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. | ||
--> | ||
A pull request can only be merged if all of these conditions are met (where applicable): | ||
|
||
- [ ] 🧪 Unit tests were added/updated and pass (`pnpm test`) | ||
- [ ] 📸 Visual regression tests were added/updated and pass ([Guide](https://github.com/siemens/ix/blob/main/CONTRIBUTING.md#visual-regression-testing)) | ||
- [ ] 🏗️ Successful compilation (`pnpm build`, changes pushed) | ||
|
||
## 👨💻 Help & support | ||
|
||
<!-- If you need help with anything related to your PR please let us know in this section --> |
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 |
---|---|---|
@@ -1,41 +1,38 @@ | ||
name: 'Build Icons' | ||
description: 'Build Icons' | ||
name: 'PNPM & Turbo Cache' | ||
description: 'PNPM & Turbo Cache' | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Remove .npmrc | ||
run: rm .npmrc | ||
shell: bash | ||
- uses: pnpm/action-setup@v2 | ||
name: Install pnpm | ||
with: | ||
version: 9 | ||
run_install: false | ||
|
||
- uses: actions/setup-node@v3 | ||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
registry-url: 'https://registry.npmjs.org' | ||
scope: '@siemens' | ||
node-version: 18 | ||
cache: 'pnpm' | ||
|
||
- name: configure yarnrc | ||
- name: Get pnpm store directory | ||
run: | | ||
echo 'yarn-offline-mirror ".yarn-cache/"' >> .yarnrc | ||
echo 'yarn-offline-mirror-pruning true' >> .yarnrc | ||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||
shell: bash | ||
|
||
- uses: actions/cache@v2 | ||
id: cache | ||
- uses: actions/cache@v3 | ||
name: Setup pnpm cache | ||
with: | ||
path: ./node_modules | ||
key: yarn-${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }} | ||
path: ${{ env.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: install | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: yarn install --frozen-lockfile --no-progress | ||
- name: Install dependencies | ||
run: pnpm install | ||
shell: bash | ||
|
||
- name: build | ||
run: yarn build | ||
shell: bash | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: dist | ||
path: | | ||
dist | ||
- name: Build | ||
shell: bash | ||
run: pnpm build |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,25 +1,30 @@ | ||
name: publish | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: publish-${{ github.sha }} | ||
cancel-in-progress: true | ||
concurrency: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
jobs: | ||
build: | ||
release: | ||
if: ${{ github.repository == 'siemens/ix-icons' }} | ||
name: Release | ||
runs-on: ubuntu-latest | ||
container: | ||
image: node:16.16.0 | ||
env: | ||
DEBIAN_FRONTEND: noninteractive | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- uses: ./.github/workflows/actions/build | ||
- name: Publish to npmjs.org | ||
run: yarn publish --access public | ||
|
||
- name: Create Release Pull Request or Publish to npm | ||
id: changesets | ||
uses: changesets/action@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
with: | ||
publish: pnpm ci:publish --publish-branch ${{ github.ref_name }} | ||
version: pnpm ci:version |
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
Oops, something went wrong.