Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: simplify scripts #53

Merged
merged 5 commits into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ jobs:
node-version: 18
cache: pnpm
- run: pnpm i
- run: pnpm dev-setup
- run: pnpm lint-check
- run: pnpm tsc
- run: pnpm build
- run: pnpm tsc
- run: pnpm -r generate-tw-test
- run: pnpm -C packages/app-solid build
20 changes: 2 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,11 @@
# unocss-preset-antd

(incomplete and untruthful) port of [ant-design](https://github.com/ant-design/ant-design) for [unocss](https://github.com/unocss/unocss)
Simplified [unocss](https://github.com/unocss/unocss) port of [ant-design](https://github.com/ant-design/ant-design)

```sh
# development
pnpm i
pnpm dev-setup
pnpm dev

# publish demo app
pnpm build
pnpm release-production

# publish unocss-preset-antd
pnpm build-lib
pnpm release-lib
pnpm -C packages/app dev
```

![image](https://user-images.githubusercontent.com/4232207/213862118-f0fc1b3c-7cff-417f-8ad2-a97d1dcae202.png)

## examples

initially experimented in the following projects:

- https://github.com/hi-ogawa/web-audio-worklet-rust
- https://github.com/hi-ogawa/youtube-dl-web-v2
12 changes: 2 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
{
"scripts": {
"dev-setup": "run-s build-lib",
"dev": "run-p dev:*",
"dev:app": "pnpm -C packages/app dev",
"dev:lib": "pnpm -C packages/lib dev",
"dev:tsc": "pnpm tsc --watch --preserveWatchOutput",
"build": "pnpm -C packages/app build",
"build-lib": "pnpm -C packages/lib build",
"release": "pnpm -C packages/app release",
"release-production": "pnpm -C packages/app release-production",
"release-lib": "pnpm -C packages/lib release",
"build": "pnpm -r build",
"test": "pnpm -r test",
"tsc": "tsc -b",
"dev:tsc": "tsc -b --watch --preserveWatchOutput",
"lint": "run-s lint:*",
"lint-check": "run-s lint-check:*",
"lint:isort": "pnpm lint-check:isort --fix",
Expand Down
6 changes: 2 additions & 4 deletions packages/app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

```sh
pnpm generate-tw

# create vercel project
vercel projects add unocss-preset-antd-hiro18181
vercel link -p unocss-preset-antd-hiro18181
pnpm build
pnpm release-production
```
9 changes: 9 additions & 0 deletions packages/app/misc/vercel/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# misc/vercel

scripts for vercel deployment

```sh
# initial setup
vercel projects add unocss-preset-antd-hiro18181
vercel link -p unocss-preset-antd-hiro18181
```