Skip to content

Commit

Permalink
refactor(package.json): add docs.dev & docs.preview
Browse files Browse the repository at this point in the history
Add pnpm docs.dev & pnpm docs.preview commands to improve the DX for contributors.
  • Loading branch information
maiieul authored and wmertens committed Nov 3, 2023
1 parent 0ff98d3 commit a1f978b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ pnpm install
2. Run the docs site:

```shell
cd packages/docs && pnpm start
pnpm docs.dev
```

### To open the test apps for debugging run:
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@
"cli.validate": "tsm scripts/validate-cli.ts",
"commit": "git-cz",
"deps": "pnpm upgrade -i -r --latest",
"docs.dev": "cd packages/docs && pnpm dev",
"docs.preview": "cd packages/docs && pnpm preview",
"docs.sync": "tsm scripts/docs_sync/index.ts && pnpm fmt",
"eslint.update": "tsm scripts/eslint-docs.ts",
"fmt": "pnpm prettier.fix && pnpm syncpack format",
Expand Down
2 changes: 1 addition & 1 deletion scripts/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* This is the root build scripts module (keep in commonjs). It's only a .js file but will handling
* This is the root build scripts module (keep in commonjs). It's only a .js file but will handle
* registering typescript files with esbuild-register to allow Node.js to build .ts files
* on-demand.
*/
Expand Down

0 comments on commit a1f978b

Please sign in to comment.