npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

crootfast

v0.2.3

Published

大前端工程化命令行脚手架

Downloads

70

Readme

操作命令

# 在当前的目录中创建一个项目
$ croot create <projectname>

# 安装整个工程的项目依赖文件
$ croot install

# 询问式 - 安装某个依赖包到指定项目中
$ croot install [package] [...flags]

# 询问式 - 启动一个指定的项目
$ croot start

# 询问式 - 构建一个指定的项目
$ croot build

# 构建一个指定的项目
$ croot build [frame] [appname] [env]

croot 也可以使用快捷键 cr

shelljs 的一些常用 API:

cd([dir]): 更改当前工作目录到指定的目录。如果没有给出参数,那么它将会返回当前目录。

pwd(): 返回当前工作目录。

ls([options,] path [, path ...]): 返回指定路径的文件和目录。

find(path [, path ...]): 返回匹配指定路径的所有文件。

cp([options,] source [, source ...], dest): 复制文件。

rm([options,] file [, file ...]): 删除文件。

mv(source [, source ...], dest): 移动文件。

mkdir([options,] dir [, dir ...]): 创建目录。

test(option, path): 检查文件的存在性和类型。

cat([file, file ...]): 返回文件的内容。

grep([options,] regex_filter, file [, file ...]): 在文件中搜索匹配的行。

which(command): 返回系统中给定命令的绝对路径。

echo([options,] string [, string ...]): 在控制台打印字符串。

exec(command [, options] [, callback]): 执行一个 shell 命令。

sed([options,] search_regex, replacement, file [, file ...]): 在文件中执行一个基本的 sed 替换操作。

sort([options,] file [, file ...]): 对输入进行排序。

tail([{'-n': <num>},] file [, file ...]): 显示文件的最后几行。
Vue CLI是一个基于Vue.js进行快速开发的全方位环境。以下是Vue CLI的一些基本命令:

vue create: 用于创建一个新的Vue.js项目
vue serve: 在开发环境中用于启动一个热加载的服务器
vue build: 在生产环境中用于编译和压缩项目
vue ui: 通过图形化界面管理你的项目
vue inspect: 用于查看webpack配置
vue add: 添加一个插件到你的项目中
vue invoke: 对已经安装的插件进行调用
vue upgrade: 升级你的项目依赖
这些都是一些基本的命令,但是Vue CLI还有更多高级的命令和配置。

如果你正在创建你自己的CLI工具,那么以下是一些可能的功能:

创建项目: 提供一个命令用于初始化一个新项目,这可能会包括创建目录结构,初始化版本控制,以及安装依赖。

运行项目: 提供一个命令用于运行项目,这可能包括启动一个服务器,或者编译和运行代码。

构建项目: 提供一个命令用于构建项目,这可能会包括编译代码,打包资源,以及优化代码。

测试项目: 提供一个命令用于运行项目的测试,这可能会包括单元测试,集成测试,或者端到端测试。

部署项目: 提供一个命令用于部署项目,这可能会包括上传代码到服务器,或者将项目发布到包管理器。

插件系统: 允许开发者创建和安装插件来扩展CLI工具的功能。

配置和定制: 允许用户配置和定制CLI工具的行为。

以上都只是建议,实际的功能应该根据你的项目的需求来定。
pnpm 的命令非常丰富,以下是一些主要命令的概述:

pnpm install (pnpm i): 安装项目的依赖项。

pnpm install <package> (pnpm i <package>): 安装一个新的包。

pnpm install <package>@<version> (pnpm i <package>@<version>): 安装特定版本的一个包。

pnpm uninstall <package>: 卸载一个包。

pnpm update (pnpm up): 更新项目的所有依赖项。

pnpm update <package> (pnpm up <package>): 更新特定的一个包。

pnpm list (pnpm ls): 列出项目的依赖项。

pnpm run <script>: 运行定义在 package.json 中的一个脚本。

pnpm add: 添加一个新的依赖。

pnpm publish: 将一个包发布到npm库。

pnpm link: 创建一个指向已安装包的符号链接。

pnpm prune: 删除无用的包。

pnpm root: 打印所有包的真实位置。

pnpm store: 进行包仓库的操作,如:查看状态、添加、删除等。

pnpm test: 运行测试脚本。

pnpm outdated: 检查过时的包。