|
| 1 | +{ |
| 2 | + "name": "jest-less-loader", |
| 3 | + "version": "0.1.0", |
| 4 | + "description": "Jest transformer for .less file.", |
| 5 | + "license": "MIT", |
| 6 | + "main": "lib/index.js", |
| 7 | + "files": [ |
| 8 | + "lib" |
| 9 | + ], |
| 10 | + "scripts": { |
| 11 | + "clean": "rimraf -rf lib", |
| 12 | + "lint": "eslint src/**/*.ts __tests__/**/*.ts", |
| 13 | + "lint-staged": "lint-staged", |
| 14 | + "test": "jest", |
| 15 | + "ci": "npm run lint && npm run test && lint-md .", |
| 16 | + "start": "tsc -w", |
| 17 | + "build": "rimraf ./lib && tsc --module commonjs --outDir lib", |
| 18 | + "prepublishOnly": "npm run build" |
| 19 | + }, |
| 20 | + "dependencies": {}, |
| 21 | + "peerDependencies": { |
| 22 | + "less": "^3.10.3" |
| 23 | + }, |
| 24 | + "keywords": [ |
| 25 | + "jest", |
| 26 | + "less", |
| 27 | + "transformer" |
| 28 | + ], |
| 29 | + "devDependencies": { |
| 30 | + "@commitlint/cli": "^8.2.0", |
| 31 | + "@types/jest": "^24.0.18", |
| 32 | + "@types/node": "^12.12.14", |
| 33 | + "@typescript-eslint/eslint-plugin": "^2.3.1", |
| 34 | + "@typescript-eslint/parser": "^2.3.1", |
| 35 | + "eslint": "^6.4.0", |
| 36 | + "eslint-config-prettier": "^6.3.0", |
| 37 | + "husky": "^3.0.5", |
| 38 | + "jest": "^24.9.0", |
| 39 | + "jest-electron": "^0.1.7", |
| 40 | + "less": "^3.10.3", |
| 41 | + "lint-md-cli": "^0.1.1", |
| 42 | + "lint-staged": "^9.3.0", |
| 43 | + "prettier": "^1.18.2", |
| 44 | + "rimraf": "^3.0.0", |
| 45 | + "ts-jest": "^24.1.0", |
| 46 | + "typescript": "^3.6.3" |
| 47 | + }, |
| 48 | + "jest": { |
| 49 | + "runner": "jest-electron/runner", |
| 50 | + "testEnvironment": "jest-electron/environment", |
| 51 | + "preset": "ts-jest", |
| 52 | + "collectCoverage": true, |
| 53 | + "testRegex": "(/__tests__/.*\\.(test|spec))\\.ts$", |
| 54 | + "collectCoverageFrom": [ |
| 55 | + "src/**/*.ts" |
| 56 | + ], |
| 57 | + "transform": { |
| 58 | + ".+\\.less$": "./lib/index.js" |
| 59 | + } |
| 60 | +}, |
| 61 | + "lint-staged": { |
| 62 | + "*.{ts,tsx}": [ |
| 63 | + "eslint --fix", |
| 64 | + "prettier --write", |
| 65 | + "git add" |
| 66 | + ] |
| 67 | + }, |
| 68 | + "husky": { |
| 69 | + "hooks": { |
| 70 | + "pre-commit": "npm run lint-staged", |
| 71 | + "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" |
| 72 | + } |
| 73 | + } |
| 74 | +} |
0 commit comments