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

vue-vuex-starter-kit

v1.0.3

Published

vue, vuex, vue-router

Downloads

19

Readme

Vue Vuex Starter Kit

整合Vue + Vuex + Vue-Router。内置webpack配置,基于Koajs搭建开发服务框架,内置基本挡板中间件。 可以方便快速搭建自己的vuex应用程序。

开始

如果你的开发环境符合版本要求,你可以用下面的步骤安装和启动项目。

$ git clone https://github.com/sokis/vue-vuex-starter-kit.git 
$ cd vue-vuex-starter-kit
$ npm install                   # 安装依赖
$ npm start                     # 编译及启动

如果一切正常,你将看到如下界面:

通常在开发中,主要使用npm start 来启动项目. 但是,这里也有提供你使用的其他Npm 脚本

|npm run <script>|描述| |------------------|-----------| |start|启动App 本地开发服务,该环境下HMR也将运行。 localhost:3000.| |compile|编译App到dist目录 (默认情况下在~/dist).| |dev|同 npm start| |dev:mock|同npm run dev,但是会加载mocking中间件| |dev:no-debug|同npm run dev,但是会禁用控制台输出| |test|运行Karma单元测试,并生成coverage代码覆盖测试| |test:dev|同npm run test,但会开启代码监控。并且不会生成代码覆盖测试| |deploy|运行测试,并且生成编译后的代码| |deploy:dev|同 deploy,但是环境变量 NODE_ENV 为 "development".| |deploy:prod|同 deploy,但是环境变量 NODE_ENV 为 "production".| |lint|Lint all .js files.| |lint:fix|Lint and fix all .js files. Read more on this.|

目录结构

.
├── config                   # vuex-cli-webpack 配置文件
├── src                      # 源码
└── tests                    # 单元测试

src 目录

src
├── components              # 公用组件
├── containers
├── layouts                 # 此处定义页面骨架组件
│   └── CoreLayout
├── routes                  # 路由及子路由配置
│       └── routes          
├── static
├── styles
└── vuex
    ├── constants
    ├── plugins

routes 目录下面加入 modules 目录用于存放vuex 相关模块文件

src/routes
├── Counter
│   ├── components
│   └── modules
├── Home
│   ├── assets
│   └── components
└── User
    ├── components
    └── routes
        └── Login
            ├── components
            └── modules

备注

该工程,可以用 vuex-cli 快速创建。

感谢

"Vuex CLI Webpack" "React Redux Starter Kit"