UNPKG

google-fonts-plugin

Version:

Webpack plugin that downloads fonts from Google Fonts and encodes them to base64.

125 lines (124 loc) 3.04 kB
{ "name": "google-fonts-plugin", "version": "5.0.2", "description": "Webpack plugin that downloads fonts from Google Fonts and encodes them to base64.", "main": "dist/index.js", "types": "dist/index.d.ts", "scripts": { "prepublishOnly": "npm test && npm run build", "lint": "eslint --ext .js,.ts src/", "lint-fix": "npm run lint -- --fix", "test": "jest --coverage --env=node", "posttest": "codecov", "test-watch": "jest --watch --env=node", "build": "rm -rf dist && tsc" }, "repository": { "type": "git", "url": "https://github.com/SirPole/google-fonts-plugin" }, "keywords": [ "google", "fonts", "google-fonts", "webpack-plugin", "webpack" ], "author": "Martin Brychta <martin@brychta.name> (https://www.brychta.name/)", "license": "MIT", "bugs": { "url": "https://github.com/SirPole/google-fonts-plugin/issues" }, "homepage": "https://github.com/SirPole/google-fonts-plugin#readme", "jest": { "roots": [ "<rootDir>/src" ], "transform": { "^.+\\.tsx?$": "ts-jest" }, "testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$", "moduleFileExtensions": [ "ts", "js", "json" ] }, "eslintConfig": { "env": { "commonjs": true, "es6": true, "jest": true, "node": true }, "extends": [ "standard", "plugin:@typescript-eslint/recommended", "prettier", "prettier/@typescript-eslint", "prettier/standard" ], "plugins": [ "@typescript-eslint", "prettier", "standard" ], "parser": "@typescript-eslint/parser", "parserOptions": { "sourceType": "module", "ecmaVersion": 2018 }, "rules": { "prettier/prettier": "error" } }, "prettier": { "endOfLine": "lf", "parser": "typescript", "printWidth": 180, "semi": false, "singleQuote": true }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "src/**/*.ts": [ "eslint --fix", "git add" ] }, "dependencies": { "axios": "^0.19.0", "find-cache-dir": "^3.0.0", "pkg-up": "^3.1.0" }, "devDependencies": { "@types/find-cache-dir": "^2.0.0", "@types/jest": "^24.0.18", "@types/node": "^12.7.8", "@types/webpack": "^4.39.1", "@types/webpack-sources": "^0.1.5", "@typescript-eslint/eslint-plugin": "2.3.1", "@typescript-eslint/parser": "2.3.1", "axios-mock-adapter": "^1.17.0", "codecov": "^3.6.1", "eslint": "6.4.0", "eslint-config-prettier": "6.3.0", "eslint-config-standard": "^14.1.0", "eslint-plugin-import": "^2.18.2", "eslint-plugin-node": "^10.0.0", "eslint-plugin-prettier": "3.1.1", "eslint-plugin-promise": "^4.2.1", "eslint-plugin-standard": "^4.0.1", "husky": "^3.0.5", "jest": "^24.9.0", "lint-staged": "9.4.0", "prettier": "1.18.2", "ts-jest": "^24.1.0", "typescript": "^3.6.3", "webpack": "^4.41.0" } }