Giter VIP home page Giter VIP logo

use-vue-service's Introduction

use-vue-service

Build CI Coverage Status

npm install @kaokei/use-vue-service @kaokei/di reflect-metadata

简介

灵感来自 angular 中的服务的概念。在 angular 中不需要全局唯一的数据源 store。而是通过声明服务,以及向组件中注入服务来达到数据管理以及数据共享的。

本库也是实现了类似的效果,可以通过依赖注入实现面向服务编程、实现领域驱动开发。从而可以代替 vuex。

本库通过类来声明服务,对 typescript 支持非常棒。

常用命令

  • 运行 demo 网站 npm run dev
  • 运行单元测试 npm run unit
  • 发布新版本 npm run release patch
  • 发布 npm 包 npm publish

项目技术特点

  • 自带单元测试
  • 自带示例 demo 网站
  • 使用 typescript
  • 使用 editconfig 配置通用编辑器规范
  • 使用 eslint 配合编辑器作语法检查
  • 使用 eslint 配合 prettier 来格式化代码
  • 使用 eslint 配合 husky 以及 lint-stage 自动格式化提交的代码,保证 git 仓库代码的规范性
  • 使用 rollup 打包源码

MIT LICENSE

use-vue-service's People

Contributors

kaokei avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

use-vue-service's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.