Skip to content

Commit ee6236e

Browse files
committed
fix(viewer): fixing one more path
2 parents 7009d97 + b538200 commit ee6236e

File tree

13 files changed

+27966
-21
lines changed

13 files changed

+27966
-21
lines changed

.changeset/s2-tokens-viewer-improvements.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs/s2-tokens-viewer/CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# s2-tokens-viewer
2+
3+
## 0.1.1
4+
5+
### Patch Changes
6+
7+
- [#533](https://github.com/adobe/spectrum-tokens/pull/533) [`27fe5e4`](https://github.com/adobe/spectrum-tokens/commit/27fe5e44fed13b7b1fddd02f614251cc47c4f8eb) Thanks [@GarthDB](https://github.com/GarthDB)! - Improve S2 tokens viewer self-containment and deployment
8+
9+
**Enhancements:**
10+
- Add workspace dependency on `@adobe/spectrum-tokens` package
11+
- Add prepare script to automatically copy token files locally
12+
- Update file paths to use relative paths instead of absolute paths
13+
- Make viewer fully self-contained with local token files
14+
15+
**Technical Changes:**
16+
- Updated `package.json` to include workspace dependency and prepare script
17+
- Modified `index.html` to load token files from relative paths (`packages/tokens/src/`)
18+
- Added local copies of all Spectrum 2 token JSON files for standalone operation
19+
20+
These changes make the S2 tokens viewer easier to deploy and more portable, eliminating dependencies on external file paths while maintaining full functionality.

docs/s2-tokens-viewer/moon.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ tags:
1616
tasks:
1717
clean:
1818
command:
19+
- mkdir
20+
- -p
21+
- ../../site/s2-tokens-viewer/
22+
- "&&"
1923
- rm
2024
- -rf
2125
- ../../site/s2-tokens-viewer
@@ -42,6 +46,11 @@ tasks:
4246
- -r
4347
- ./data
4448
- ../../site/s2-tokens-viewer/
49+
- "&&"
50+
- cp
51+
- -r
52+
- ./tokens
53+
- ../../site/s2-tokens-viewer/
4554
deps:
4655
- ~:clean
4756
- ~:buildDirectories

docs/s2-tokens-viewer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "s2-tokens-viewer",
33
"private": true,
44
"access": "restricted",
5-
"version": "0.1.0",
5+
"version": "0.1.1",
66
"repository": {
77
"type": "git",
88
"url": "git+https://github.com/adobe/spectrum-tokens.git"
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "@adobe/spectrum-tokens",
3+
"version": "13.12.0",
4+
"description": "Design tokens for Spectrum, Adobe's design system",
5+
"type": "module",
6+
"main": "index.js",
7+
"tokens": "dist/json/variables.json",
8+
"scripts": {},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/adobe/spectrum-tokens.git"
12+
},
13+
"author": "Garth Braithwaite <[email protected]> (http://garthdb.com/)",
14+
"contributors": [
15+
"Aaron Brownlee <[email protected]> (https://misterbrownlee.com)"
16+
],
17+
"license": "Apache-2.0",
18+
"bugs": {
19+
"url": "https://github.com/adobe/spectrum-tokens/issues"
20+
},
21+
"publishConfig": {
22+
"provenance": true
23+
},
24+
"homepage": "https://github.com/adobe/spectrum-tokens/tree/main/packages/tokens#readme",
25+
"devDependencies": {
26+
"@adobe/token-diff-generator": "workspace:*",
27+
"ajv": "^8.17.1",
28+
"ajv-formats": "^3.0.1",
29+
"deep-object-diff": "^1.1.9",
30+
"find-duplicated-property-keys": "^1.2.9",
31+
"style-dictionary": "^3.9.2",
32+
"style-dictionary-sets": "^2.3.0",
33+
"tar": "^7.4.3",
34+
"tmp-promise": "^3.0.3"
35+
}
36+
}

0 commit comments

Comments
 (0)