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

re-creatapp

v1.1.9

Published

用于解决react的快速构建和路由解决,其他的插件需自行配置安装,暴露出webpack以及其他各方面的接口,方便更改

Downloads

107

Readme

安装

首先我们可以这样安装:

Using npm:

  npm install re-creatapp -g
  re-creatapp c projectName
  cd projectName
  npm install

之后可以使用npm run start运行就会看到 holle world 默认是8080端口

使用与建议

在一个项目中创建两个路口,建议是关联性强的项目, 如果两者并没有任何关联性,UI也不一样那么我们建议您重新再建立一个项目开发 目录介绍: -public 网页入口文件HTML -src 页面资源入口 包含逻辑层和项目所需的其他资源 -app 项目逻辑层 -components 所有项目的公共模块文件夹 -<分项目名称> 项目中的某个分项目 -components 分项目组件模块 -serve 分项目的服务层公用的数据交互模块等 -views 分项目的视图层 index.js 入口文件 -images 图片资源文件夹 -styles css/scss/sass样式资源文件夹

在MAC与Linux上的问题与解决

当在linux或mac系统安装插件后无法使用命令的

> $ npm install re-creatapp -g
> $ re-creatapp
env: node\r: No such file or directory

你需要解决一下这个小问题,这是因为windows的编码问题

> brew install dos2unix
> find /usr/local/lib/node_modules/re-creatapp -name "*.js" | xargs sudo dos2unix
> re-creatapp

大部分的都在 /usr/local/lib/node_modules/re-creatapp 这个目录下 如果自己的不一样请自行替换

开始使用吧!