Skip to content

Commit d6ebec3

Browse files
committed
add publish command
1 parent a26e25a commit d6ebec3

File tree

2 files changed

+23
-6
lines changed

2 files changed

+23
-6
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,13 @@
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)

package.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
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"

0 commit comments

Comments
 (0)