UNPKG

vue-condition-watcher

Version:

Vue composition API for automatic data fetching. With conditions as the core. Easily control and sync to URL query string by conditions

95 lines (94 loc) 2.5 kB
{ "name": "vue-condition-watcher", "version": "1.5.0", "description": "Vue composition API for automatic data fetching. With conditions as the core. Easily control and sync to URL query string by conditions", "main": "./dist/index.js", "module": "./esm/index.js", "types": "./dist/index.d.ts", "files": [ "dist/**", "esm/**" ], "scripts": { "build": "npx rimraf dist && npx rimraf esm && npm run build:esm && npm run build:cjs", "build:cjs": "ncc build src/index.ts -o dist -m -e vue", "build:esm": "tsc --target ESNext --module ES6 --outDir esm", "types:check": "tsc --noEmit", "format": "prettier --write \"{src,test,examples}/**/*.ts\"", "lint": "eslint \"{src,test,examples}/**/*.ts\"", "lint:fix": "eslint \"{src,test,examples}/**/*.ts\" --fix", "test": "yarn format && vue-demi-switch 3 && jest", "watch": "tsc --watch" }, "repository": { "type": "git", "url": "git+https://github.com/runkids/vue-condition-watcher.git" }, "keywords": [ "vue", "conditions", "watcher", "hook", "vue-hooks", "composition-api", "vue-composable", "composable", "fetch", "fetch-data" ], "author": "Willy Hong", "license": "MIT", "bugs": { "url": "https://github.com/runkids/vue-condition-watcher/issues" }, "homepage": "https://github.com/runkids/vue-condition-watcher#readme", "husky": { "hooks": { "pre-commit": "npm run types:check && lint-staged" } }, "lint-staged": { "*.{ts, js}": [ "npm run lint:fix", "npm run format", "git add" ] }, "engines": { "node": ">=12" }, "dependencies": { "vue-demi": "^0.12.1" }, "peerDependencies": { "@nuxtjs/composition-api": "^0.24.4", "@vue/composition-api": "^1.0.0", "vue": "^2.0.0 || >=3.0.0" }, "peerDependenciesMeta": { "@vue/composition-api": { "optional": true }, "@nuxtjs/composition-api": { "optional": true } }, "devDependencies": { "@types/jest": "^26.0.24", "@types/node": "11.12.0", "@types/vue": "^2.0.0", "@typescript-eslint/eslint-plugin": "^4.25.0", "@typescript-eslint/parser": "^4.25.0", "@zeit/ncc": "0.22.2", "eslint": "6.6.0", "eslint-config-prettier": "6.5.0", "husky": "2.4.1", "jest": "27.0.6", "lint-staged": "8.2.1", "prettier": "^2.0.5", "ts-jest": "27.0.3", "typescript": "^4.3.5", "vue": "^3.2.26", "vue-router": "^4.0.10" } }