Skip to content

Commit

Permalink
chore: publish @wingconsole/ui package (#3094)
Browse files Browse the repository at this point in the history
- Prepares `@wingconsole/ui` for being published
- Adds a feature to `bump-pack` that uses the `package.json` publishConfig fields if they exist
  • Loading branch information
skyrpex authored Jun 27, 2023
1 parent 44129c7 commit 41b4981
Show file tree
Hide file tree
Showing 17 changed files with 230 additions and 485 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ jobs:
name: wingconsoleserver
path: apps/wing-console/console/server/*.tgz

- name: Upload Wing Console UI
uses: actions/upload-artifact@v3
with:
name: wingconsoleui
path: apps/wing-console/console/ui/*.tgz

- name: Upload Wing Console App
uses: actions/upload-artifact@v3
with:
Expand Down Expand Up @@ -219,6 +225,7 @@ jobs:
HANGAR_WING_SPEC: "file:${{ github.workspace }}/wing/winglang-${{ needs.build.outputs.version }}.tgz"
HANGAR_WINGCONSOLE_APP_SPEC: "file:${{ github.workspace }}/wingconsoleapp/wingconsole-app-${{ needs.build.outputs.version }}.tgz"
HANGAR_WINGCONSOLE_SERVER_SPEC: "file:${{ github.workspace }}/wingconsoleserver/wingconsole-server-${{ needs.build.outputs.version }}.tgz"
HANGAR_WINGCONSOLE_UI_SPEC: "file:${{ github.workspace }}/wingconsoleui/wingconsole-ui-${{ needs.build.outputs.version }}.tgz"
HANGAR_WINGCOMPILER_SPEC: "file:${{ github.workspace }}/wingcompiler/winglang-compiler-${{ needs.build.outputs.version }}.tgz"
HANGAR_WINGSDK_SPEC: "file:${{ github.workspace }}/wingsdk/winglang-sdk-${{ needs.build.outputs.version }}.tgz"
steps:
Expand Down Expand Up @@ -284,6 +291,7 @@ jobs:
HANGAR_WING_SPEC: "file:${{ github.workspace }}/target/wing/winglang-${{ needs.build.outputs.version }}.tgz"
HANGAR_WINGCONSOLE_APP_SPEC: "file:${{ github.workspace }}/target/wingconsoleapp/wingconsole-app-${{ needs.build.outputs.version }}.tgz"
HANGAR_WINGCONSOLE_SERVER_SPEC: "file:${{ github.workspace }}/target/wingconsoleserver/wingconsole-server-${{ needs.build.outputs.version }}.tgz"
HANGAR_WINGCONSOLE_UI_SPEC: "file:${{ github.workspace }}/target/wingconsoleui/wingconsole-ui-${{ needs.build.outputs.version }}.tgz"
HANGAR_WINGCOMPILER_SPEC: "file:${{ github.workspace }}/target/wingcompiler/winglang-compiler-${{ needs.build.outputs.version }}.tgz"
HANGAR_WINGSDK_SPEC: "file:${{ github.workspace }}/target/wingsdk/winglang-sdk-${{ needs.build.outputs.version }}.tgz"
steps:
Expand Down
51 changes: 25 additions & 26 deletions apps/wing-console/console/app/package-lock.json

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

29 changes: 17 additions & 12 deletions apps/wing-console/console/design-system/package-lock.json

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

8 changes: 2 additions & 6 deletions apps/wing-console/console/design-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
"private": true,
"exports": "./src/index.ts",
"types": "./src/index.ts",
"files": [
"dist"
],
"scripts": {
"tsc": "tsc --build",
"eslint": "eslint --ext .js,.cjs,.ts,.cts,.mts,.tsx --no-error-on-unmatched-pattern . --fix",
Expand All @@ -20,7 +17,7 @@
"@popperjs/core": "^2.11.8",
"@storybook/react": "^7.0.20",
"@testing-library/react": "^14.0.0",
"@types/lodash": "^4.14.195",
"@types/lodash.uniq": "^4.5.7",
"@types/react": "^18.2.12",
"@types/react-dom": "^18.2.5",
"@vitejs/plugin-react": "^4.0.0",
Expand All @@ -30,13 +27,12 @@
"classnames": "^2.3.2",
"eslint": "^8.42.0",
"happy-dom": "^9.20.3",
"lodash": "^4.17.21",
"lodash.uniq": "^4.5.0",
"nanoid": "^4.0.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-lottie-player": "^1.5.4",
"react-popper": "^2.3.0",
"require-from-string": "^2.0.2",
"typescript": "^5.1.3",
"vite": "^4.3.9",
"vitest": "^0.31.4",
Expand Down
2 changes: 1 addition & 1 deletion apps/wing-console/console/design-system/src/tree.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import classNames from "classnames";
import { uniq } from "lodash";
import uniq from "lodash.uniq";
import { useState, KeyboardEvent, useEffect, Ref, useCallback } from "react";

import { useTheme } from "./theme-provider.js";
Expand Down
7 changes: 6 additions & 1 deletion apps/wing-console/console/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,13 @@ export type { Updater, UpdaterStatus } from "./updater.js";
export type { Config } from "./config.js";
export type { Router } from "./router/index.js";
export type { HostUtils } from "./hostUtils.js";
export type { RouterContext } from "./utils/createRouter.js";
export type { MapNode, MapEdge } from "./router/app.js";
export type { InternalTestResult } from "./router/test.js";
export type { Column } from "./router/table.js";
export type { NodeDisplay } from "./utils/constructTreeNodeMap.js";

type RouteNames = keyof inferRouterInputs<Router> | undefined;
export type RouteNames = keyof inferRouterInputs<Router> | undefined;

export interface CreateConsoleServerOptions {
wingfile: string;
Expand Down
Loading

0 comments on commit 41b4981

Please sign in to comment.