Skip to content

Commit

Permalink
fix(ui): drop services, pages and layouts from ui, fix extern…
Browse files Browse the repository at this point in the history
…al deps and move snippets directory (#130)

* feat(ui): register stepper components

* feat(ui): add `sass` as dep

* feat(ui): drop packages `services`, `pages`, `layouts` from `ui`

BREAKING CHANGE: dropped `services`, `pages`, `layouts` from `ui`, install manually if you use it

* chore(ui): moved `snippets` folder to `packages`

* fix(toast): fix storybook path

* fix(ui): fix external deps bundle
  • Loading branch information
gravitano authored Feb 20, 2023
1 parent b7e600a commit d5c00eb
Show file tree
Hide file tree
Showing 31 changed files with 28 additions and 48 deletions.
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 packages/toast/src/stories/Changelog.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Meta, Description} from '@storybook/addon-docs';
import Changelog from '../CHANGELOG.md';
import Changelog from '../../CHANGELOG.md';

<Meta title="Components/Toast/Changelog" />

Expand Down
2 changes: 1 addition & 1 deletion packages/toast/src/stories/Readme.stories.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Meta, Description} from '@storybook/addon-docs';
import Readme from '../README.md';
import Readme from '../../README.md';

<Meta title="Components/Toast/Readme" />

Expand Down
8 changes: 3 additions & 5 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,18 @@
"@gits-id/editor": "^0.16.1",
"@gits-id/forms": "^0.16.1",
"@gits-id/icon": "^0.16.1",
"@gits-id/layouts": "^0.16.1",
"@gits-id/list": "^0.16.1",
"@gits-id/logo": "^0.16.1",
"@gits-id/menu": "^0.16.1",
"@gits-id/menus": "^0.17.0-beta.1",
"@gits-id/modal": "^0.16.1",
"@gits-id/multi-select": "^0.16.1",
"@gits-id/nav-drawer": "^0.16.1",
"@gits-id/navbar": "^0.17.0-beta.1",
"@gits-id/pages": "^0.16.1",
"@gits-id/navbar": "^0.17.0-beta.0",
"@gits-id/pagination": "^0.16.1",
"@gits-id/progress-bar": "^0.16.1",
"@gits-id/rating": "^0.16.1",
"@gits-id/select": "^0.16.1",
"@gits-id/services": "^0.16.1",
"@gits-id/shimmer": "^0.16.1",
"@gits-id/spinner": "^0.16.1",
"@gits-id/stats": "^0.16.1",
Expand All @@ -53,7 +50,8 @@
"@gits-id/utils": "^0.16.1",
"@headlessui/vue": "^1.6.0",
"@vue/test-utils": "^2.0.0-rc.17",
"vue": "^3.2.33"
"vue": "^3.2.33",
"sass": "^1.58.3"
},
"main": "./dist/ui.umd.js",
"unpkg": "./dist/ui.iife.js",
Expand Down
24 changes: 0 additions & 24 deletions packages/ui/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,6 @@ import VToast from '@gits-id/toast';
import VStats from '@gits-id/stats';
import { VCollapsible, VCollapse, VCollapsibleGroup } from '@gits-id/collapsible';
import VMultiSelect from '@gits-id/multi-select';
import {
Auth as AuthLayout,
Base as BaseLayout,
Default as DefaultLayout,
} from '@gits-id/layouts';
import {
Activation,
Auth,
ForgotPassword,
Login,
ResetPassword,
NotFound,
} from '@gits-id/pages';
import {
List,
ListItem,
Expand Down Expand Up @@ -175,15 +162,6 @@ export {
VToast,
VSpinner,
VStats,
AuthLayout,
BaseLayout,
DefaultLayout,
Activation,
Auth,
ForgotPassword,
Login,
ResetPassword,
NotFound,
VCollapse,
VCollapsible,
VCollapsibleGroup,
Expand All @@ -204,8 +182,6 @@ export {
};

export * from '@gits-id/utils';
export * from '@gits-id/pages';
export * from '@gits-id/services';
export * from '@gits-id/toast';
export * from '@gits-id/app-bar/src/types';
export * from '@gits-id/badge/src/types';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Meta, Description} from '@storybook/addon-docs';
import Changelog from '../CHANGELOG.md';
import Changelog from '../../CHANGELOG.md';

<Meta title="Components/Modal/Changelog" />

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Meta, Description} from '@storybook/addon-docs';
import Readme from '../README.md';
import Readme from '../../README.md';

<Meta title="Components/Modal/Readme" />

Expand Down
27 changes: 12 additions & 15 deletions packages/ui/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@ export default defineConfig({
// make sure to externalize deps that shouldn't be bundled
// into your library
external: [
'vue',
'@heroicons/vue/outline',
'@heroicons/vue/solid',
'@headlessui/vue',
'@gits-id/alert',
'@gits-id/app-bar',
'@gits-id/autocomplete',
'@gits-id/avatar',
'@gits-id/badge',
'@gits-id/bottom-sheet',
'@gits-id/breadcrumbs',
'@gits-id/button',
'@gits-id/card',
Expand All @@ -34,38 +33,36 @@ export default defineConfig({
'@gits-id/dropdown',
'@gits-id/editor',
'@gits-id/forms',
'@gits-id/layouts',
'@gits-id/icon',
'@gits-id/list',
'@gits-id/logo',
'@gits-id/menu',
'@gits-id/menus',
'@gits-id/modal',
'@gits-id/multi-select',
'@gits-id/nav-drawer',
'@gits-id/navbar',
'@gits-id/pages',
'@gits-id/pagination',
'@gits-id/progress-bar',
'@gits-id/radio',
'@gits-id/rating',
'@gits-id/select',
'@gits-id/services',
'@gits-id/shimmer',
'@gits-id/spinner',
'@gits-id/stats',
'@gits-id/stepper',
'@gits-id/switch',
'@gits-id/table',
'@gits-id/tabs',
'@gits-id/tailwind-components',
'@gits-id/tailwind-config',
'@gits-id/textarea',
'@gits-id/theme',
'@gits-id/toast',
'@gits-id/tooltip',
'@gits-id/utils',
'@gits-id/list',
'@gits-id/icon',
'vee-validate',
'vue-router',
'pinia',
'vuex',
'iconify/vue',
'@headlessui/vue',
'@vue/test-utils',
'vue',
],
output: {
// Provide global variables to use in the UMD build
Expand Down
9 changes: 9 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -17846,6 +17846,15 @@ sass@^1.57.1:
immutable "^4.0.0"
source-map-js ">=0.6.2 <2.0.0"

sass@^1.58.3:
version "1.58.3"
resolved "https://registry.yarnpkg.com/sass/-/sass-1.58.3.tgz#2348cc052061ba4f00243a208b09c40e031f270d"
integrity sha512-Q7RaEtYf6BflYrQ+buPudKR26/lH+10EmO9bBqbmPh/KeLqv8bjpTNqxe71ocONqXq+jYiCbpPUmQMS+JJPk4A==
dependencies:
chokidar ">=3.0.0 <4.0.0"
immutable "^4.0.0"
source-map-js ">=0.6.2 <2.0.0"

scheduler@^0.19.1:
version "0.19.1"
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.19.1.tgz#4f3e2ed2c1a7d65681f4c854fa8c5a1ccb40f196"
Expand Down

0 comments on commit d5c00eb

Please sign in to comment.