-
Notifications
You must be signed in to change notification settings - Fork 8
/
package.json
120 lines (120 loc) · 3.84 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
"name": "tua-storage",
"version": "1.8.2",
"description": "🏗 A common storage for web(localStorage), for RN(AsyncStorage), for mini-program(wx) or just memory cache(Node.js)",
"main": "dist/tua-storage.cjs.js",
"module": "dist/tua-storage.esm.js",
"unpkg": "dist/tua-storage.umd.js",
"jsdelivr": "dist/tua-storage.umd.js",
"typings": "src/index.d.ts",
"files": [
"src/",
"dist/"
],
"scripts": {
"cov": "open coverage/lcov-report/index.html",
"docs": "vuepress dev docs",
"docs:build": "vuepress build docs",
"lint": "eslint --fix . docs/.vuepress/ --ignore-path .gitignore",
"test": "cross-env NODE_ENV=test jest",
"test:tdd": "cross-env NODE_ENV=test jest --watch",
"prebuild": "rimraf dist/* & npm run test",
"build": "cross-env NODE_ENV=production rollup -c",
"deploy": "npm run docs:build && gh-pages -m \"[ci skip]\" -d docs/.vuepress/dist",
"next:pm": "npm --no-git-tag-version version preminor",
"next:pr": "npm --no-git-tag-version version prerelease",
"pub": "npm run build && npm publish",
"pub:n": "npm run build && npm publish --tag next"
},
"husky": {
"hooks": {
"pre-push": "npm test",
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"{src,test}/**/*.js": [
"eslint --fix",
"git add"
]
},
"jest": {
"bail": true,
"testURL": "http://localhost",
"clearMocks": true,
"transform": {
"^.+\\.js$": "babel-jest"
},
"moduleNameMapper": {
"@/(.*)$": "<rootDir>/src/$1",
"@examples/(.*)$": "<rootDir>/examples/$1"
},
"collectCoverage": true,
"collectCoverageFrom": [
"src/**",
"!src/index.d.ts"
],
"setupFiles": [
"jest-localstorage-mock"
]
},
"eslintIgnore": [
"package.json"
],
"repository": {
"type": "git",
"url": "git+https://github.com/tuateam/tua-storage.git"
},
"bugs": {
"url": "https://github.com/tuateam/tua-storage/issues"
},
"homepage": "https://tuateam.github.io/tua-storage/",
"devDependencies": {
"@babel/core": "^7.4.5",
"@babel/plugin-external-helpers": "^7.2.0",
"@babel/plugin-proposal-decorators": "^7.4.4",
"@babel/plugin-proposal-object-rest-spread": "^7.4.4",
"@babel/preset-env": "^7.4.5",
"@commitlint/cli": "^8.0.0",
"@commitlint/config-conventional": "^8.0.0",
"@types/jest": "^24.0.15",
"@vue/test-utils": "^1.0.0-beta.29",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.0.2",
"babel-jest": "^24.8.0",
"codecov": "^3.5.0",
"cross-env": "^5.2.0",
"eslint": "^5.16.0",
"eslint-config-standard": "^12.0.0",
"eslint-plugin-import": "^2.17.3",
"eslint-plugin-node": "^9.1.0",
"eslint-plugin-promise": "^4.1.1",
"eslint-plugin-standard": "^4.0.0",
"gh-pages": "^2.0.1",
"husky": "^2.4.1",
"jest": "^24.8.0",
"jest-localstorage-mock": "^2.4.0",
"lint-staged": "^8.2.1",
"mock-async-storage": "^2.1.0",
"rimraf": "^2.6.3",
"rollup": "^1.15.6",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-eslint": "^6.0.0",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-terser": "^5.0.0",
"typescript": "^3.5.2",
"vuepress": "^1.0.1"
},
"keywords": [
"tua-storage",
"storage",
"wx",
"miniprogram",
"wxmp",
"weapp"
],
"author": "StEve Young",
"license": "MIT"
}