Skip to content

Commit

Permalink
Tweak and rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
tbradsha committed May 2, 2024
1 parent e5fca24 commit 7f3282f
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 574 deletions.
564 changes: 0 additions & 564 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Binary file modified projects/js-packages/social-logos/build/font/social-logos.woff2
Binary file not shown.
2 changes: 2 additions & 0 deletions projects/js-packages/social-logos/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@
"minimum-stability": "dev",
"prefer-stable": true,
"extra": {
"autorelease": true,
"autotagger": true,
"npmjs-autopublish": true,
"mirror-repo": "Automattic/social-logos",
"release-branch-prefix": "social-logos",
"changelogger": {
"link-template": "https://github.com/Automattic/social-logos/compare/v${old}...v${new}"
}
Expand Down
6 changes: 0 additions & 6 deletions projects/js-packages/social-logos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"bugs": {
"url": "https://github.com/Automattic/jetpack/labels/[JS Package] Social Logos"
},
"type": "module",
"main": "build/react/index.jsx",
"peerDependencies": {
"react": "^18.0.0",
Expand All @@ -29,11 +28,6 @@
"react-dom": "18.2.0"
},
"devDependencies": {
"@babel/cli": "^7.23.9",
"@babel/core": "^7.24.0",
"@babel/preset-env": "7.15.0",
"@babel/preset-react": "^7.14.5",
"babel-preset-minify": "^0.5.1",
"svg2ttf": "^6.0.3",
"svgicons2svgfont": "^12.0.0",
"svgo": "^3.2.0",
Expand Down
5 changes: 5 additions & 0 deletions projects/js-packages/social-logos/src/react/index.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/**
* Export components.
*/
export { default } from './social-logo';
export { SocialLogoData } from './social-logo-data';
3 changes: 0 additions & 3 deletions projects/js-packages/social-logos/tools/build-react
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ mkdir -p "$dest_react_dir"
# Copy source JSX as well.
cp "$src_react_dir"/*.jsx "$dest_react_dir"

# JSX -> JS
npx babel --quiet --presets @babel/preset-env,@babel/preset-react,minify --out-dir "$dest_react_dir" "$dest_react_dir"

# Copy example CSS.
cp "$src_css_dir"/example.css "$dest_react_dir"

Expand Down

0 comments on commit 7f3282f

Please sign in to comment.