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-symmetra

v1.0.7

Published

> 基于ant Design、dva、roadhog搭建的脚手架,目的快速搭建类商家后台项目,其中包括了在商家端体系中不断的沉淀的util(用于处理复杂场景的tools和中间层)、eslint配置、roadhog配置、webpack.config、tsconfig。

Downloads

5

Readme

Symmetra

基于ant Design、dva、roadhog搭建的脚手架,目的快速搭建类商家后台项目,其中包括了在商家端体系中不断的沉淀的util(用于处理复杂场景的tools和中间层)、eslint配置、roadhog配置、webpack.config、tsconfig。

工具安装

mac获取权限请使用sudo

Yeoman、Grunt、Bower
npm install -g yo grunt-cli bower
Generator-Symmetra
npm install -g generator-symmetra

初始化一个项目

在gitlab中新建项目(比如trvale-seller-test),并在本地checkout出目录,进入到trvale-seller-test目录中,执行 yo symmetra

根据提示完成初始化任务:

图片描述

后台项目架子初始化完成,目录结构如下:

├── build/
├── grunt/
    └── exec.js     // grunt自动化任务配置文件
├── Gruntfile.js
└── src/
    ├── components/
        ├── common     // 公共组件 -> 后续将以tnpm方式模块化
        └── xxx        // 业务组件
    ├── models/        // 业务逻辑
    ├── routes/        // 路由以及入口文件
    ├── services/      // 服务api
    ├── tests/         // 测试
    ├── utils/         // 工具
    ├── index.html     // spa的html
    ├── index.jsx      // router文件
    ├── index.js       // dva入口文件
    └── index.less     // 对全局影响的less文件
├── .roadhogrc         // roadhog配置文件
├── webpack.config.js  // 用于补足roadhog的配置缺陷

商家后台项目本地开发及发布

在当前项目根目录下执行

1、 本地开发启动服务

grunt dev

2、 拉取最新分支基于当前分支的最大版本号,以及(majorminor)

grunt newbranch

3、 发布到预发支持nobuild

grunt prepub:<message>

4、 发布到正式支持nobuild

grunt publish:<message>

依赖的技术

社区开源项目: grunt yeoman bower Less