Skip to content

Commit

Permalink
feat(root): rename web to nova and uilib to luna
Browse files Browse the repository at this point in the history
  • Loading branch information
neuodev committed Aug 3, 2024
1 parent c30c3ff commit 6c3496a
Show file tree
Hide file tree
Showing 88 changed files with 1,827 additions and 4,797 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,21 +23,28 @@ jobs:
run: yarn
- name: Build types
run: yarn build:types
- name: Build Atlas SDK
- name: Build Atlas (API SDK)
run: yarn build:atlas
- name: Build Uilib
run: yarn build:uilib
# Oribit Deployment
- name: Build Luna (Design System & Storybooks)
run: yarn build:luna
# Orbit Deployment
- name: Pull Orbit from Vercel
run: yarn vercel:ci pull "orbit" "./orbit/" --token=${{ secrets.VERCEL_TOKEN }}
run: yarn vercel:ci pull "orbit" "orbit/" --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Orbit using Vercel
run: yarn build:orbit:vercel
- name: Deploy Orbit to Vercel
run: yarn deploy:orbit:vercel --token=${{ secrets.VERCEL_TOKEN }}
# Nova Deployment
- name: Pull Nova from Vercel
run: yarn vercel:ci pull "nova" "./web/" --token=${{ secrets.VERCEL_TOKEN }}
run: yarn vercel:ci pull "nova" "nova/" --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Nova using Vercel
run: yarn build:nova:vercel
- name: Deploy Nova to Vercel
run: yarn deploy:nova:vercel --token=${{ secrets.VERCEL_TOKEN }}
# Luna Deployment
- name: Pull Luna from Vercel
run: yarn vercel:ci pull "luna" "luna/" --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Luna using Vercel
run: yarn build:luna:vercel
- name: Deploy Luna to Vercel
run: yarn deploy:luna:vercel --token=${{ secrets.VERCEL_TOKEN }}
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ dist/
.yarn/
*storybook.log

# uilib
uilib/src/index.css
# luna
luna/src/index.css
storybook-static/

# server
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 3 additions & 1 deletion uilib/package.json → luna/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@litespace/uilib",
"name": "@litespace/luna",
"private": true,
"version": "1.0.0",
"type": "module",
Expand All @@ -22,6 +22,8 @@
"dev": "vite",
"build": "tsc && vite build && yarn build:css",
"build:css": "tailwindcss -m -i ./src/tailwind.css -o ./dist/style.css",
"build:vercel": "yarn vercel build",
"deploy:vercel": "yarn vercel deploy --prebuilt",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview",
"storybook": "concurrently 'yarn storybook:css' 'yarn storybook:dev'",
Expand Down
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.
2 changes: 1 addition & 1 deletion web/package.json → nova/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
},
"dependencies": {
"@litespace/atlas": "1.0.0",
"@litespace/luna": "1.0.0",
"@litespace/types": "1.0.0",
"@litespace/uilib": "1.0.0",
"@reduxjs/toolkit": "^2.2.5",
"axios": "^1.7.2",
"framer-motion": "^11.2.6",
Expand Down
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.
4 changes: 2 additions & 2 deletions web/src/main.tsx → nova/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import ReactDOM from "react-dom/client";
import { Provider as ReduxProvider } from "react-redux";
import { locales } from "@litespace/uilib";
import { locales } from "@litespace/luna";
import { IntlProvider } from "react-intl";
import { store } from "@/redux/store";
import { QueryClient, QueryClientProvider } from "react-query";
import App from "@/App";

import "@litespace/uilib/style.css";
import "@litespace/luna/style.css";
import "@/index.css";

const queryClient = new QueryClient();
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion web/src/pages/Login.tsx → nova/src/pages/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
Discord,
Facebook,
useValidation,
} from "@litespace/uilib";
} from "@litespace/luna";
import React, { useCallback } from "react";
import { SubmitHandler } from "react-hook-form";
import { FormattedMessage, useIntl } from "react-intl";
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/Register.tsx → nova/src/pages/Register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
Discord,
Facebook,
useValidation,
} from "@litespace/uilib";
} from "@litespace/luna";
import React, { useCallback } from "react";
import { SubmitHandler } from "react-hook-form";
import { FormattedMessage, useIntl } from "react-intl";
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/Root.tsx → nova/src/pages/Root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { atlas } from "@/lib/atlas";
import { useAppDispatch, useAppSelector } from "@/redux/store";
import { findMe, profileSelector } from "@/redux/user/me";
import { Route } from "@/types/routes";
import { Button, messages } from "@litespace/uilib";
import { Button, messages } from "@litespace/luna";
import React, { useEffect } from "react";
import { FormattedMessage } from "react-intl";
import { useMutation } from "react-query";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useAppDispatch, useAppSelector } from "@/redux/store";
import { findMe, profileSelector } from "@/redux/user/me";
import { User } from "@/types";
import { Route } from "@/types/routes";
import { Button, messages } from "@litespace/uilib";
import { Button, messages } from "@litespace/luna";
import React, { useEffect } from "react";
import { FormattedMessage } from "react-intl";
import { useMutation } from "react-query";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useAppDispatch, useAppSelector } from "@/redux/store";
import { findMe, profileSelector } from "@/redux/user/me";
import { Route } from "@/types/routes";
import { IUser } from "@litespace/types";
import { Button, messages } from "@litespace/uilib";
import { Button, messages } from "@litespace/luna";
import React, { useEffect } from "react";
import { FormattedMessage } from "react-intl";
import { useMutation } from "react-query";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useAppDispatch, useAppSelector } from "@/redux/store";
import { findMe, profileSelector } from "@/redux/user/me";
import { Route } from "@/types/routes";
import { Button, Form, Input, messages, useValidation } from "@litespace/uilib";
import { Button, Form, Input, messages, useValidation } from "@litespace/luna";
import React, { useCallback, useEffect } from "react";
import { useIntl } from "react-intl";
import { useMutation } from "react-query";
Expand Down
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: 8 additions & 0 deletions nova/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** @type {import('tailwindcss').Config} */
export default {
content: ["./index.html", "./src/**/*.{js,ts,jsx,tsx}"],
theme: {
extend: {},
},
plugins: [],
};
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion orbit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"@fullcalendar/timegrid": "^6.1.14",
"@litespace/atlas": "1.0.0",
"@litespace/types": "1.0.0",
"@litespace/uilib": "1.0.0",
"@refinedev/antd": "5.42.0",
"@refinedev/cli": "2.16.36",
"@refinedev/core": "4.53.0",
Expand Down
2 changes: 1 addition & 1 deletion orbit/src/pages/reports/create.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Create, useForm } from "@refinedev/antd";
import { Form, Input, Select } from "antd";
import { required } from "@/lib/constants";
import { categoryOptions } from "@litespace/uilib";
import { categoryOptions } from "@litespace/luna";

export const ReportCreate = () => {
const { formProps, saveButtonProps } = useForm({});
Expand Down
2 changes: 1 addition & 1 deletion orbit/src/pages/reports/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Flex, Form, Input, InputNumber, Select, Switch } from "antd";
import { useOne, useResource } from "@refinedev/core";
import { PercentageOutlined } from "@ant-design/icons";
import { discountFormatter, discountParser } from "@/lib/utils";
import { categoryOptions } from "@litespace/uilib";
import { categoryOptions } from "@litespace/luna";

export const ReportEdit = () => {
const { resource, id } = useResource();
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,25 @@
"build:orbit": "yarn workspace @litespace/orbit build",
"build:types": "yarn workspace @litespace/types build",
"build:atlas": "yarn workspace @litespace/atlas build",
"build:uilib": "yarn workspace @litespace/uilib build",
"build:luna": "yarn workspace @litespace/luna build",
"build:orbit:vercel": "yarn workspace @litespace/orbit build:vercel",
"build:nova:vercel": "yarn workspace @litespace/nova build:vercel",
"build:luna:vercel": "yarn workspace @litespace/luna build:vercel",
"deploy:orbit:vercel": "yarn workspace @litespace/orbit deploy:vercel",
"deploy:nova:vercel": "yarn workspace @litespace/nova deploy:vercel",
"deploy:luna:vercel": "yarn workspace @litespace/luna deploy:vercel",
"vercel": "env-cmd ts-node scripts/vercel.ts",
"vercel:ci": "ts-node scripts/vercel.ts"
},
"workspaces": {
"packages": [
"server",
"emails",
"uilib",
"luna",
"orbit",
"atlas",
"types",
"web"
"nova"
]
},
"packageManager": "[email protected]",
Expand Down
12 changes: 0 additions & 12 deletions web/tailwind.config.js

This file was deleted.

Loading

0 comments on commit 6c3496a

Please sign in to comment.