Skip to content

Commit

Permalink
chore: deconstruct monorepo setup
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptammergard committed Mar 5, 2024
1 parent e2ded3e commit 0743fba
Show file tree
Hide file tree
Showing 274 changed files with 114 additions and 242 deletions.
15 changes: 0 additions & 15 deletions .backstage/component-einride-ui-dates.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions .backstage/component-einride-ui-labs.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions .backstage/component-einride-ui-maps.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions .backstage/component-einride-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ metadata:
annotations:
backstage.io/source-location: url:https://github.com/einride/einride-ui/tree/main
github.com/project-slug: einride/ui
github.com/team-slug: einride/team-divops
github.com/team-slug: einride/platform-engineering
spec:
type: library
system: einride-ui
owner: team-divops
owner: platform-engineering
lifecycle: production
2 changes: 1 addition & 1 deletion .backstage/system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ metadata:
title: Einride UI
description: Einride's UI framework.
spec:
owner: team-divops
owner: platform-engineering
domain: developer-platform
25 changes: 1 addition & 24 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,7 @@ import { mergeConfig } from "vite"
import turbosnap from "vite-plugin-turbosnap"

export default {
stories: [
"../packages/einride-ui/src/docs",
"../packages/einride-ui/src/components",
{
directory: "../packages/einride-ui-dates/src/components",
titlePrefix: "dates",
},
{
directory: "../packages/einride-ui-maps/src/assets",
titlePrefix: "maps",
},
{
directory: "../packages/einride-ui-maps/src/components",
titlePrefix: "maps",
},
{
directory: "../packages/einride-ui-maps/src/hooks",
titlePrefix: "maps",
},
{
directory: "../packages/einride-ui-labs/src/components",
titlePrefix: "labs",
},
],
stories: ["../src/docs", "../src/components"],
addons: [
"@storybook/addon-essentials",
"@storybook/addon-styling",
Expand Down
10 changes: 5 additions & 5 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import { DocsContainer } from "@storybook/blocks"
import { Preview, StoryContext, StoryFn } from "@storybook/react"
import { themes } from "@storybook/theming"
import React, { CSSProperties } from "react"
import { EinrideProvider } from "../packages/einride-ui/src/contexts/EinrideProvider"
import { GlobalStyles } from "../packages/einride-ui/src/lib/GlobalStyles"
import { einrideTheme } from "../packages/einride-ui/src/lib/theme/einride"
import { themes as einrideThemes } from "../packages/einride-ui/src/lib/theme/theme"
import { color } from "../packages/einride-ui/src/primitives/color"
import { EinrideProvider } from "../src/contexts/EinrideProvider"
import { GlobalStyles } from "../src/lib/GlobalStyles"
import { einrideTheme } from "../src/lib/theme/einride"
import { themes as einrideThemes } from "../src/lib/theme/theme"
import { color } from "../src/primitives/color"

const customViewports = {
small: {
Expand Down
File renamed without changes.
85 changes: 77 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
{
"name": "@einride/ui-monorepo",
"private": true,
"workspaces": [
"packages/*"
],
"name": "@einride/ui",
"version": "7.69.0",
"description": "Core components that adhere to Einride's design system",
"scripts": {
"build": "yarn build:einride-ui",
"build:einride-ui": "yarn workspace @einride/ui build",
"build": "rollup --config",
"build-storybook": "storybook build",
"review": "concurrently --kill-others-on-fail 'yarn commitlint' 'yarn format-check' 'yarn lint' 'yarn test' 'yarn typecheck' 'yarn build'",
"storybook": "storybook dev -p 6006",
Expand All @@ -15,19 +12,41 @@
"commitlint": "commitlint --from origin/main --to HEAD",
"format": "prettier --write .",
"format-check": "prettier --check .",
"lint": "eslint --ext ts,tsx packages",
"lint": "eslint --ext ts,tsx .",
"release": "yarn build && yarn changeset publish",
"test": "vitest run",
"test-watch": "vitest",
"typecheck": "tsc"
},
"dependencies": {
"@einride/hooks": "1.7.9",
"@emotion/is-prop-valid": "1.2.2",
"@mantine/core": "7.1.1",
"@mantine/dates": "7.1.1",
"@mantine/hooks": "7.1.1",
"@radix-ui/react-alert-dialog": "1.0.5",
"@radix-ui/react-dialog": "1.0.5",
"@radix-ui/react-dropdown-menu": "2.0.6",
"@radix-ui/react-radio-group": "1.1.3",
"@radix-ui/react-slider": "1.1.2",
"@radix-ui/react-switch": "1.0.3",
"@radix-ui/react-tabs": "1.0.4",
"@radix-ui/react-tooltip": "1.0.7",
"dayjs": "1.11.10",
"lodash.merge": "4.6.2"
},
"devDependencies": {
"@changesets/cli": "2.27.1",
"@commitlint/cli": "19.0.3",
"@commitlint/config-conventional": "19.0.3",
"@einride/eslint-plugin": "7.9.0",
"@einride/prettier-config": "2.1.0",
"@einride/tsconfig": "2.1.0",
"@emotion/react": "11.11.4",
"@emotion/styled": "11.11.0",
"@faker-js/faker": "8.4.1",
"@rollup/plugin-image": "3.0.3",
"@rollup/plugin-typescript": "11.1.2",
"@storybook/addon-a11y": "7.6.17",
"@storybook/addon-actions": "7.6.17",
"@storybook/addon-coverage": "1.0.1",
Expand All @@ -47,12 +66,21 @@
"@testing-library/jest-dom": "6.4.2",
"@testing-library/react": "14.2.1",
"@testing-library/user-event": "14.5.2",
"@types/lodash.merge": "4.6.9",
"@types/luxon": "3.4.2",
"@types/react": "18.2.61",
"@types/react-dom": "18.2.19",
"@vitejs/plugin-react": "4.2.1",
"chromatic": "11.0.0",
"concurrently": "8.2.2",
"eslint": "8.57.0",
"eslint-plugin-storybook": "0.8.0",
"framer-motion": "11.0.8",
"luxon": "3.4.4",
"prettier": "3.2.5",
"react": "18.2.0",
"react-dom": "18.2.0",
"rollup": "4.12.0",
"storybook": "7.6.17",
"tslib": "2.6.2",
"typescript": "5.3.3",
Expand All @@ -61,5 +89,46 @@
"vite-tsconfig-paths": "4.3.1",
"vitest": "1.3.1"
},
"peerDependencies": {
"@emotion/react": "^11.4.1",
"@emotion/styled": "^11.3.0",
"framer-motion": ">=6.2.8",
"react": "^18.0.0"
},
"files": [
"dist"
],
"types": "./dist/index.d.ts",
"main": "./dist/main.cjs.js",
"module": "./dist/main.esm.js",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/main.esm.js",
"require": "./dist/main.cjs.js"
}
},
"keywords": [
"react",
"typescript",
"ui",
"components",
"library"
],
"homepage": "https://github.com/einride/ui",
"repository": {
"type": "git",
"url": "https://github.com/einride/ui.git"
},
"bugs": {
"email": "[email protected]",
"url": "https://github.com/einride/ui/issues"
},
"license": "MIT",
"author": "Filip Tammergård <[email protected]> https://github.com/filiptammergard",
"publishConfig": {
"access": "public",
"provenance": true
},
"packageManager": "[email protected]"
}
7 changes: 0 additions & 7 deletions packages/einride-ui/README.md

This file was deleted.

92 changes: 0 additions & 92 deletions packages/einride-ui/package.json

This file was deleted.

9 changes: 0 additions & 9 deletions packages/einride-ui/tsconfig.json

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 1 addition & 7 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
{
"extends": "@einride/tsconfig",
"compilerOptions": {
"baseUrl": "./",
"paths": {
"@einride/ui": ["./packages/einride-ui/src"]
}
}
"extends": "@einride/tsconfig"
}
Loading

0 comments on commit 0743fba

Please sign in to comment.