Skip to content

Commit

Permalink
chore: update pnpm docs/ci
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Oct 8, 2021
1 parent 756e641 commit 94c3609
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
7 changes: 7 additions & 0 deletions .netlify.toml
@@ -0,0 +1,7 @@
[build.environment]
NODE_VERSION = "16"
NPM_FLAGS = "--version" # prevent Netlify npm install

[build]
publish = "docs/.vitepress/dist"
command = "npx pnpm i --store=node_modules/.pnpm-store && npm run demo-build"
14 changes: 7 additions & 7 deletions README.md
Expand Up @@ -4,11 +4,11 @@ WIP VitePress theme for the new version of Vue documentation. **Currently under

## Development Setup

This repo can be developed on its own since it is a self-contained VitePress theme. A demo app is available in `/demo` and can be run with `yarn dev`. Just install NPM packages and boot the server with `yarn dev`.
This repo can be developed on its own since it is a self-contained VitePress theme. Make sure to use [pnpm](https://pnpm.io/) as the package manager when installing deps. A demo app is available in `/demo` and can be run with `npm run dev`:

```bash
$ yarn install
$ yarn dev
$ pnpm install
$ npm run dev
```

To work on this theme in the context of the `vuejs.org` website, see [vuejs/docs#next](https://github.com/vuejs/docs/tree/next) for instructions.
Expand All @@ -19,17 +19,17 @@ Here is the list of available scripts that can be used during the development.

```bash
# Boot local dev server.
$ yarn dev
$ npm run dev

# Build demo, then serve locally. This is for testing
# production build in the local environment.
$ yarn serve
$ npm run serve

# Run lint via Prettier.
$ yarn lint
$ npm run lint

# Run type check via tsc.
$ yarn type
$ npm run type
```

## License
Expand Down

0 comments on commit 94c3609

Please sign in to comment.