File tree Expand file tree Collapse file tree 2 files changed +23
-6
lines changed Expand file tree Collapse file tree 2 files changed +23
-6
lines changed Original file line number Diff line number Diff line change 11# such-mock-browser
2- Extend suchjs.mock ability for browser.
2+
3+ Extend the ability for ` suchjs ` with ` Such.mock ` in browser.
4+
5+ ## How to use
6+
7+ See the document: [ Suchjs mock] ( https://suchjs.github.io/vp-suchjs/en/mock.html )
8+
9+ ## Dependencies
10+
11+ Interceptor: [ https://github.com/mswjs/interceptors ] ( https://github.com/mswjs/interceptors )
12+
13+ Pathname match: [ https://github.com/mswjs/node-match-path ] ( https://github.com/mswjs/node-match-path )
Original file line number Diff line number Diff line change 11{
22 "name" : " such-mock-browser" ,
33 "version" : " 0.0.1" ,
4- "description" : " Extend the ability 'Such.mock' for suchjs in browser." ,
5- "main" : " index.js" ,
6- "repository" :
" [email protected] :suchjs/such-mock-browser.git" ,
4+ "description" : " Extend suchjs with 'Such.mock' in browser." ,
5+ "main" : " ./lib/index.js" ,
6+ "typings" : " ./lib/index.d.ts" ,
7+ "repository" : " https://github.com/suchjs/such-mock-browser" ,
78 "author" :
" jxz_211 <[email protected] >" ,
89 "license" : " MIT" ,
910 "private" : false ,
1011 "scripts" : {
1112 "dev" : " webpack --progress --watch" ,
12- "build" : " BROWSER=true webpack --progress --mode=\" production\" " ,
13- "serve" : " webpack serve"
13+ "lint" : " eslint 'src/**/*.{ts,js}'" ,
14+ "clear" : " rm -rf ./lib/*" ,
15+ "build" : " npm run clear && npm run lint && tsc" ,
16+ "build:web" : " BROWSER=true webpack --progress --mode=\" production\" " ,
17+ "serve" : " webpack serve" ,
18+ "prepublish" : " npm run build" ,
19+ "postpublish" : " npm run clear"
1420 },
1521 "peerDependencies" : {
1622 "suchjs" : " >= 1.1.2"
You can’t perform that action at this time.
0 commit comments