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

web-raising-tool-cli

v1.0.6

Published

Downloads

87

Readme

WRTC(web-raising-tool-cli)

什么是WRTC

WRTC是一款前端工程化工具,目的是为了简化搭建前端项目琐碎配置问题。目前包含eslint配置和依赖安装、babel配置和依赖安装;1.1版本会推出webpack配置和依赖安装等功能。

开始使用

依赖:

nodejs -v 14.x
npm -v 6.x

安装npm包:

npm i --save-dev web-raising-tool-cli

使用简介:

// 进入/创建工程目录

mkdir demo
cd demo/
npm init
	......(package.json选项)
npm i --save-dev web-raising-tool-cli
wrtc eslint // 初始化eslint配置及依赖安装
wrtc babel // 初始化babel配置及依赖安装

执行效果(babel为例):

 > wrtc babel
  _              _   _            __        __  ____    _____    ____   _
 | |__     ___  | | | |   ___     \ \      / / |  _ \  |_   _|  / ___| | |
 | '_ \   / _ \ | | | |  / _ \     \ \ /\ / /  | |_) |   | |   | |     | |
 | | | | |  __/ | | | | | (_) |     \ V  V /   |  _ <    | |   | |___  |_|
 |_| |_|  \___| |_| |_|  \___/       \_/\_/    |_| \_\   |_|    \____| (_)
 
? 请选择babel配置文件的名称 (Use arrow keys)
❯ babel.config.js
  babel.config.json
  babel.config.cjs
  babel.config.mjs
  ------ 分隔符 ------
  
// 第一步选中文件名后  
? 是否根据选择创建文件? (Y/n)  
  
// 第二步选 yes
全部文件创建成功! ~~~~~~~~~~~success~~~~~~~~~~~
stdout: + @babel/[email protected]
+ @babel/[email protected]
+ @babel/[email protected]
added 6 packages from 1 contributor, removed 1 package, updated 7 packages and audited 1576 packages in 10.907s

133 packages are looking for funding
  run `npm fund` for details

found 22 vulnerabilities (2 low, 16 moderate, 4 high)
  run `npm audit fix` to fix them, or `npm audit` for details
 ~~~~~~~~~~~success~~~~~~~~~~~
  

获取帮助

wrtc

Usage: index [options] [command]

Options:
  -v, --version   output the version number
  -h, --help      display help for command

Commands:
  eslint     初始化安装eslint!!!
  babel      初始化安装babel!!!
  help [command]  display help for command