Skip to content

Commit

Permalink
refactor(ui-icons): s2 migration of assets
Browse files Browse the repository at this point in the history
  • Loading branch information
castastrophe committed Apr 12, 2024
1 parent 35c5f60 commit 8345447
Show file tree
Hide file tree
Showing 155 changed files with 521 additions and 274 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
# If statement isn't needed here b/c yarn will leverage the cache if it exists
- name: Install dependencies
shell: bash
run: yarn install --frozen-lockfile --cache-folder .cache/yarn
run: yarn install --frozen-lockfile --cache-folder .cache/yarn --ignore-optional

- name: Reset nx cache to prevent cross-machine errors
shell: bash
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/compare-results.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# note: if cache-hit isn't needed b/c yarn will leverage the cache if it exists
- name: Install dependencies
shell: bash
run: yarn install --frozen-lockfile --cache-folder .cache/yarn
run: yarn install --frozen-lockfile --cache-folder .cache/yarn --ignore-optional

- name: Set the cache key for builds
id: derive-key
Expand Down Expand Up @@ -192,7 +192,7 @@ jobs:
# note: if cache-hit isn't needed b/c yarn will leverage the cache if it exists
- name: Install dependencies
shell: bash
run: yarn install --frozen-lockfile --cache-folder .cache/yarn
run: yarn install --frozen-lockfile --cache-folder .cache/yarn --ignore-optional

- name: Reset nx cache to prevent cross-machine errors
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
# If statement isn't needed here b/c yarn will leverage the cache if it exists
- name: Install dependencies
shell: bash
run: yarn install --frozen-lockfile --cache-folder .cache/yarn
run: yarn install --frozen-lockfile --cache-folder .cache/yarn --ignore-optional

- name: Lint component styles
if: ${{ inputs.styles_added_files != '' || inputs.styles_modified_files != '' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
# note: if cache-hit isn't needed b/c yarn will leverage the cache if it exists
- name: Install dependencies
shell: bash
run: yarn install --frozen-lockfile --cache-folder .cache/yarn
run: yarn install --frozen-lockfile --cache-folder .cache/yarn --ignore-optional

- name: Reset nx cache to prevent cross-machine errors
shell: bash
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vrt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
## --- INSTALL --- ##
- name: Install dependencies
shell: bash
run: yarn install --frozen-lockfile --cache-folder .cache/yarn
run: yarn install --frozen-lockfile --cache-folder .cache/yarn --ignore-optional

- name: Publish to Chromatic
id: chromatic
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
dist
dist-site

!tokens/dist
!ui-icons/dist

# Recommended update re:https://docs.netlify.com/integrations/frameworks/eleventy/
**/node_modules/**

temp
.npmrc*
.nx
.env
.tmp
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@a4u:registry=https://artifactory.corp.adobe.com/artifactory/api/npm/npm-a4u-release/
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"linter": "nx run-many --target lint --verbose --projects",
"new": "nx run @spectrum-css/generator:new",
"precommit": "lint-staged",
"prepare": "husky install && run-p refresh:directory refresh:env && yarn refresh:config",
"prepare": "husky install && run-p refresh:directory refresh:env refresh:auth && yarn refresh:config",
"refresh:auth": "source ./tasks/auth.sh || exit 0",
"refresh:config": "test -n $BASH_VERSION && bash ./tasks/chromatic-config-creation.sh || exit 0",
"refresh:directory": "test -n $BASH_VERSION && bash ./tasks/clean-up-after-migration.sh || exit 0",
"refresh:env": "test -n $BASH_VERSION && bash ./tasks/copy-env-from-root.sh || exit 0",
Expand All @@ -57,6 +58,9 @@
".storybook",
".github/actions/*"
],
"optionalDependencies": {
"@a4u/a4u-s2-ui-icon-global-set": "^1.5.0"
},
"devDependencies": {
"@commitlint/cli": "^19.2.1",
"@commitlint/config-conventional": "^19.1.0",
Expand Down
16 changes: 16 additions & 0 deletions tasks/auth.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash -e

if [ "$0" = "$BASH_SOURCE" ]; then
echo >&2 "Usage: source $0";
exit 1
fi

ARTIFACTORY_API_TOKEN=${ARTIFACTORY_API_TOKEN:-$ARTIFACTORY_API_KEY}
if [ -z "$ARTIFACTORY_API_TOKEN" ]; then
echo >&2 "🔍 no ARTIFACTORY_API_TOKEN detected.";
else
auth=$(curl -s -H "X-Api-Key: ${ARTIFACTORY_API_TOKEN}" https://artifactory.corp.adobe.com/artifactory/api/npm/auth)
export NPM_AUTH=$(echo "$auth" | grep "_auth" | awk -F " " '{print $3}')
export NPM_EMAIL=$(echo "$auth" | grep "email" | awk -F " " '{print $3}')
echo >&2 "🪩 exported NPM_EMAIL and NPM_AUTH.";
fi
44 changes: 44 additions & 0 deletions ui-icons/dist/icons.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
[
"Add50.svg",
"Add75.svg",
"Add100.svg",
"Add200.svg",
"Add300.svg",
"Arrow100.svg",
"Arrow400.svg",
"Asterisk100.svg",
"Asterisk200.svg",
"Asterisk300.svg",
"Checkmark50.svg",
"Checkmark75.svg",
"Checkmark100.svg",
"Checkmark200.svg",
"Checkmark300.svg",
"Checkmark400.svg",
"Chevron50.svg",
"Chevron75.svg",
"Chevron100.svg",
"Chevron200.svg",
"Chevron300.svg",
"Chevron400.svg",
"CornerTriangle75.svg",
"CornerTriangle100.svg",
"CornerTriangle200.svg",
"CornerTriangle300.svg",
"Cross75.svg",
"Cross100.svg",
"Cross200.svg",
"Cross300.svg",
"Cross400.svg",
"Cross500.svg",
"Cross600.svg",
"Dash50.svg",
"Dash75.svg",
"Dash100.svg",
"Dash200.svg",
"Dash300.svg",
"LinkOut100.svg",
"LinkOut200.svg",
"LinkOut300.svg",
"LinkOut400.svg"
]
128 changes: 128 additions & 0 deletions ui-icons/dist/spectrum-css-icons.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions ui-icons/dist/svg/Add100.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions ui-icons/dist/svg/Add200.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions ui-icons/dist/svg/Add300.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions ui-icons/dist/svg/Add50.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions ui-icons/dist/svg/Add75.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8345447

Please sign in to comment.