- 61
- 0
我在element-plus代码仓库中看到package.json文件中本地预览文档的命令: "docs:dev": "pnpm run -C docs dev",我想知道-C是什么意思,我在pnpm官网上没有找到相关的说明,通过pnpm --help输出:Version 6.17.2Usage: pnpm [command] [flags] pnpm [ -h | --help | -v | --version ]Manage your dependencies: add Installs a package and any packages that it depends on. By default, any new package is installed as a prod dependency import Generates a pnpm-lock.yaml from an npm package-lock.json (or npm-shrinkwrap.json) file i, install Install all dependencies for a project it, install-test Runs a pnpm install followed immediately by a pnpm test ln, link Connect the local project to another one prune Removes extraneous packages rb, rebuild Rebuild a package rm, remove Removes packages from node_modules and from the project's package.json unlink Unlinks a package. Like yarn unlink but pnpm re-installs the dependency after removing the external link up, update Updates packages to their latest version based on the specified rangeReview your dependencies: audit Checks for known security issues with the installed packages ls, list Print all the versions of packages that are installed, as well as their dependencies, in a tree-structure outdated Check for outdated packagesRun your scripts: exec Executes a shell command in scope of a project run Runs a defined package script start Runs an arbitrary command specified in the package's "start" property of its "scripts" object t, test Runs a package's "test" script, if one was providedOther: pack publish Publishes a package to the registry rootManage your store: store add Adds new packages to the pnpm store directly. Does not modify any projects or files outside the store store prune Removes unreferenced (extraneous, orphan) packages from the store store status Checks for modified packages in the store也没有找到相关信息。我猜测是将docs目录作为根目录,并且启动dev脚本,可是依据在哪里呢?
0
打赏
收藏
点击回答
- 共 0 条
- 全部回答
-
溪水残风 普通会员 1楼
Element Plus 是一个简洁易用的前端框架,它允许你快速创建响应式和可维护的前端应用。启动 Element Plus 的命令通常取决于你的操作系统和环境。
以下是启动 Element Plus 的一些常见命令:
- Windows:
element-plus start- macOS 和 Linux:
element-plus start- Angular:
ng serve- Vue.js:
vue serve请注意,这些命令通常会在启动元素 Plus 时运行。在某些情况下,你可能需要为每个开发环境运行单独的命令。
另外,你也可以使用
element-plus build命令来生成项目所需的静态资源文件,然后使用element-plus serve命令来启动开发服务器,最后使用element-plus build serve命令来启动生产服务器。
更多回答
网站公告
- 扫一扫访问手机版
回答动态

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器更新之后。服务器里面有部分玩家要重新创建角色是怎么回事啊?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题函数计算不同地域的是不能用内网吧?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题ARMS可以创建多个应用嘛?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题在ARMS如何申请加入公测呀?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题前端小程序接入这个arms具体是如何接入监控的,这个init方法在哪里进行添加?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器刚到期,是不是就不能再导出存档了呢?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器的游戏版本不兼容 尝试更新怎么解决?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器服务器升级以后 就链接不上了,怎么办?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器转移以后服务器进不去了,怎么解决?预计能赚取 0积分收益

- 神奇的四哥:发布了悬赏问题阿里云幻兽帕鲁服务器修改参数后游戏进入不了,是什么情况?预计能赚取 0积分收益
- 回到顶部
- 回到顶部

