Skip to content

Commit a9ccc58

Browse files
authored
chore: change folder structure move everything into packages (#187)
1 parent 5eee2e4 commit a9ccc58

File tree

190 files changed

+19
-93
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

190 files changed

+19
-93
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,6 @@ jobs:
6969
- name: Build Website (GitHub demo site)
7070
run: pnpm build:demo
7171

72-
- name: Archive build artifacts
73-
uses: actions/upload-artifact@v4
74-
with:
75-
name: dist folders
76-
path: |
77-
lib/dist
78-
demo/dist
79-
retention-days: 5
80-
8172
- name: Install Playwright Browsers (chromium)
8273
run: pnpm exec playwright install chromium
8374

@@ -138,4 +129,4 @@ jobs:
138129
uses: peaceiris/actions-gh-pages@v3
139130
with:
140131
github_token: ${{ secrets.GITHUB_TOKEN }}
141-
publish_dir: ./demo/dist
132+
publish_dir: ./packages/demo/dist

.github/workflows/publish-npm-beta.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,6 @@ jobs:
5959
- name: Build Library
6060
run: pnpm build
6161

62-
- name: Archive build artifacts
63-
uses: actions/upload-artifact@v4
64-
with:
65-
name: dist folders
66-
path: |
67-
lib/dist
68-
demo/dist
69-
retention-days: 5
70-
7162
- name: Lerna Version 🏷️
7263
env:
7364
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish-npm-latest.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,6 @@ jobs:
6767
- name: Build Library
6868
run: pnpm build
6969

70-
- name: Archive build artifacts
71-
uses: actions/upload-artifact@v4
72-
with:
73-
name: dist folders
74-
path: |
75-
lib/dist
76-
demo/dist
77-
retention-days: 5
78-
7970
- name: Lerna Version (build query)
8071
shell: bash
8172
run: |
@@ -138,4 +129,4 @@ jobs:
138129
uses: peaceiris/actions-gh-pages@v3
139130
with:
140131
github_token: ${{ secrets.GITHUB_TOKEN }}
141-
publish_dir: ./demo/dist
132+
publish_dir: ./packages/demo/dist

.github/workflows/publish-npm-prompt.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,6 @@ jobs:
7171
- name: Build Library
7272
run: pnpm build
7373

74-
- name: Archive build artifacts
75-
uses: actions/upload-artifact@v4
76-
with:
77-
name: dist folders
78-
path: |
79-
lib/dist
80-
demo/dist
81-
retention-days: 5
82-
8374
- name: Lerna Version (latest) 🏷️
8475
if: ${{ contains(inputs.tag, 'latest') }}
8576
env:

README.md

Lines changed: 1 addition & 1 deletion

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222
},
2323
"changelogPreset": "conventional-changelog-conventionalcommits",
2424
"packages": [
25-
"*"
25+
"packages/multiple-select-vanilla"
2626
]
2727
}

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525
"clean": "rimraf --glob */dist */tsconfig.tsbuildinfo",
2626
"prebuild": "pnpm run clean && pnpm run prettier:write && pnpm run lint",
2727
"build": "pnpm -r --stream build",
28-
"build:demo": "pnpm -r --stream --filter=\"{demo/**}\" build",
29-
"build:lib": "pnpm -r --stream --filter=\"{lib/**}\" build",
28+
"build:demo": "pnpm -r --stream --filter=\"{packages/demo/**}\" build",
29+
"build:lib": "pnpm -r --stream --filter=\"{packages/multiple-select-vanilla/**}\" build",
3030
"predev": "pnpm run -r dev:init",
3131
"dev": "run-p dev:watch build:watch --npm-path pnpm",
3232
"dev:watch": "pnpm -r --parallel --stream dev",
3333
"build:watch": "lerna watch --no-bail --file-delimiter=\",\" --glob=\"src/**/*.{ts,scss}\" -- cross-env-shell pnpm run -r --filter $LERNA_PACKAGE_NAME build:watch --files=$LERNA_FILE_CHANGES",
34-
"dev:demo": "pnpm -r --stream --filter=\"{demo/**}\" dev",
35-
"dev:lib": "pnpm -r --stream --filter=\"{lib/**}\" dev",
34+
"dev:demo": "pnpm -r --stream --filter=\"{packages/demo/**}\" dev",
35+
"dev:lib": "pnpm -r --stream --filter=\"{packages/multiple-select-vanilla/**}\" dev",
3636
"prettier:check": "prettier --check **/*.{js,ts,yml,json}",
3737
"prettier:write": "prettier --write **/*.{js,ts,yml,json}",
3838
"ci:lint": "eslint . --ext .ts -c .eslintrc.json --no-eslintrc --ignore-path .gitignore",
@@ -44,7 +44,7 @@
4444
"new-publish": "lerna publish from-package",
4545
"preroll-new-release": "echo Please update getting-started lib version before pushing release. ⚠️",
4646
"roll-new-release": "pnpm build && pnpm new-version && pnpm new-publish",
47-
"serve:demo": "pnpm -r --stream --filter=\"{demo/**}\" dev",
47+
"serve:demo": "pnpm -r --stream --filter=\"{packages/demo/**}\" dev",
4848
"test:e2e": "playwright test --config playwright/playwright.config.ts",
4949
"test:e2e:debug": "playwright test --config playwright/playwright.config.ts --ui --debug",
5050
"test:e2e:ui": "playwright test --config playwright/playwright.config.ts --ui",
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)