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

reactor-templates-cli

v1.2.0

Published

A scaffold integrated with react redux redux-dva react-router

Downloads

4

Readme

Reactor


简介

Reactor is a CLI for React.js projects

Reactor是一个款基于React的脚手架

开始使用

  1. 下载脚手架
npm i reactor-templates-cli -g
  1. 使用脚手架
reactor init

根据说明生成模板文件

现有模板文件

reactor-saga 一款功能齐全的模板

  1. 优化了webpack配置,兼容es6 7以及自动给css添加兼容语法,内置可以使用sass预编译器。
  2. 配置了hot编译,可以无刷新的显示修改的页面。
  3. 集成了react、react-router、redux、redux-saga、immutable等插件。
  4. 内置了 路由懒加载、异步组件。‘
  5. 自带简单demo,可供用户参考使用。
  6. 打包过程可见,能动态分析文件压缩效率,以及压缩过程中可能出现的问题。

// next todo

reactor-dva 基于redux-dva的reactor模板

  1. 优化了webpack配置,兼容es6 7以及自动给css添加兼容语法,内置可以使用sass预编译器。
  2. 配置了hot编译,可以无刷新的显示修改的页面。
  3. 集成了react、react-router、redux、dva、dva-loading、immutable等插件。
  4. 内置了 路由懒加载、异步组件。‘
  5. 自带简单demo,可供用户参考使用。
  6. 打包过程可见,能动态分析文件压缩效率,以及压缩过程中可能出现的问题。

添加模板

  1. in package.json
{
	"templates": [
		'reactor-saga',
		'reactor-dva',
		'other-template'
	]
}

2 in zips file

添加新的模板zip包即可,注:包名与package.json中的模板名需一致