Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
0358d86
Add `theme` package
mirka Oct 13, 2025
0010125
Remove ts extensions
mirka Oct 13, 2025
22f281c
Handle CSS modules
mirka Oct 14, 2025
4741fc1
Update package lock
mirka Oct 14, 2025
0568c63
Allow public documentation
mirka Oct 15, 2025
24da932
Merge branch 'trunk' into theme-package
mirka Oct 15, 2025
97b0dfd
Add content to readme
mirka Oct 15, 2025
71d1f63
Lock private APIs
mirka Oct 15, 2025
fe9e740
Fix missing React error in test file
mirka Oct 15, 2025
d377c0c
Remove test for now (requires jest 30)
mirka Oct 15, 2025
d0d0242
Remove Storybook for now (punt to follow-up)
mirka Oct 15, 2025
91c4376
Remove build scripts to bin
mirka Oct 15, 2025
c144b61
Merge branch 'trunk' into theme-package
mirka Oct 16, 2025
a1c0e40
Move to prebuild folder
mirka Oct 16, 2025
67abb89
Lint all prebuild files
mirka Oct 16, 2025
54a4cb0
Move `design-tokens.ts` file to prebuild folder
mirka Oct 16, 2025
e4519e5
Fixup
mirka Oct 16, 2025
c43da33
Prebuild as part of root build process
mirka Oct 16, 2025
a89b0de
Try resolving floating point differences
mirka Oct 16, 2025
2f6f56b
Update readme
mirka Oct 17, 2025
97aa621
Remove layers from stylesheet
mirka Oct 17, 2025
a1c7b23
Merge branch 'trunk' into theme-package
mirka Oct 17, 2025
98ab6ed
Reduce color ramp tests
mirka Oct 17, 2025
2dfcd14
Move prebuild files into src (fixes types)
mirka Oct 17, 2025
815798b
Allow theme package to participate in private APIs
mirka Oct 17, 2025
ddfa586
Output combined stylesheet
mirka Oct 20, 2025
6aa7e5c
Rename prebuild to prebuilt
mirka Oct 21, 2025
cd1192c
Merge branch 'trunk' into theme-package
mirka Oct 21, 2025
d86bdeb
Merge branch 'trunk' into theme-package
mirka Oct 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove build scripts to bin
  • Loading branch information
mirka committed Oct 15, 2025
commit 91c4376957a70b3ed4b469972632a76463a5c045
3 changes: 1 addition & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const developmentFiles = [
'**/@(__mocks__|__tests__|test)/**/*.[tj]s?(x)',
'**/@(storybook|stories)/**/*.[tj]s?(x)',
'packages/babel-preset-default/bin/**/*.js',
'packages/theme/scripts/**/*.[tj]s?(x)',
'packages/theme/bin/**/*.[tj]s?(x)',
'packages/theme/terrazzo.config.ts',
];

Expand Down Expand Up @@ -437,7 +437,6 @@ module.exports = {
'bin/**/*.mjs',
'packages/env/**',
'packages/theme/bin/**/*.[tj]s?(x)',
'packages/theme/scripts/**/*.[tj]s?(x)',
],
rules: {
'no-console': 'off',
Expand Down
6 changes: 3 additions & 3 deletions packages/theme/bin/build-tokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const path = require( 'path' );
*/

const TEMP_FILES = [
'scripts/generate-primitive-tokens/index.mjs',
'bin/generate-primitive-tokens/index.mjs',
'terrazzo.config.mjs',
];

Expand Down Expand Up @@ -43,7 +43,7 @@ try {
// Step 1: Compile the primitive token generator
console.log( '🔨 Compiling primitive token generator...' );
execSync(
'npx esbuild scripts/generate-primitive-tokens/index.ts --bundle --platform=node --format=esm --packages=external --outfile=scripts/generate-primitive-tokens/index.mjs',
'npx esbuild bin/generate-primitive-tokens/index.ts --bundle --platform=node --format=esm --packages=external --outfile=bin/generate-primitive-tokens/index.mjs',
{
stdio: 'inherit',
cwd: process.cwd(),
Expand All @@ -52,7 +52,7 @@ try {

// Step 2: Run the primitive token generator
console.log( '🎨 Generating primitive tokens...' );
execSync( 'node scripts/generate-primitive-tokens/index.mjs', {
execSync( 'node bin/generate-primitive-tokens/index.mjs', {
stdio: 'inherit',
cwd: process.cwd(),
} );
Expand Down
6 changes: 3 additions & 3 deletions packages/theme/terrazzo.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import { makeCSSVar } from '@terrazzo/token-tools/css';
/**
* Internal dependencies
*/
import pluginFigmaDsTokenManager from './scripts/terrazzo-plugin-figma-ds-token-manager/index';
import pluginKnownWpdsCssVariables from './scripts/terrazzo-plugin-known-wpds-css-variables/index';
import pluginDsTokenDocs from './scripts/terrazzo-plugin-ds-tokens-docs/index';
import pluginFigmaDsTokenManager from './bin/terrazzo-plugin-figma-ds-token-manager/index';
import pluginKnownWpdsCssVariables from './bin/terrazzo-plugin-known-wpds-css-variables/index';
import pluginDsTokenDocs from './bin/terrazzo-plugin-ds-tokens-docs/index';

export default defineConfig( {
tokens: [
Expand Down
8 changes: 7 additions & 1 deletion packages/theme/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,11 @@
"types": [ "jest", "@testing-library/jest-dom" ]
},
"references": [ { "path": "../element" }, { "path": "../private-apis" } ],
"include": [ "src", "types", "scripts", "build/js", "terrazzo.config.ts" ]
"include": [
"src",
"types",
"bin/**/*.ts",
"build/js",
"terrazzo.config.ts"
]
}
Loading