tony-mockjs
TypeScript icon, indicating that this package has built-in type declarations

1.1.3 • Public • Published

tony-mockjs

为啥要fork

基于 http://mockjs.com, 他已经不维护了

我们是谁

我们是广联达的一个前端团队,自研了一套内部的 Tony-Design 大屏可视化组件,其中用到了mock,但官方不维护了,于是我们做了一部分维护和修复的工作,回馈给开源社区。

我做了什么

  1. fix: responseType 初始化失败,官方一直没修复,有很多相关 issue
  2. 引入了 @types/mockjs

使用

npm i tony-mockjs

编译

  • 安装 glup
  • 运行 glup, 实时生成 dist目录内容

Mock.js

Build Status

Mock.js is a simulation data generator to help the front-end to develop and prototype separate from the back-end progress and reduce some monotony particularly while writing automated tests.

The official site: http://mockjs.com

Features

  • Generate simulated data according to the data template
  • Provide request/response mocking for ajax requests
  • Generate simulated data according to HTML-based templates

This library is loosely inspired by Elijah Manor's post Mocking Introduction, mennovanslooten/mockJSON, appendto/jquery-mockjax and victorquinn/chancejs.

Questions?

If you have any questions, please feel free to ask through New Issue.

Reporting an Issue

Make sure the problem you're addressing is reproducible. Use http://jsbin.com/ or http://jsfiddle.net/ to provide a test page. Indicate what browsers the issue can be reproduced in. What version of Mock.js is the issue reproducible in. Is it reproducible after updating to the latest version?

License

Mock.js is available under the terms of the MIT License.

Readme

Keywords

Package Sidebar

Install

npm i tony-mockjs

Weekly Downloads

4

Version

1.1.3

License

none

Unpacked Size

1.95 MB

Total Files

60

Last publish

Collaborators

  • ygweric