|
| 1 | +{ |
| 2 | + "name": "plausible-analytics", |
| 3 | + "version": "1.0.0", |
| 4 | + "description": "Unofficial frontend library to interact with Plausible Analytics", |
| 5 | + "main": "build/main/index.js", |
| 6 | + "typings": "build/main/index.d.ts", |
| 7 | + "module": "build/module/index.js", |
| 8 | + "repository": "https://github.com/Maronato/plausible-analytics", |
| 9 | + "license": "MIT", |
| 10 | + "keywords": [], |
| 11 | + "scripts": { |
| 12 | + "build": "run-p build:*", |
| 13 | + "build:main": "tsc -p tsconfig.json", |
| 14 | + "build:module": "tsc -p tsconfig.module.json", |
| 15 | + "fix": "run-s fix:*", |
| 16 | + "fix:prettier": "prettier \"src/**/*.ts\" --write", |
| 17 | + "fix:lint": "eslint src --ext .ts --fix", |
| 18 | + "test": "run-s build test:*", |
| 19 | + "test:lint": "eslint src --ext .ts", |
| 20 | + "test:prettier": "prettier \"src/**/*.ts\" --list-different", |
| 21 | + "test:spelling": "cspell \"{README.md,.github/*.md,src/**/*.ts}\"", |
| 22 | + "test:unit": "nyc --silent ava", |
| 23 | + "check-cli": "run-s test diff-integration-tests check-integration-tests", |
| 24 | + "check-integration-tests": "run-s check-integration-test:*", |
| 25 | + "diff-integration-tests": "mkdir -p diff && rm -rf diff/test && cp -r test diff/test && rm -rf diff/test/test-*/.git && cd diff && git init --quiet && git add -A && git commit --quiet --no-verify --allow-empty -m 'WIP' && echo '\\n\\nCommitted most recent integration test output in the \"diff\" directory. Review the changes with \"cd diff && git diff HEAD\" or your preferred git diff viewer.'", |
| 26 | + "watch:build": "tsc -p tsconfig.json -w", |
| 27 | + "watch:test": "nyc --silent ava --watch", |
| 28 | + "cov": "run-s build test:unit cov:html cov:lcov && open-cli coverage/index.html", |
| 29 | + "cov:html": "nyc report --reporter=html", |
| 30 | + "cov:lcov": "nyc report --reporter=lcov", |
| 31 | + "cov:send": "run-s cov:lcov && codecov", |
| 32 | + "cov:check": "nyc report && nyc check-coverage --lines 100 --functions 100 --branches 100", |
| 33 | + "doc": "run-s doc:html && open-cli build/docs/index.html", |
| 34 | + "doc:html": "typedoc src/ --exclude **/*.spec.ts --target ES6 --mode file --out build/docs", |
| 35 | + "doc:json": "typedoc src/ --exclude **/*.spec.ts --target ES6 --mode file --json build/docs/typedoc.json", |
| 36 | + "doc:publish": "gh-pages -m \"[ci skip] Updates\" -d build/docs", |
| 37 | + "version": "standard-version", |
| 38 | + "reset-hard": "git clean -dfx && git reset --hard && yarn", |
| 39 | + "prepare-release": "run-s reset-hard test cov:check doc:html version doc:publish" |
| 40 | + }, |
| 41 | + "engines": { |
| 42 | + "node": ">=10" |
| 43 | + }, |
| 44 | + "dependencies": {}, |
| 45 | + "devDependencies": { |
| 46 | + "@ava/typescript": "^1.1.1", |
| 47 | + "@istanbuljs/nyc-config-typescript": "^1.0.1", |
| 48 | + "@typescript-eslint/eslint-plugin": "^4.0.1", |
| 49 | + "@typescript-eslint/parser": "^4.0.1", |
| 50 | + "ava": "^3.12.1", |
| 51 | + "codecov": "^3.5.0", |
| 52 | + "cspell": "^4.1.0", |
| 53 | + "cz-conventional-changelog": "^3.3.0", |
| 54 | + "eslint": "^7.8.0", |
| 55 | + "eslint-config-prettier": "^6.11.0", |
| 56 | + "eslint-plugin-eslint-comments": "^3.2.0", |
| 57 | + "eslint-plugin-functional": "^3.0.2", |
| 58 | + "eslint-plugin-import": "^2.22.0", |
| 59 | + "gh-pages": "^3.1.0", |
| 60 | + "npm-run-all": "^4.1.5", |
| 61 | + "nyc": "^15.1.0", |
| 62 | + "open-cli": "^6.0.1", |
| 63 | + "prettier": "^2.1.1", |
| 64 | + "standard-version": "^9.0.0", |
| 65 | + "ts-node": "^9.0.0", |
| 66 | + "typedoc": "^0.19.0", |
| 67 | + "typescript": "^4.0.2" |
| 68 | + }, |
| 69 | + "files": [ |
| 70 | + "build/main", |
| 71 | + "build/module", |
| 72 | + "!**/*.spec.*", |
| 73 | + "!**/*.json", |
| 74 | + "CHANGELOG.md", |
| 75 | + "LICENSE", |
| 76 | + "README.md" |
| 77 | + ], |
| 78 | + "ava": { |
| 79 | + "failFast": true, |
| 80 | + "timeout": "60s", |
| 81 | + "typescript": { |
| 82 | + "rewritePaths": { |
| 83 | + "src/": "build/main/" |
| 84 | + } |
| 85 | + }, |
| 86 | + "files": [ |
| 87 | + "!build/module/**" |
| 88 | + ] |
| 89 | + }, |
| 90 | + "config": { |
| 91 | + "commitizen": { |
| 92 | + "path": "cz-conventional-changelog" |
| 93 | + } |
| 94 | + }, |
| 95 | + "prettier": { |
| 96 | + "singleQuote": true |
| 97 | + }, |
| 98 | + "nyc": { |
| 99 | + "extends": "@istanbuljs/nyc-config-typescript", |
| 100 | + "exclude": [ |
| 101 | + "**/*.spec.js" |
| 102 | + ] |
| 103 | + } |
| 104 | +} |
0 commit comments