Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: amzn/style-dictionary
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.0.0-prerelease.8
Choose a base ref
...
head repository: amzn/style-dictionary
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
Showing 743 changed files with 66,646 additions and 52,074 deletions.
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

8 changes: 8 additions & 0 deletions .changeset/README.md
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)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
12 changes: 0 additions & 12 deletions .editorconfig

This file was deleted.

27 changes: 0 additions & 27 deletions .eslintrc.json

This file was deleted.

5 changes: 2 additions & 3 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
*Issue #, if available:*

*Description of changes:*
_Issue #, if available:_

_Description of changes:_

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release

on:
push:
branches:
- main

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
# use lts, bump this if new major becomes lts
node-version: 20.x
registry-url: 'https://registry.npmjs.org'

- name: Install Dependencies
run: npm ci

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: npm run release
commit: 'chore: release'
# to ensure the lock file also gets bumped accordingly and added to the commit
version: 'npm run version'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
23 changes: 0 additions & 23 deletions .github/workflows/test.yml

This file was deleted.

60 changes: 60 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Verify changes

on: pull_request

jobs:
verify:
name: Verify changes
strategy:
matrix:
# latest node & minimum node according to pkg.json engines
node-version: [18.0, 21.x]
os: [ubuntu-latest, windows-latest]
runs-on: ${{matrix.os}}
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v4

- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Install Dependencies
run: npm ci

- name: Linting & Formatting
run: npm run lint

- name: Node tests
run: npm run test:node

- name: Install chromium
run: npx playwright install --with-deps chromium

- name: Browser tests
run: npm run test

- name: Performance tests
run: npm run test:perf
verify-strip-types:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Node 22.6.0
uses: actions/setup-node@v4
with:
node-version: 22.6.0
cache: 'npm'

- name: Install Dependencies
run: npm ci

- name: Node Strip types tests
run: npm run test:strip-types
29 changes: 16 additions & 13 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Logs
logs
/logs
*.log
npm-debug.log*

@@ -8,11 +8,8 @@ pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
/coverage

# nyc test coverage
.nyc_output
@@ -24,7 +21,7 @@ coverage
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
/build/Release

# Dependency directories
node_modules
@@ -40,24 +37,24 @@ yarn.lock
.node_repl_history

# Native Builds
build/
/build/

# Android Specific Files
.gradle/
local.properties
gen/
out/
/gen/
/out/
*.class
.navigation/
captures/
/captures/
*.apk
*.ap_
*.iml
.idea/
*.jks

# IOS Specific Files
DerivedData/
/DerivedData/
*.pbxuser
!default.pbxuser
*.mode1v3
@@ -77,5 +74,11 @@ xcuserdata/
# Mac directory hidden files
*.DS_Store

# Temporary build output directory for unit tests
__tests__/__output
# Temporary build output directory for tests
/__tests__/__output
/__integration__/build

# build output
/docs/dist/
# generated types
.astro/
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx commitlint --edit "$1"
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm test
npx lint-staged
2 changes: 1 addition & 1 deletion .jsdoc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"plugins": ["./node_modules/jsdoc-escape-at"]
"plugins": ["./node_modules/jsdoc-escape-at", "./node_modules/jsdoc-tsimport-plugin/index.js"]
}
4 changes: 2 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.gitignore
.eslintrc.json
eslint.config.js
.editorconfig
images/
test/
__tests__/
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.changeset/
**/*.snap.js
/docs/dist
Loading