[go: up one dir, main page]

Skip to content

Commit

Permalink
chore: cleanup (#1456)
Browse files Browse the repository at this point in the history
* chore: cleanup scripts

* chore: also update contributing

* chore: update lock file
  • Loading branch information
Saul-Mirone authored Aug 3, 2024
1 parent ae18edb commit db97828
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 328 deletions.
12 changes: 2 additions & 10 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,19 @@
After cloning Milkdown, run `pnpm install` to install dependencies.

1. Run `pnpm build`.
2. Run `pnpm start` in one terminal to see test website.

After that,
you may want to play with any packages,
You can watch them through `pnpm --filter=@milkdown/xxx start`.

For example, `pnpm --filter=@milkdown/core start`.
2. Run `pnpm start` in one terminal to see storybook.

# Commands

You can run several commands:

- `pnpm watch` watches all packages.
- `pnpm clear` remove all build dist.
- `pnpm test:unit` runs unit test.
- `pnpm test:e2e` runs e2e test.
- `pnpm test:e2e:debug` runs e2e test with UI.
- `pnpm test:lint` checks the code style.
- `pnpm test:tsc` runs typescript type checks.
- `pnpm test` runs all possible test.
- `pnpm build` runs build for all packages with cache powered by nx.
- `pnpm build:packs` runs build for all packages.
- `pnpm commit` runs commit with git hooks.

# Pre Check
Expand Down
11 changes: 2 additions & 9 deletions e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,8 @@
"start": "vite",
"build": "vite build",
"serve": "vite preview",
"setup": "pnpm serve --port $CYPRESS_SERVER_PORT --host",
"setup:verbose": "pnpm start --port $CYPRESS_SERVER_PORT --host",
"test": "nx cypress:e2e",
"test:verbose": "nx open-cypress",
"start:test": "cross-env CYPRESS_SERVER_PORT=8000 start-test setup tcp:8000 test",
"start:test:verbose": "cross-env CYPRESS_SERVER_PORT=8000 start-test setup:verbose tcp:8000 test:verbose"
"test:verbose": "nx open-cypress"
},
"dependencies": {
"@codemirror/commands": "^6.3.3",
Expand Down Expand Up @@ -47,10 +43,7 @@
"tslib": "^2.5.0"
},
"devDependencies": {
"cypress": "^13.0.0",
"serve": "^14.2.1",
"start-server-and-test": "^2.0.0",
"wait-on": "^7.2.0"
"cypress": "^13.0.0"
},
"nx": {
"targets": {
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,8 @@
"test:lint": "eslint .",
"test:e2e": "nx e2e @milkdown/e2e",
"test:e2e:build": "nx build @milkdown/e2e",
"test:e2e:verbose": "nx open-cypress @milkdown/e2e",
"test:e2e:debug": "nx open-cypress @milkdown/e2e",
"format": "lint-staged",
"watch": "pnpm --filter=./packages --parallel run start",
"start": "pnpm --filter=@milkdown/storybook run start",
"build": "nx run-many --target=build --all --parallel",
"build:affected": "nx affected --target=build",
Expand Down
Loading

0 comments on commit db97828

Please sign in to comment.