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

@edwardxyt/gws-cli

v3.6.1

Published

这是一个web脚手架工具,用于生成基于webpack5,生成typescript+react17+mobx5+reactRouter6的应用。初衷是要解决多入口,多环境。单独编译单独运行的脚手架。做到小而美。拒绝锦上添花。

Downloads

144

Readme

WX20190411-180931

@edwardxyt/gws-cli

npm npm bundle size NPM GitHub User's stars npm (scoped)

(Generator website 发电的小风车。简称 gws-cli,)这是一个web模版脚手架工具。用于生成基于 webpack5,生成 typescript+react17+mobx5+reactRouter6 的应用。初衷是要解决多入口,多环境。单独编译单独运行的脚手架。做到小而美。拒绝锦上添花。

🍙 插件化的企业级前端应用框架。

Please consider following this project's author, edwardxyt, and consider starring the project to show your ❤️ and support.


特性

  • 🎉 可扩展,gws-cli, 主要提供选中模版,生成不同类型的脚手架。
  • 📦 开箱即用,每个脚手架都使用了webpack运行开发和生产。
  • 🚀 大量自研,目前都是作者孤独奋战,如果有缺陷请您邮件我[email protected]
  • 🌴 技术栈,目前常用模版两个2022(alpha)workspaces-2022两个react全家桶。
  • 🚄 面向未来,如果您需要react mobx typescript router less eslint stylelint prettier husky conventional-changelog。等可以考虑开箱即用。
    • 🐠 ****,

快速上手

通过cli创建项目,

# 全局安装
$ npm -g install @edwardxyt/gws-cli

# 生成项目目录、选择模版、运行消息
$ gws-cli

模版选择

$ gws-cli
[gws-cli] version: 3.5.0
? 项目名称: website2022
? 描述:
? 模式选择: (Use arrow keys)
❯ 2022(Alpha)  // 多入口多环境react+antd+mobx的脚手架
workspaces-2022  // monorepo 组件库
Base-2020(Alpha)  // 过时
Base-2019  // 过时
Simple-2018  // 过时

2022(alpha) 模版

[gws-cli] [未安装依赖请手动执行]
[gws-cli] [进入项目] cd dir
[gws-cli] [安装依赖] npm run install
[gws-cli] [查看项目树] npm run tree
[INFO] --------------------------------------------------------------------------------
[gws-cli] [运行入口activity/christmas、 启动mock环境] npm run start --ENTRY=activity/christmas --ENV=mock
[gws-cli] [运行入口activity/christmas、启动mock环境] npm run watch --ENTRY=activity/christmas --ENV=mock
[INFO] --------------------------------------------------------------------------------
[gws-cli [编译activity/christmas、启动test环境] npm run build --ENTRY=activity/christmas --ENV=production
[INFO] --------------------------------------------------------------------------------

workspaces-2022 模版

[gws-cli] [未安装依赖请手动执行]
[gws-cli] [进入项目] cd dir
[gws-cli] [安装依赖] npm run install
[INFO] --------------------------------------------------------------------------------
[gws-cli-lerna] [组件库案例入口example] npm run start --ENTRY=example
[INFO] --------------------------------------------------------------------------------
[gws-cli-lerna] [编译子组件modulea] npm run build --ENTRY=modulea
[INFO] --------------------------------------------------------------------------------

链接

贡献

反馈

LICENSE

MIT