Skip to content

Commit

Permalink
feat(Footer): extracting Footer as a standalone package (#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
aversini authored Sep 17, 2024
1 parent e38f3b0 commit 8808a2a
Show file tree
Hide file tree
Showing 21 changed files with 111 additions and 9 deletions.
3 changes: 2 additions & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"packages/ui-button": "1.1.0",
"packages/ui-anchor": "1.1.0",
"packages/ui-bubble": "1.0.0",
"packages/ui-card": "1.0.0"
"packages/ui-card": "1.0.0",
"packages/ui-footer": "0.0.0"
}
9 changes: 3 additions & 6 deletions packages/ui-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist"
],
"files": ["dist"],
"scripts": {
"build:check": "tsc",
"build:js": "vite build",
Expand Down Expand Up @@ -51,13 +49,12 @@
"@versini/ui-button": "workspace:../ui-button",
"@versini/ui-bubble": "workspace:../ui-bubble",
"@versini/ui-card": "workspace:../ui-card",
"@versini/ui-footer": "workspace:../ui-footer",
"@versini/ui-hooks": "workspace:../ui-hooks",
"@versini/ui-icons": "workspace:../ui-icons",
"@versini/ui-private": "workspace:../ui-private",
"clsx": "2.1.1",
"tailwindcss": "3.4.11"
},
"sideEffects": [
"**/*.css"
]
"sideEffects": ["**/*.css"]
}
2 changes: 1 addition & 1 deletion packages/ui-components/src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { Anchor } from "@versini/ui-anchor";
import { Bubble } from "@versini/ui-bubble";
import { Button, ButtonIcon } from "@versini/ui-button";
import { Card } from "@versini/ui-card";
import { Footer } from "@versini/ui-footer";

import { Footer } from "./Footer/Footer";
import { Header } from "./Header/Header";
import { Main } from "./Main/Main";
import { Menu } from "./Menu/Menu";
Expand Down
3 changes: 3 additions & 0 deletions packages/ui-footer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# @versini/ui-footer

A simple footer component for React.
47 changes: 47 additions & 0 deletions packages/ui-footer/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"name": "@versini/ui-footer",
"version": "0.0.0",
"license": "MIT",
"author": "Arno Versini",
"publishConfig": {
"access": "public"
},
"homepage": "https://github.com/aversini/ui-components",
"repository": {
"type": "git",
"url": "[email protected]:aversini/ui-components.git"
},
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": ["dist"],
"scripts": {
"build:check": "tsc",
"build:js": "vite build",
"build:types": "tsup",
"build": "npm-run-all --serial clean build:check build:js build:types",
"clean": "rimraf dist tmp",
"dev:js": "vite build --watch --mode development",
"dev:types": "tsup --watch src",
"dev": "npm-run-all clean --parallel dev:js dev:types",
"lint": "biome lint src",
"start": "static-server dist --port 5173",
"test:coverage:ui": "vitest --coverage --ui",
"test:coverage": "vitest run --coverage",
"test:watch": "vitest",
"test": "vitest run"
},
"peerDependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@versini/ui-styles": "workspace:../ui-styles"
},
"dependencies": {
"@tailwindcss/typography": "0.5.15",
"@versini/ui-private": "workspace:../ui-private",
"tailwindcss": "3.4.11"
},
"sideEffects": ["**/*.css"]
}
6 changes: 6 additions & 0 deletions packages/ui-footer/postcss.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};
1 change: 1 addition & 0 deletions packages/ui-footer/src/common/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const FOOTER_CLASSNAME = "av-footer";
2 changes: 2 additions & 0 deletions packages/ui-footer/src/components/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from "../common/constants";
export * from "./Footer/Footer";
3 changes: 3 additions & 0 deletions packages/ui-footer/src/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
1 change: 1 addition & 0 deletions packages/ui-footer/src/style.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import "./index.css";
1 change: 1 addition & 0 deletions packages/ui-footer/src/vite-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/// <reference types="vite/client" />
2 changes: 2 additions & 0 deletions packages/ui-footer/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { commonTailwindConfigForComponent } from "../../configuration/tailwind.common";
export default commonTailwindConfigForComponent();
4 changes: 4 additions & 0 deletions packages/ui-footer/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../../configuration/tsconfig.common.json",
"include": ["src"]
}
2 changes: 2 additions & 0 deletions packages/ui-footer/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { commonTsupConfig } from "../../configuration/tsup.common";
export default commonTsupConfig;
2 changes: 2 additions & 0 deletions packages/ui-footer/vite.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { commonViteConfigForComponent } from "../../configuration/vite.common";
export default commonViteConfigForComponent();
4 changes: 4 additions & 0 deletions packages/ui-footer/vitest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { commonVitestConfig } from "../../configuration/vitestconfig.common";
import viteConfig from "./vite.config";

export default commonVitestConfig(viteConfig);
25 changes: 25 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"packages/ui-button": {},
"packages/ui-anchor": {},
"packages/ui-bubble": {},
"packages/ui-card": {}
"packages/ui-card": {},
"packages/ui-footer": {}
},
"plugins": ["node-workspace"],
"pull-request-header": ":rocket: Automated Release"
Expand Down

0 comments on commit 8808a2a

Please sign in to comment.