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

generator-neoui-react

v1.0.1

Published

yeoman generator for react component

Downloads

2

Readme

generator-neoui-react

neoui-react 标准react组件生成器

功能特性

  • 支持 eslint

使用方式

npm install yo generator-neoui-react -g
mkdir test
cd test
yo neoui-react --port=8000 --author=GuoYongfeng --nr_version=1.0.0

注意

目前npm上版本存在bug,所以需要增加一步操作,如下

git clone https://github.com/iuap-design/generator-neoui-react.git

cd generator-neoui-react

npm link

配置说明

--port=8080 设置本地测试查看服务端口 --nr_version=1.0.0 设置版本号. --author=GuoYongfeng 设置作者 --pkgName=xxx 设置包名 --repoUrl=xxx 设置代码存储仓库

目录结构

-demo
 -TestDemo.js
 -TestDemo.less
 -index.js
-src
 -Test.js
 -index.js
-.eslintignore
-.eslintrc
-.npmignore
-gulpfile.js
-HISTORY.md
-index.html
-package.json
-README.md
-webpack.dev.js

源码目录说明

  • 在 src 目录中写源程序代码,在 demo 目录下写使用用例,在 tests 目录下写 测试用例,build目录产出打包组件,代码规范参考 airbnb.
  • 根目录 中的 html 不可修改,通过 js 中的 jsx 渲染页面,通过 require css 引入 css
  • 开发中用到其他公共库,通过 npm install --save 以及 npm install --save-dev 来安装

开发调试

  • 在项目根目录执行 npm install 安装必要模块
  • 在项目根目录执行 npm run dev 查看demo用例
  • 在项目根目录执行 gulp 产出build目录代码

浏览器支持版本

  • ie8, ie8+, chrome, firefox 最新版
  • 可适当渐进降级,如 css 动画可以不支持 ie8

支持 HISTORY.md

  • 通过在根目录运行 npm run history 生成 HISTORY.md
  • 需要建立必要的 milestone,issue,label,参见: https://github.com/iuap-design/generator-neoui-react
  • milestone 标题为语义化版本号,issue 属于某个 milestone,并且具备 label
  • label 为枚举,包括
  • new 新增的属性、功能、方法、特性等等
  • fixed 修复 bug 和影响使用的性能问题等
  • improved 接口增强、健壮性和性能提升、代码优化、依赖模块升级等。
  • changed 涉及到兼容性变化的改动。

发布

  • 在根目录运行 npm publish