@ctsj/webviewjavascriptbridge
Version:
和iOS和Android进行桥接通信的JavaScript实现
72 lines (71 loc) • 2.16 kB
JSON
{
"name": "@ctsj/webviewjavascriptbridge",
"version": "1.0.0",
"description": "和iOS和Android进行桥接通信的JavaScript实现",
"main": "lib/index.js",
"files": [
"lib",
"umd"
],
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"buildpackage": "ctbuild buildpackagets",
"buildumd": "ctbuild buildumd --packagename webviewjavascriptbridge --define alias=@,evnVars=true",
"generatorchangelog": "bd changelog/CHANGELOG.html",
"lint": "npm run lint:js && npm run lint:style && npm run lint:prettier",
"lint-staged": "lint-staged",
"lint-staged:js": "eslint --ext .js,.jsx,.ts,.tsx ",
"lint:fix": "eslint --fix --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src && npm run lint:style",
"lint:js": "eslint --cache --ext .js,.jsx,.ts,.tsx --format=pretty ./src",
"lint:prettier": "check-prettier lint",
"lint:style": "stylelint --fix \"src/**/*.less\" --syntax less",
"prettier": "prettier -c --write \"**/*\""
},
"lint-staged": {
"**/*.less": "stylelint --syntax less",
"**/*.{js,jsx,tsx,ts,less,md,json}": [
"prettier --write",
"git add"
],
"**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/playerljc/WebViewJavascriptBridge.git"
},
"keywords": [
"WebViewJavascriptBridge"
],
"author": "playerljc",
"license": "MIT",
"bugs": {
"url": "https://github.com/playerljc/WebViewJavascriptBridge/issues"
},
"homepage": "https://github.com/playerljc/WebViewJavascriptBridge#readme",
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@babel/runtime": "^7.7.4",
"@ctsj/build": "^4.0.11",
"typescript": "^3.8.2",
"@umijs/fabric": "^2.0.8",
"cross-env": "^7.0.2",
"eslint": "^6.8.0",
"husky": "^4.2.5",
"lint-staged": "^10.2.0",
"prettier": "^2.0.5"
}
}