cross-magic
Version:
跨平台公共模块
103 lines (102 loc) • 2.66 kB
JSON
{
"name": "cross-magic",
"version": "0.0.22",
"description": "跨平台公共模块",
"main": "dist/cross-magic.js",
"files": [
"src",
"dist/*.js",
"types/*.d.ts"
],
"typings": "types/index.d.ts",
"scripts": {
"build_link": "npm run build && sudo npm link",
"build_cli": "./node_modules/.bin/webpack-cli --config webpack.dev.js",
"build-dev": "webpack --config webpack.dev.js",
"build": "webpack --config webpack.prod.js",
"publish-patch": "npm version patch && npm run publish-npm-reg",
"publish-minor": "npm version minor && git push && npm run publish-npm-reg",
"publish-npm-reg": "npm run build && npm publish --access=public",
"doc": "typedoc --out docs src",
"test": "jest --coverage",
"precommit": "lint-staged",
"lint": "eslint --fix --ext .js,.jsx,.ts,.tsx ./src",
"lintAll": "eslint --fix --ext .js,.jsx,.ts,.tsx .",
"format": "prettier --write \"src/**/*.js\" \"src/**/*.ts\" \"src/**/*.vue\""
},
"keywords": [
"vue",
"小程序",
"模块"
],
"author": "yaobinbin",
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.7.2",
"@babel/preset-env": "^7.7.1",
"@typescript-eslint/eslint-plugin": "^2.7.0",
"@typescript-eslint/parser": "^2.7.0",
"babel-loader": "^8.0.6",
"babel-plugin-transform-remove-console": "^6.9.4",
"clean-webpack-plugin": "^3.0.0",
"eslint": "^6.6.0",
"eslint-config-prettier": "^6.6.0",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-vue": "^6.0.1",
"husky": "^3.1.0",
"lint-staged": "^9.4.3",
"prettier": "^1.19.1",
"ts-loader": "^6.2.1",
"typedoc": "^0.15.2",
"typescript": "^3.7.2",
"uglifyjs-webpack-plugin": "^2.2.0",
"vue-router": "^3.1.3",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.10",
"webpack-merge": "^4.2.2",
"vue": "^2.6.10",
"vuex": "^3.1.2"
},
"dependencies": {
"@babel/polyfill": "^7.7.0",
"@types/jest": "^24.0.23",
"axios": "^0.19.0",
"fastclick": "^1.0.6",
"jest": "^24.9.0",
"ts-jest": "^24.2.0"
},
"jest": {
"transform": {
"\\.(ts|tsx)$": "ts-jest"
},
"testMatch": [
"**/test/**"
],
"moduleNameMapper": {
"^@/(.*)$": "<rootDir>/src/$1"
},
"moduleFileExtensions": [
"ts",
"js",
"json",
"jsx",
"tsx",
"node"
]
},
"gitHooks": {
"pre-commit": "lint-staged"
},
"lint-staged": {
"src/**/*.{js,ts,json,css,vue}": [
"prettier --write",
"eslint --fix",
"git add"
]
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
]
}