Skip to content

Commit

Permalink
chore(monorepo): get rid of RASTI namespace (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
mimshins authored Nov 12, 2024
1 parent e58341e commit 29c3d4c
Show file tree
Hide file tree
Showing 15 changed files with 31 additions and 28 deletions.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
layout: home

hero:
name: Rasti
name: TDS
text: Tapsi Design System

actions:
Expand Down
4 changes: 3 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ export default config(
},
},
{
plugins: { "eslint-comments": commentsPlugin },
plugins: {
"eslint-comments": commentsPlugin,
},
rules: {
"eslint-comments/disable-enable-pair": "error",
"eslint-comments/no-aggregating-enable": "error",
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@tapsioss/rasti-monorepo",
"name": "@tapsioss/monorepo",
"version": "0.1.0",
"type": "module",
"private": true,
Expand All @@ -11,14 +11,14 @@
"clear:dist": "shx rm -rf dist",
"web-components:build": "pnpm --filter @tapsioss/web-components run build",
"web-components:release": "pnpm --filter @tapsioss/web-components run release",
"theme:build": "pnpm --filter @tapsioss/rasti-theme run build",
"theme:release": "pnpm --filter @tapsioss/rasti-theme run release",
"icons:build": "pnpm --filter @tapsioss/rasti-icons run build",
"icons:release": "pnpm --filter @tapsioss/rasti-icons run release",
"web-icons:build": "pnpm --filter @tapsioss/rasti-web-icons run build",
"web-icons:release": "pnpm --filter @tapsioss/rasti-web-icons run release",
"react-icons:build": "pnpm --filter @tapsioss/rasti-react-icons run build",
"react-icons:release": "pnpm --filter @tapsioss/rasti-react-icons run release",
"theme:build": "pnpm --filter @tapsioss/theme run build",
"theme:release": "pnpm --filter @tapsioss/theme run release",
"icons:build": "pnpm --filter @tapsioss/icons run build",
"icons:release": "pnpm --filter @tapsioss/icons run release",
"web-icons:build": "pnpm --filter @tapsioss/web-icons run build",
"web-icons:release": "pnpm --filter @tapsioss/web-icons run release",
"react-icons:build": "pnpm --filter @tapsioss/react-icons run build",
"react-icons:release": "pnpm --filter @tapsioss/react-icons run release",
"dev:transpile": "tsc --project tsconfig.dev.json --watch --preserveWatchOutput",
"dev": "pnpm clear:dist && pnpm dev:transpile & wds",
"build:packages": "pnpm run -r --parallel build",
Expand Down
2 changes: 1 addition & 1 deletion packages/icons/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sideEffects": false,
"name": "@tapsioss/rasti-icons",
"name": "@tapsioss/icons",
"version": "0.1.0",
"type": "module",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/react-components/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@tapsioss/rasti-react-components",
"name": "@tapsioss/react-components",
"version": "0.1.0",
"type": "module",
"scripts": {},
Expand Down
4 changes: 2 additions & 2 deletions packages/react-icons/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sideEffects": false,
"name": "@tapsioss/rasti-react-icons",
"name": "@tapsioss/react-icons",
"version": "0.1.0",
"type": "module",
"engines": {
Expand Down Expand Up @@ -28,6 +28,6 @@
"release": "pnpm publish . --tag latest --access public"
},
"dependencies": {
"@tapsioss/rasti-icons": "workspace:*"
"@tapsioss/icons": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion packages/react-icons/scripts/build.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable no-console */
import icons from "@tapsioss/rasti-icons";
import icons from "@tapsioss/icons";
import Mustache from "mustache";
import { exec } from "node:child_process";
import * as fs from "node:fs/promises";
Expand Down
2 changes: 1 addition & 1 deletion packages/react-icons/src/base-icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const Icon = (props: Props) => {
if (!hasValidSize) {
// eslint-disable-next-line no-console
console.error(
`[RASTI][Icon]: Invalid size provided! (provided size: \`size=${
`[TAPSI][Icon]: Invalid size provided! (provided size: \`size=${
typeof size === "number" ? `${size}` : `${String(size)}`
}\`)`,
);
Expand Down
2 changes: 1 addition & 1 deletion packages/theme/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@tapsioss/rasti-theme",
"name": "@tapsioss/theme",
"version": "0.1.0",
"type": "module",
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions packages/web-icons/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sideEffects": false,
"name": "@tapsioss/rasti-web-icons",
"name": "@tapsioss/web-icons",
"version": "0.1.0",
"type": "module",
"engines": {
Expand Down Expand Up @@ -28,6 +28,6 @@
"release": "pnpm publish . --tag latest --access public"
},
"dependencies": {
"@tapsioss/rasti-icons": "workspace:*"
"@tapsioss/icons": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion packages/web-icons/scripts/build.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable no-console */
import icons from "@tapsioss/rasti-icons";
import icons from "@tapsioss/icons";
import Mustache from "mustache";
import { exec } from "node:child_process";
import * as fs from "node:fs/promises";
Expand Down
2 changes: 1 addition & 1 deletion packages/web-icons/src/base-icon.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class BaseIcon extends HTMLElement {
if (!hasValidSize) {
// eslint-disable-next-line no-console
console.error(
`[RASTI][Icon]: Invalid size provided! (provided size: \`size=${
`[TAPSI][Icon]: Invalid size provided! (provided size: \`size=${
typeof size === "number" ? `${size}` : `${String(size)}`
}\`)`,
);
Expand Down
2 changes: 1 addition & 1 deletion packages/web-icons/templates/web-icon.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ class {{name}} extends BaseIcon {
}
}

customElements.define("rasti-{{elementTag}}", {{name}});
customElements.define("tap-{{elementTag}}", {{name}});

export default {{name}};
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

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

7 changes: 4 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@
"useDefineForClassFields": false,
"importHelpers": true,

"baseUrl": ".",
"paths": {
"@tapsioss/rasti-icons": ["./packages/icons/dist"],
"@tapsioss/rasti-icons/*": ["./packages/icons/dist/*"],
"@tapsioss/icons": ["./packages/icons/dist"],
"@tapsioss/icons/*": ["./packages/icons/dist/*"],

"@tapsioss/rasti-web-components/*": ["./packages/web-components/dist/*"]
"@tapsioss/web-components/*": ["./packages/web-components/dist/*"]
}
},
"include": ["**/*.ts", "**/*.tsx"],
Expand Down

0 comments on commit 29c3d4c

Please sign in to comment.