|
| 1 | +{ |
| 2 | + "name": "typescript-library-skeleton", |
| 3 | + "version": "0.0.0-development", |
| 4 | + "description": "my personal ES2015 library project skeleton", |
| 5 | + "main": "index.js", |
| 6 | + "sideEffects": false, |
| 7 | + "scripts": { |
| 8 | + "lint": "eslint $npm_package_config_lint", |
| 9 | + "lint:fix": "eslint $npm_package_config_lint", |
| 10 | + "lint:watch": "esw --watch $npm_package_config_lint", |
| 11 | + "prettier": "prettier --write $npm_package_config_prettier", |
| 12 | + "prettier:check": "prettier --list-different $npm_package_config_prettier", |
| 13 | + "tsc": "tsc --noEmit", |
| 14 | + "tsc:watch": "npm run tsc -- --watch", |
| 15 | + "clean": "rimraf es lib $(cd src; ls) *.js *.d.ts", |
| 16 | + "build": "npm run clean && npm run build:types && npm run build:js", |
| 17 | + "build:types": "tsc --emitDeclarationOnly", |
| 18 | + "build:js": "babel src --out-dir es --extensions \".ts\" --source-maps inline && cross-env BABEL_ENV=es5 babel src --out-dir . --extensions \".ts\"", |
| 19 | + "test": "cross-env NODE_ENV=test BABEL_ENV=es5 mocha $npm_package_config_mocha && cross-env NODE_ENV=test BABEL_ENV=coverage nyc --reporter=lcov --reporter=text mocha $npm_package_config_mocha", |
| 20 | + "test:watch": "cross-env NODE_ENV=test BABEL_ENV=test mocha --watch $npm_package_config_mocha", |
| 21 | + "test:debug": "cross-env NODE_ENV=test BABEL_ENV=test mocha --inspect-brk $npm_package_config_mocha", |
| 22 | + "codecov": "nyc report --reporter=text-lcov > coverage.lcov; codecov", |
| 23 | + "prepublishOnly": "npm run clean && npm run prettier:check && npm run lint && npm test && npm run build", |
| 24 | + "open:coverage": "open coverage/lcov-report/index.html", |
| 25 | + "semantic-release": "semantic-release" |
| 26 | + }, |
| 27 | + "config": { |
| 28 | + "lint": "--cache --ext .ts src test", |
| 29 | + "prettier": ".babelrc.js *.json *.md *.ts '{src,test}/**/*.ts'", |
| 30 | + "mocha": "-r @babel/register test/configure.ts 'test/**/*.ts' 'src/**/*.spec.ts'", |
| 31 | + "commitizen": { |
| 32 | + "path": "cz-conventional-changelog" |
| 33 | + } |
| 34 | + }, |
| 35 | + "husky": { |
| 36 | + "hooks": { |
| 37 | + "pre-commit": "lint-staged && npm run lint && npm run tsc", |
| 38 | + "commit-msg": "commitlint -e $GIT_PARAMS", |
| 39 | + "pre-push": "npm test" |
| 40 | + } |
| 41 | + }, |
| 42 | + "lint-staged": { |
| 43 | + "*.{js,ts,json,css,md}": [ |
| 44 | + "prettier --write", |
| 45 | + "git add" |
| 46 | + ] |
| 47 | + }, |
| 48 | + "commitlint": { |
| 49 | + "extends": [ |
| 50 | + "@jedwards1211/commitlint-config" |
| 51 | + ] |
| 52 | + }, |
| 53 | + "prettier": { |
| 54 | + "semi": false, |
| 55 | + "singleQuote": true, |
| 56 | + "trailingComma": "es5" |
| 57 | + }, |
| 58 | + "nyc": { |
| 59 | + "include": [ |
| 60 | + "src/**/*.ts" |
| 61 | + ], |
| 62 | + "require": [ |
| 63 | + "@babel/register" |
| 64 | + ], |
| 65 | + "sourceMap": false, |
| 66 | + "instrument": false |
| 67 | + }, |
| 68 | + "repository": { |
| 69 | + "type": "git", |
| 70 | + "url": "https://github.com/jedwards1211/typescript-library-skeleton.git" |
| 71 | + }, |
| 72 | + "keywords": [ |
| 73 | + "typescript" |
| 74 | + ], |
| 75 | + "author": "Andy Edwards", |
| 76 | + "license": "MIT", |
| 77 | + "bugs": { |
| 78 | + "url": "https://github.com/jedwards1211/typescript-library-skeleton/issues" |
| 79 | + }, |
| 80 | + "homepage": "https://github.com/jedwards1211/typescript-library-skeleton#readme", |
| 81 | + "devDependencies": { |
| 82 | + "@babel/cli": "^7.1.5", |
| 83 | + "@babel/core": "^7.1.6", |
| 84 | + "@babel/plugin-proposal-class-properties": "^7.1.0", |
| 85 | + "@babel/plugin-proposal-export-default-from": "^7.0.0", |
| 86 | + "@babel/plugin-proposal-export-namespace-from": "^7.0.0", |
| 87 | + "@babel/plugin-proposal-object-rest-spread": "^7.0.0", |
| 88 | + "@babel/plugin-syntax-dynamic-import": "^7.0.0", |
| 89 | + "@babel/plugin-transform-runtime": "^7.1.0", |
| 90 | + "@babel/preset-env": "^7.1.6", |
| 91 | + "@babel/preset-typescript": "^7.7.2", |
| 92 | + "@babel/register": "^7.0.0", |
| 93 | + "@commitlint/cli": "^6.0.2", |
| 94 | + "@commitlint/config-conventional": "^6.0.2", |
| 95 | + "@jedwards1211/commitlint-config": "^1.0.0", |
| 96 | + "@jedwards1211/eslint-config": "^2.0.0", |
| 97 | + "@types/chai": "^4.2.0", |
| 98 | + "@types/mocha": "^5.2.7", |
| 99 | + "@types/node": "^12.12.6", |
| 100 | + "@typescript-eslint/eslint-plugin": "^2.6.1", |
| 101 | + "@typescript-eslint/parser": "^2.6.1", |
| 102 | + "@typescript-eslint/typescript-estree": "^2.6.1", |
| 103 | + "babel-eslint": "^10.0.1", |
| 104 | + "babel-plugin-istanbul": "^5.1.0", |
| 105 | + "chai": "^4.2.0", |
| 106 | + "codecov": "^3.1.0", |
| 107 | + "copy": "^0.3.2", |
| 108 | + "cross-env": "^5.2.0", |
| 109 | + "eslint": "^5.9.0", |
| 110 | + "eslint-config-prettier": "^3.3.0", |
| 111 | + "eslint-watch": "^4.0.2", |
| 112 | + "husky": "^1.1.4", |
| 113 | + "istanbul": "^0.4.5", |
| 114 | + "lint-staged": "^8.0.4", |
| 115 | + "mocha": "^6.2.1", |
| 116 | + "nyc": "^13.1.0", |
| 117 | + "prettier": "^1.15.2", |
| 118 | + "prettier-eslint": "^8.8.2", |
| 119 | + "rimraf": "^2.6.0", |
| 120 | + "semantic-release": "^15.1.4", |
| 121 | + "typescript": "^3.7.2" |
| 122 | + }, |
| 123 | + "dependencies": { |
| 124 | + "@babel/runtime": "^7.1.5" |
| 125 | + }, |
| 126 | + "renovate": { |
| 127 | + "extends": [ |
| 128 | + ":separateMajorReleases", |
| 129 | + ":combinePatchMinorReleases", |
| 130 | + ":ignoreUnstable", |
| 131 | + ":prImmediately", |
| 132 | + ":renovatePrefix", |
| 133 | + ":updateNotScheduled", |
| 134 | + ":preserveSemverRanges", |
| 135 | + ":semanticPrefixFixDepsChoreOthers", |
| 136 | + ":automergeDisabled", |
| 137 | + "group:monorepos" |
| 138 | + ], |
| 139 | + "automerge": true, |
| 140 | + "major": { |
| 141 | + "automerge": false |
| 142 | + } |
| 143 | + } |
| 144 | +} |
0 commit comments